Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Could Not Load Assembly .NET 4.0

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.

like image 374
Joseph Ghassan Avatar asked Oct 05 '10 15:10

Joseph Ghassan


People also ask

Could not load file or assembly assembly load?

Http 5.2. 0.0? In summary if you get the "Could not load file or assembly error", this means that either your projects or their references were built with a reference to a specific version of an assembly which is missing from your bin directory or GAC.

Could not load file or assembly dll or one of its dependencies?

There are some workarounds for this issue: The dll file may not be in /bin folder. Just copy the dll file to /bin folder or set this preference Copy Local = True from Visual Studio. If the problem persists, check if the version of the assembly that is referenced is different than the version it is looking for.

Could not load file or assembly or one of its dependencies the module was expected?

Look at your project's bin folder and see if your project's dll has a conflict in it's name. Just delete that one and then Rebuild your solution. That worked for me.

Could not load file or assembly system Cannot find file specified?

For the alert error ("The system cannot find the file specified.") Right click on [Solution Program name] then select Build Dependencies> & left click on Build Customizations... then true-checkbox {MASM} then click OK button.


1 Answers

I deleted temporary asp.net files in :

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

And it worked.

like image 192
Joseph Ghassan Avatar answered Sep 27 '22 16:09

Joseph Ghassan