Good morning,
I am working on a C# project. I have implemented an API in C# and uses also C++/CLI. I am developing on Visual Studio and my solution generates 5 DLLs. Those 5 DLLs are then integrated into a web application which uses ASP.net and deployed with IIS. In order to make the things working with IIS (load the DLLs at the execution), I need some DLLs into the folder of IIS server : C:\Program Files\IIS Express. It bothers me a bit to copy some DLLs into the IIS Server folder. I would like to put the DLLs into a specific folder and indicates to IIS to load the DLLs at this place. I was thinking to use the “assembly resolver” but I did not succeed to have a solution which works. I would like to know if someone has an idea or a solution to make it working.
Thanks in advance.
RomainPosted Sep 23, 2021, 12:45 PM
Rijwan AnsariPosted Sep 23, 2021, 12:03 PM
You can achieve like this.
1. Add those dll into solution Assemble folder as shown
2. Add reference from same folder
3. Right click of reference dll >> Properties then set Copy Local to True as shown
Then every time, you release the solution, those dlls will come into bin folder.
RomainPosted Sep 23, 2021, 11:46 AM
'iisexpress.exe' (CLR v4.0.30319: DefaultDomain)
And after that I have another one :
'iisexpress.exe' (CLR v4.0.30319: /LM/W3SVC/2/ROOT-1-132768598652050662)
I have made some code with using assembly resolver system to load my own assemblies in the second application domain (/LM/W3SVC/2/ROOT-1-132768598652050662) and it works fine.
Now, I would like to load my own assemblies in the application domain called "DefaultDomain" but I did not succeed it. I have tried assembly resolver but it does not work.
Priyanka K SPosted Aug 24, 2021, 11:10 AM
Hye,
try this below Link. He is also facing a similar issue.
https://forums.asp.net/t/1303052.aspx?Tell+IIS+to+load+dll+from+another+directory+not+Bin+web+config+
Dinesh DPosted Aug 23, 2021, 11:05 AM
RomainPosted Aug 23, 2021, 9:19 AM
Jay Krishna ReddyPosted Aug 21, 2021, 5:57 AM