IIS 7.0 / Windows Server 2008 - DLL Not Found in ASP.NET Application

I am trying to run an ASPX page hosted on Windows Server 2008 x86 through IIS 7.0, with .NET 4.0. I added an application app1in Default Web SiteIIS mapped to dir C:\toto\app1that contains the file Web.config. I have an error:

Failed to load file or assembly "xxx.dll" or one of its dependencies, etc.

and xxx.dll- this is a .NET DLL that wraps its own C ++ DLLs ( they are dependencies that cannot be loaded), they are all located in C:\toto\app1\bin. I tried changing the env PATH variable so that it contained a directory bin(yes, I know this badly :-)), but it still does not work.

I suppose there should be something at the IIS application level, but I could not understand that ... Could you help?

Many thanks!

EDIT: copying your own dlls in C:\windows\system32really works, but this is not a pleasant solution at all ...

+3
source share
5 answers

Well, finally, I managed to get it to work by copying the DLLs to the directory windows\system32(I don’t know why this was not the first time, probably my mistake ...). Folders application\bindo not work, also the variable does not change PATH.

If someone knows a better solution (I don't find it brilliant at all, it could cause a DLL collision, etc.), I would be happy to hear it!

0
source

If its not GACd (which does not seem to be), a simple answer:

, DLL bin\.

VS2010, , CopyLocal True. . , DLL , - .

0

, . . , , . START- > RUN cmd, regsvr32 "C:\yourfolder\idrskrn_net14.dll" .

!

0

. DLL webapp/bin, . inetpub/bin, . , webapp bin. , .

0
source

I have the same problem. If I browse the site locally on the server, it works fine, but when I browse it over the Internet through the domain name, it cannot find the DLL located in the bin folder on the site ...

0
source

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


All Articles