Wednesday, 12 October 2016

iis - C# dotnet web application: Dll's xml config file is lost when Publishing

I'm a bit lost!




I have a dll that uses an xml config file for some db connection info. The dll looks for the xml config file in it's own directory and I can't change the dll at all.



Every time I build the project, I must manually copy the config file into a folder way down somewhere in the Temporary ASP.NET Files folder. (I don't understand this but I can live with this manual change)



The problem is that when I publish the project, I can't figure out where to copy the config file to?



Could someone please point me in the right direction? Or maybe show me a way that I can 'bind' the xml config file to the bin folder???



Vauneen

No comments:

Post a Comment

c++ - Does curly brackets matter for empty constructor?

Those brackets declare an empty, inline constructor. In that case, with them, the constructor does exist, it merely does nothing more than t...