I
Ian
I have an application called "Test.exe" and this application has a config
file called "Test.exe.config" 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.Configuration.AppSettingsReader
Private o As Object = settings.GetValue("ConnectionString", 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
"CallExceptionHandling.dll" and it also has a config file called
"CallExceptionHandling.dll.config" and inside sits the connectionstring that
pertains to the generic exception handler assembly. The code used in the
assembly to get the connectionstring is the same code as used for the
application.
But when I run the application and the exception assembly goes and gets the
connectionstring it is looking to the "Test.exe" config file and not the dll
config file.
Where am I going wrong?
Thanks
file called "Test.exe.config" 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.Configuration.AppSettingsReader
Private o As Object = settings.GetValue("ConnectionString", 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
"CallExceptionHandling.dll" and it also has a config file called
"CallExceptionHandling.dll.config" and inside sits the connectionstring that
pertains to the generic exception handler assembly. The code used in the
assembly to get the connectionstring is the same code as used for the
application.
But when I run the application and the exception assembly goes and gets the
connectionstring it is looking to the "Test.exe" config file and not the dll
config file.
Where am I going wrong?
Thanks