Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

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

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/03 Report--

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!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report