Hello,
When I place my components in COM+ (in Server mode), they fail to pick up
and read the APP.CONFIG file. Of course, when the apps run in the memory
process of the client, all is well an dandy as the DB settings are picked up
just fine using :
ConfigurationSettings.AppSettings["SQLConn"]
So the question is, just how do you get your COM+ components to read the
*.CONFIG file, and where do you place the file? I imagine the file should
be placed in the same place as the DLL???
-Michael
Jos? Miguel Torres - 04 Jun 2004 10:20 GMT
Perhaps, you need to use Shared Property Manager to resolve the problem.
See also
http://www.4guysfromrolla.com/webtech/091000-1.shtml
Regards
--
Jos? Miguel Torres
jtorres_diaz~~ARROBA~~terra.es
> Hello,
>
[quoted text clipped - 10 lines]
>
> -Michael
Thunder - 05 Jun 2004 00:57 GMT
Yeah, I considered that. For now, I'm just going to use the registry.
But thanks for the response. :)
> Perhaps, you need to use Shared Property Manager to resolve the problem.
> See also
[quoted text clipped - 20 lines]
> >
> > -Michael
Marcelo Dabanovich Lavio - 07 Jun 2004 22:47 GMT
Thunder,
If you are using Windows 2000, and your COM+ app is a server one, your
app.config should be called dllhost.exe.config and must be in the same
directory as dllhost.exe (which is %SystemRoot%\System32).
If you are using Windows 2003, you can go to the Activation tab of the COM+
app properties and set the Application Root Directory property to point to a
location of your preference, and, in that directory, you must place a file
called application.config (with your config settings) and another file
caller application.manifest with the content shown bellow
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
</assembly>
More details in this post
http://blogs.msdn.com/florinlazar/archive/2003/12/04/41369.aspx
at Florin Lazar's WebLog.
Marcelo
> Hello,
>
[quoted text clipped - 10 lines]
>
> -Michael