Problem description, VS2012 in the run debugging when the crash, helpless under the forced restart, and then open vs always reported the following error: Finally found on the Internet:
The program being compiled, suddenly interrupted, such as a power outage, the workaround is: Delete folder c:/windows/microsoft.net/framework/v4.0.30319/temporary ASP. FilesThe following is an online find of the original data exception from hresult:0x80070057 (E_INVALIDARG) failed to load the assembly .... Several times to delete the reference and then re-reference the assembly or an error in the collapse .... Online search really has a solution:
The workaround is to delete the C:/windows/microsoft.net/framework/v2.0.50727/temporary ASP. Net Files folder.
Please note: The workaround described above is only used with the. NET 2.0 compiler.
If you are developing in the VS2010. NET 4.0 environment, delete the c:/windows/microsoft.net/framework/v4.0.30319/temporary asp Files folder.
====================================================================
Cause analysis as above:
1. The program being compiled, suddenly interrupted, such as a power outage caused.
2. Running programs, connecting to the database (not referring to the program accessing the database, but the tools in visual Studio-connection data preparation generated code, and so on) can also cause the problem above
C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP. NET Files
This folder is a temporary folder run by the VS editor. It is possible to leave a file that is not finished compiling the current debug project when it suddenly crashes | without considering the situation.
A program that is being compiled that is suddenly interrupted, such as an exception caused by a power outage