Get the App
SLTechnology News&Howtos  ›  Development  › 

What are the reasons why the LC.exe exit code in asp.net is-1?

Shulou Source: shulou.com Published: 2022-06-03 06:36:55 10月04日 Update

This article is to share with you about the reasons why the LC.exe exit code is-1 in asp.net. The editor thinks it is very practical, so share it with you as a reference and follow the editor to have a look.

The possible reasons are:

This third-party component is a commercial component, and it defines the

LicenseProvider (typeof (LicFileLicenseProvider))

This Attribute.

When VS2005 detects this class at compile time, it checks that the component uses the LicFileLicenseProvider attribute, indicating that some components use to save the auxiliary information of the license 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, it holds the third-party component main use class namespace + class name + file name + culture + PublicKeyToken information, this file is automatically generated.

If this information does not match the actual content of the component you are using, dll, then lc.exe will have this error message.

The reason for this message is that you used a beta version of the business component in the project and which cracked version of the business component you used at the time of release. When most commercial components are cracked, the strong name signature disappears, so the reference information of the cracked component is completely different from that of the original beta component. Therefore, every time vs2005 automatically calls the language compiler, it will call lc (license compiler), and a-1 error will occur.

The solution is to delete the license.licx under the Properties file, recompile, if this problem still occurs, which component of your cracked version must be translated into il using lidism, and then recompiled into dll with ilasm, add / key= [your strong name file] .snk parameter when compiling, add your own strong name signature, and then use vs2005 to recompile, you can succeed.

Thank you for reading! This is the end of the article on "what are the reasons why the LC.exe exit code in asp.net is-1". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, you can share it out for more people to see!

Tags: Component file compilation information time reason content name business code actual more beta third party article compiler language error test different Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Microsoft OPPO Reno NVidia vpn Xiaomi