========================================================== ======================================
Exception from hresult: 0x80070057 (e_invalidarg) failed to load Assembly ....... several times to delete the reference and then re-reference the assembly or report an error .... there are actually solutions for online search:
The solution is to deleteC:/Windows/Microsoft. NET/framework/v2.0.50727/TemporaryASP. NET filesFolder.
Note: The solution mentioned above is only used with the. NET 2.0 compiler.
If you are in vs2010. Net 4.0 development environment, please deleteC:/Windows/Microsoft. NET/framework/V4.0.30319/TemporaryASP. NET Files folder.
========================================================== ======================================
Cause analysis:
1. The program being compiled is suddenly interrupted, such as caused by power failure.
2. A running program connects to the database (not when the program accesses the database, but operations such as tools in Visual Studio-connecting data to prepare to generate code will also lead to the above problems)
C: \ windows \ Microsoft. NET \ framework \ v4.0.30319 \ temporary ASP. NET files
This folder is a temporary folder for running the vs editor. When it suddenly crashes | when not considered, the compilation of the current debugging project may be left behind.
Parameter error. (Exception from hresult: 0x80070057 (e_invalidarg ))