Assembly not loading for ASP.NET web application

I have a web application that references an external DLL (allows calling this product A.dll)

I updated my GAC, my web.configand my links, checked the versions and everything looks consistent.

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

I tried to create a Windows application and I can use it productA.dllperfectly.

Watching the run-time window for a web application, I noticed that the characters are productA.dllnot loading. Therefore, I assume that the module cannot be found.

The question is: why are the characters not loading?

Any advice on solution or diagnostic methods is welcome.

0
source share
1 answer

This is not a requirement for the assembly to be in the GAC. I would say to check the following:

  • Your assembly is located in the bin folder of the website.
  • Your assembly is listed in the web.config assembly section.
  • The assembly reference in the web.config file has the correct version number.

By the way, characters will only load if you have a debug file (.pdb) along the side of the assembly.

+1
source

Source: https://habr.com/ru/post/1709113/


All Articles