Could not load file or assembly 'App_Licenses.dll' problem

  • 2020-05-09 18:28:15
  • OfStack

Today we are doing custom development at AspDotNetStorefront. When compiling, we inexplically report Could not load file or assembly App_Licenses, Version=0.0.0.0, Culture=neutral... (Exception from HRESULT: 0x80070057 (E_INVALIDARG)), check the file system, find the file is still there, then look at the folder permissions, also found nothing unusual. So Google. Many netizens on the Internet offered solutions, such as rebooting/reinstalling ASP.NET, setting Network Service permissions, etc., but nothing happened.

I found out later that not only the App_Licenses.dll could not be loaded, but even if I deleted the reference from References, it would still prompt other DLL that could not be loaded. I also had the same problem installing a new AspDotNetStorefront app. Obviously, it's not my solution.

I suddenly remembered the previous experience of abnormal restart of the machine. I estimated that files were lost or damaged in the process of abnormal restart, so I stopped the IIS service with iisreset/stop, and then opened the temporary folder of ASP.NET (in 32bit,.NET 2.0). Is %Windows Install Folder%\ Microsoft. NET\Framework\ ASP. NET Files), delete all files and folders, and then iisreset/start, compile the solution, 1 cut normal.

It's not a complicated problem, but it's a difficult one to solve. In this essay 1, also hope to be able to help the same problem.


Related articles: