I have an application called "Test.exe" and this application has a config
file called "Test.exe.confi g" and it holds the connection string for the
database calls in there. To get the conectionstring out of the config file
the following lines of code are utilized.
Private settings As New System.Configur ation.AppSettin gsReader
Private o As Object = settings.GetVal ue("ConnectionS tring", GetType(String) )
Private strConnection As String = o.ToString()
This works fine.... But I also have an exception assembly that I imported
into this application "Test.exe". The assembly is called
"CallExceptionH andling.dll" and it also has a config file called
"CallExceptionH andling.dll.con fig" and inside sits the connectionstrin g that
pertains to the generic exception handler assembly. The code used in the
assembly to get the connectionstrin g is the same code as used for the
application.
But when I run the application and the exception assembly goes and gets the
connectionstrin g it is looking to the "Test.exe" config file and not the dll
config file.
Where am I going wrong?
Thanks