Chris Farmer
Chris Farmer

Reputation: 25426

Assembly loading error in my ASP.NET app, and the assembly isn't even referenced anymore

I had some code that referenced the Noesis.Javascript assembly (http://javascriptdotnet.codeplex.com) and had renamed the Noesis.Javascript.dll to Noesis.Javascript.0.4.dll. I referenced this file through Visual Studio, and when I launched my web app in the ASP.NET development server, I got this error:

Could not load file or assembly 'Noesis.Javascript.0.4' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

I then tried to remove this reference and re-reference the older version of the library. I got the same error. I then tried to remove this reference entirely and comment out all code that used this library. I still get the same error. I have tried to explicitly close out the ASP.NET development server from its icon in the system tray, but this still occurs. I can find no reference of this assembly anywhere in my project now, yet the error persists. What might be happening? Is there some cache that I'm not finding? How can I resolve this error?

Upvotes: 0

Views: 1335

Answers (4)

putoshop
putoshop

Reputation: 122

In my case, I added a wrong DLL. Instead of adding 64bit, I added 32bit.

Thanks,

Upvotes: 0

Cognitronic
Cognitronic

Reputation: 1436

Go into the registry and set [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.

Refresh the page and the error output will show you which assembly has a dependency on Noesis.Javascript.0.4.

Upvotes: 1

user240141
user240141

Reputation:

remove the reference and add it again. Please note that the two dll version must be same. Do not add any later version, if its get registered into your web.config, otherwise you need to remove from there too.

Upvotes: 0

Jakob Christensen
Jakob Christensen

Reputation: 14956

Check if "Noesis.Javascript.0.4" appears anywhere in your web.config file and remove it if it does. It might be in the <assemblies> part.

Upvotes: 0

Related Questions