Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Oct 13, 2010 01:34 PM by adeelehsan
Oct 11, 2010 08:54 PM|LINK
While publishing a website to IIS. Is it necessary that all the dlls should be present in bin folder rather than bin\debug folder.
I created a webservice using spring.net. In spring .net, a normal class library project is hosted as a web service.
I created a new virtual directory and pointed it to my class library folder.
It is giving me an error like "*.dll" is not present.
I browsed the folder strucure and saw all the files are present in bin\debug folder.
I copied my dlls from Bin\debug to placed it directy under bin folder and my webservice started working like a charm.
How i noticed this was, i opened a published website and found that the referenced system.web and other dlls are present directly in bin folder.
Is there any setting in IIS where we can ask the IIS t look for the dll in a particular folder.
Oct 13, 2010 01:29 PM|LINK
It is nessary to put the dll files in the bin folder.
You can set the output folder by project properties -> build -> output-> output path.
I hope this can be helpful for you.
Oct 13, 2010 01:34 PM|LINK
Yes XiaoCheng Fan is right. You have to copy all related .dll files in the bin directly. That's the location where the IIS looks for the binaries. Through Visual Studio you can set the output path directly. But in a live production server scenario, again
you have to copy the dlls from your development machine and copy them over to the bin folder of the target virtual directory.