Today, we have customized development in AspDotNetStorefront. during compilation, We Inexplicably reported the cocould not load file or assemb'App_Licenses, Version = 0.0.0.0, Culture = neutral,...(Exception from HRESULT: 0x80070057 (E_INVALIDARG), Check the file system, find that the file is still in, And then view the folder permissions, no exception is found. So Google. Many online users provide solutions, such as restarting/reinstalling ASP. NET and setting Network Service permissions.
Later, I found that not only this App_Licenses.dll could not be loaded, but even if I delete this reference from References, other DLL could not be loaded. In addition, the same problem also occurs when I reinstall a new AspDotNetStorefront application. Obviously, it is not my solution.
I suddenly remembered my previous experiences of abnormal machine restart. I guess it was caused by file loss or damage during the abnormal restart process. So I used iisreset/stop to stop the IIS service and then started ASP. NET Temporary Folder (in 32bit ,. in NET 2.0, yes% Windows Install Folder % \ Microsoft. NET \ Framework \ v2.0.50727 \ Temporary ASP. NET Files), Delete all files and folders, and then compile the solution after iisreset/start. Everything works.
This problem is not complex, but it is difficult to solve it. I want to help users who encounter the same problems.