J
Jim Bancroft
The answer's probably "no," but no harm in asking: Is it possible for a
serviced component, running in a COM+ server package, to read the
AppSettings of an aspx page that calls it?
Here's an example of what I'm dealing with. If I put my serviced component
in a COM+ library package and call it from an aspx page then the component
can make calls like this with no problem:
string ConnString =
ConfigurationSettings.AppSettings["ConnString"].ToString();
However, the same component in a COM+ server package is unable to find any
such AppSetting. It makes sense, given the component is now running outside
the webserver process, but I was wondering if there was a well-known
workaround (or kludge) that would still give me access to the web
application's configuration settings? Thanks in advance for your
reccomendations and tips.
-Jim
serviced component, running in a COM+ server package, to read the
AppSettings of an aspx page that calls it?
Here's an example of what I'm dealing with. If I put my serviced component
in a COM+ library package and call it from an aspx page then the component
can make calls like this with no problem:
string ConnString =
ConfigurationSettings.AppSettings["ConnString"].ToString();
However, the same component in a COM+ server package is unable to find any
such AppSetting. It makes sense, given the component is now running outside
the webserver process, but I was wondering if there was a well-known
workaround (or kludge) that would still give me access to the web
application's configuration settings? Thanks in advance for your
reccomendations and tips.
-Jim