App.config path not correctly interpreted by ASP.NET Application
Posted
by seragu05
on Stack Overflow
See other posts from Stack Overflow
or by seragu05
Published on 2010-05-20T18:15:16Z
Indexed on
2010/05/21
15:10 UTC
Read the original article
Hit count: 198
Hello everyone !
I'm working on a very old project (2000) in VB6 which was "modernized" and upgraded to VB.NET 3.5. I've centralized every old INI configuration file into one MainApp.config, which is referenced by the app.config of every component.
There's an VB ASP.NET website in the solution, which uses DLL components, which are looking into app.config for parameters like, say, error log directory, etc.
I've deployed the site on my dev. server (Windows 2008 Server w/ IIS 7.0) into the D:\WebSite\
directory.
Problem: When running the site, an error occurs.
A DLL is looking into app.config for the parameter RepertoireErreur
which has the value .\Erreurs\
Instead of returning
D:\WebSite\Erreurs\
it returns
c:\windows\system32\inetsrv\.\Erreurs\
which doesn't contain the Erreurs
directory. Boom. Error.
Does anyone have ever encountered the same problem ? Is there a solution ?
Thanks,
© Stack Overflow or respective owner