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

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

 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			
    
    

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

    reference: https://forums.asp.net/t/2122516.aspx