Could not load file or assembly … The parameter is incorrect … HRESULT: 0x80070057 (E_INVALIDARG)
昨天早晨要 Review 兄弟们完成的页面,Get Latest Version 后运行程序出现了如下错误:
Could not load file or assembly ... or one of its dependencies. The parameter is incorrect. (Exception from HRESULT: 0x80070057 (E_INVALIDARG))
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.IO.FileLoadException: Could not load file or assembly '...' or one of its dependencies. The parameter is incorrect. (Exception from HRESULT: 0x80070057 (E_INVALIDARG))
反复运行了几次程序,错误依旧,删除 C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary 文件夹下的所有文件后问题解决。解决方法来自:MSDN Forums