rtindru
rtindru

Reputation: 5337

Where does an ASP.NET WebSite or Web Application store Referenced DLLs

In simple terms - I have a .net library A.dll. A.dll uses B.dll & C.dll.

Both B & C are not .Net Libraries. How do I use A.dll in my web app?

So I have the dll file - Jedox.Palo.Comm.dll (A) that I have added as a reference to a ASP.NET Webapp. This DLL in turn uses 2 more files, 1. libpalo_ng.dll (B) & 2. libpalo2.dll (C). These two libpalo dlls are not necessarily COM components/assemblies. So they can't be added directly as a reference.

Instead I have to place them in the same folder as the Jedox..dll In normal appls, forms etc the folder is Debug/bin. But in webapps, where should I place these dll files, since it has to be in the same folder as the Jedox...dll

Also, creating a new folder bin, and putting all three dlls there and adding references doesn't work for some reason! Thanks in advace!!

Indrajit

Upvotes: 3

Views: 3462

Answers (2)

rtindru
rtindru

Reputation: 5337

Okay so this did the trick, a rather simple solution I just copied the two dlls - libpalo_ng.dll & libpalo2.dll to my SysWOW64 fodler And its all working well now.

Thanks for all the responses!

Upvotes: -1

Mentoliptus
Mentoliptus

Reputation: 2985

Check this question for some ideas.

The short answer to your question is that the equivalent folder of Debug/bin in a web application is [root]/bin.

When you reference DLLs from VS, you can set Copy Local to true for a DLL and it will bi copies in the [root]/bin folder when you publish the web application.

If you want to store the DLLs inside your solution, you can make a folder with a different name than bin and put the DLLs in it and then when you Add References select browse and reference them from your solution's folder.

Upvotes: 4

Related Questions