Asp.netfails to call jarsigner.exe: the specified file cannot be found.

Source: Internet
Author: User

This document describes how to use jarsigner.exe by using asp.net. failed: the system cannot find the specified file. I hope this tutorial will be helpful to you.

Several days later, I used cwRsync to perform mutual backup on the website files of the two servers. In the early morning, one server was on the machine, and the DNS automatically switched to another server. The page browsing was normal. In the morning, it is found that the new server always fails to generate an apk online. Check that jdk is not installed on the new server, download, install, add environment variables, and assign permissions, and then test the SDK. The error message is as follows:

The Code is as follows: Copy code

System. ComponentModel. Win32Exception (0x80004005): The System cannot find the specified file.
At System. Diagnostics. Process. StartWithCreateProcess (ProcessStartInfo startInfo)
At System. Diagnostics. Process. Start (ProcessStartInfo startInfo)
At WEB. Controllers. ApkController. Index () in e:/www/web1/WEB/Controllers/ApkController. cs: line 132

When an error occurs, call jarsigner.exe to generate an apk and manually create a batch for testing. The SDK can be generated normally. After one morning, Run "iisreset/restart" to restart IIS,Problem SolvingThe reason is that the newly added environment variable requires IIS to be restarted to take effect.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.