0

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.

1 Answer 1

1

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.

Sign up to request clarification or add additional context in comments.

1 Comment

I'd go a little further and say "Not only is it not a requirement to GAC the assembly, but that it's actually preferred NOT to." The GAC is just DLL hell under a different name.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.