The reason why LC.exe has exited code-1 and the Solution

Source: Internet
Author: User

The error "Export lc.exe" has been exited and the code is-1. Is VS2005, and a third-party component is referenced in the project. The possible cause is that this third-party component is a commercial component, which defines the Attribute LicenseProvider (typeof (LicFileLicenseProvider) in the main class of the component. When VS2005 detects this class during compilation, it will check that the component uses the LicFileLicenseProvider attribute, indicating that a component uses to save license auxiliary information in license. in the licx file, this file is saved in the Properties folder of Solution Explorer in vs2005. The content of this file is actually a reference. It stores the namespace, class name, file name, culture, and PublicKeyToken information of the main class used by your third-party component, this file is automatically generated. If this information does not match the internal content of the dll, lc.exe will see this error message. The reason for this information is that you used the beta version of the commercial component in the project, and the cracked version of the commercial component used during the release. When most commercial components are cracked, the strong name signature will disappear, so the cracked components are completely different from the reference information of the original test component. Therefore, during each compilation, vs2005 will call lc (license compiler) before automatically calling the language compiler, and a-1 error will occur. The solution is to set the license under the Properties file. licx is deleted and re-compiled. If this problem persists, you must use lidism to translate your cracked version into the il language, and then use ilasm to re-compile it into the dll, add/key = [your strong name file] during compilation. add a strong name signature to the snk parameter and use vs2005 to re-compile it.

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: 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.