makstaks
makstaks

Reputation: 2111

Assembly not loading for ASP.NET web application

I have a web application which references an external DLL (lets call this productA.dll)

I have updated my GAC, my web.config, and my references, checked the versions and everything looks consistent.

However, when I run my application, methods that I use from productA.dll cannot be called, and I get a the specified module cannot be found error.

I tried creating a windows application and I can use productA.dll perfectly fine.

Observing the output window during run-time for the web application, I noticed that productA.dll symbols are not loaded. So I'm guessing that is why the module cannot be found.

The question is: why are the symbols not being loaded?

Any tips on the solution or diagnostics techniques would be greatly appreciated.

Upvotes: 0

Views: 1549

Answers (1)

Barry Dorman
Barry Dorman

Reputation: 93

It's not a requirement that the assembly be in the GAC. I'd say to check the following:

  1. Your assembly is in the website's bin folder.
  2. Your assembly is referenced in the assemblies section of the web.config.
  3. The assembly reference in the web.config has the correct version number.

By the way, symbols will only be loaded if you have the debug file (.pdb) along side the assembly.

Upvotes: 1

Related Questions