all groups > dotnet component services > june 2004 >
You're in the

dotnet component services

group:

COM + and the correct App.CONFIG file???


COM + and the correct App.CONFIG file??? Thunder
6/3/2004 6:33:40 PM
dotnet component services: 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

Re: COM + and the correct App.CONFIG file??? José Miguel Torres
6/4/2004 11:20:16 AM
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
"Thunder" <mbowman@verticalworks.com> escribió en el mensaje
news:O3k9ANdSEHA.2236@TK2MSFTNGP09.phx.gbl...
[quoted text, click to view]

Re: COM + and the correct App.CONFIG file??? Thunder
6/4/2004 4:57:23 PM
Yeah, I considered that. For now, I'm just going to use the registry.

But thanks for the response. :)

[quoted text, click to view]

Re: COM + and the correct App.CONFIG file??? Marcelo Dabanovich Lavio
6/7/2004 6:47:29 PM

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


[quoted text, click to view]

AddThis Social Bookmark Button