asp.net LC.exe exit code is-1 reason analysis and solution _ practical skills

Source: Internet
Author: User
The possible causes are:
This third party component is a commercial component, and he defines the class in the component's main
LicenseProvider (typeof (LicFileLicenseProvider))
This attribute.
When VS2005 detects this class at compile time, it checks that the component is using the LicFileLicenseProvider attribute. Indicates that the component is using the permitted auxiliary information in the License.licx file, which is saved in the Properties folder in Solution Explorer in VS2005.
The content of this file is actually a reference, he holds the third party component you use the namespace + class name + filename + culture +publickeytoken Information, this file is automatically generated.
If this information does not match the actual content in the component DLL you are using, then lc.exe this error message.
The reason for this information is that you use a beta version of a commercial component in your project, and you use a cracked version of which business component when you publish it. When most of the business components are cracked, the strong name signature disappears, so the cracked component is completely different from the original Beta component's reference information. Therefore, every time the compilation, VS2005 automatically invoke the language compiler will invoke the LC (license compiler), there will be a 1 error.
The solution is to delete the properties file under the License.licx, recompile, if this problem, you must be a cracked version of which components to use lidism to translate into the Il language, and then ilasm recompile into a DLL, in the compile time to join/ Key=[your Strong name file].snk parameters, add your own strong name signature, and then use VS2005 recompile, you can succeed.

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.