PDA

View Full Version : App.Config file not recognized


jwite2003
08-15-2003, 11:49 PM
Hi...

I created a window service using VS.NET 2003 which connects to an Oracle 9i db backend. It works fine on my machine, but doesn't seem to recognize the App.Config file when I try to deploy it on other machines. I'm only using App.Config to store the connection string to the database. If I hard code the connection into the code before deploying to the new machine it always works without a hitch. But I'd like to be able to deploy without recompiling different versions all the time and then let the user edit the App.Config file and set the connection to the database themselves. Anyone have any ideas? or is this not allowed?

Thanks,

Roy Sinclair
08-18-2003, 04:03 PM
Perhaps the app.config isn't getting checked because it isn't in the root of an IIS application. Check it using the IIS Manager.

jwite2003
09-10-2003, 10:46 PM
That was it Roy... I discovered that it was creating a second version of the app.config file and I had been changing the wrong one during the testing phase.

Thanks,