Is it possible to make a dll method application independent?
I want to write a generic method which I register as a dll
It will execute a method which is based on the configuration settings in web.config file for each web application that uses this method
do I have to pass information from the web application in the method call like:
mydllmethod(ex, appname, setting1, setting2)
OR
is there a way to write the dll method generic so it will automatically read configuration information from the webapplication that instanciate it(it's web.config)...
I hope I make some sense...
kind regards
Henrik
Get calling dll assembly info
I have a fully functionally error handler just as you described you want to build. I use the following to get the calling assembly's root namespace.
VB Code:
Function AppendError(ByVal Sender as system.object, byVal ErrorMessage as string) as boolean
dim strAppName as string = Sender.GetType.Assembly.GetCallingAssembly.FullName
'do your file write code
End Function