Could Not Load Assembly .NET 4.0

谁说胖子不能爱 提交于 2019-12-09 04:44:30

问题


whenever I build my web solution I get this error :

Could not load file or assembly 'dotless.Core, Version=0.0.0.0, Culture=neutral, PublicKeyToken=96b446c9e63eae34' or one of its dependencies. The parameter is incorrect. (Exception from HRESULT: 0x80070057 (E_INVALIDARG))

I have VS 2010 with .NET 4.0 on Windows 7.

The dlls are located inside the Bin folder of the Web Application.

Any suggestions?

Thanks.


回答1:


I deleted temporary asp.net files in :

C:\users\username\AppData\Local\Temp\Temporary ASP.NET Files\

And it worked.




回答2:


had the same problem! I found that you need to use a different location for win7/x86/x64

Clear out the temporary framework files for your project in:

C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\

For Windows 7, the path is:

C:\Users[username]\AppData\Local\Temp\Temporary ASP.NET Files\

For 64 bit systems with 'Framework' in the path the full path is:

C:\WINDOWS\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.NET Files\

Found the solution here




回答3:


Are you running this from IIS? If so check the framework version that is selected for your site.



来源:https://stackoverflow.com/questions/3865299/could-not-load-assembly-net-4-0

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!