Visual Studio 2017 pro, ASP.NET WebForm appear error:lc.exe exited with code -1 RRS feed

  • Question

  • User1497005810 posted

    I deploy my ASP.NET project today morinig. But I run the Windows 10(64bits) windows update, and then I complie my project. My Visual Studio 2017 Pro always appear the error about : lc.exe exited with code -1。Does somebody know how to solve this problem?

    The complete error and warning message is as below:

    Severity	Code	Description	Project	File	Line	Suppression State
    Error		"lc.exe" exited with code -1.	eBook.csharp			
    Warning	IDE0006	Error encountered while loading the project. Some project features, such as full solution analysis for the failed project and projects that depend on it, have been disabled.	TzModule		1	Active
    Warning		Cannot find wrapper assembly for type library "MSHTML". Verify that (1) the COM component is registered correctly and (2) your target platform is the same as the bitness of the COM component. For example, if the COM component is 32-bit, your target platform must not be 64-bit.	TzModule			
    Warning		The referenced component 'MSHTML' could not be found.	TzModule			

    Thursday, June 1, 2017 2:47 AM


  • User1497005810 posted

    I remove this reference MSHTML, and add the reference Microsoft.mshtml. And then I complie the project successfully.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Thursday, June 1, 2017 2:59 AM