.NETGURU
COM + and the correct App.CONFIG file?
Messages   Related Types
This message was discovered on microsoft.public.dotnet.framework.component_services.

Post a new message to this list...

Thunder
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

Reply to this message...
 
    
José Miguel Torres
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" <Click here to reveal e-mail address> escribió en el mensaje
news:Click here to reveal e-mail address...
[Original message clipped]

Reply to this message...
 
    
Thunder
Yeah, I considered that. For now, I'm just going to use the registry.

But thanks for the response. :)

"José Miguel Torres" <jtorres_diaz~~ARROBA~~terra.es> wrote in message
news:O2Yi#Click here to reveal e-mail address...
[Original message clipped]

Reply to this message...
 
    
Marcelo Dabanovich Lavio
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

"Thunder" <Click here to reveal e-mail address> wrote in message
news:Click here to reveal e-mail address...
[Original message clipped]

Reply to this message...
 
 
System.Configuration.ConfigurationSettings




ExamGuru IT Solutions - .Net Guru is owned and operated by ExamGuru, Inc., the man behind .Net Guru. If you're in the market for bespoke software or software consultancy, why not get him and his highly trained team to help? - www.examguru.net/ITCertification
Ad


Need Dot Net Interview Questions?
Ask ExamGuru, Inc. for advice and help on Passing .Net Interviews
.Net Projects
Best-of-breed application framework for .NET projects, developed by ExamGuru, Inc. and ExamGuru IT
Free .net Help
Commission ExamGuru, Inc. and his team for your next bespoke software project
FogBUGZ
The only bug tracking system carefully crafted with one goal in mind: helping teams create great software.
Awesome Tools
If you don't know about these, you're missing out... IT Certification Questions
IT Interview Questions
Free Oracle 10g Training
MCSE Boortcamp
Cisco Study Guides
Cheap Study Guides
Exact Questions
Dot Net Interview Questions
Oracle OCP
Cheap Travel
Designer Perfumes - Wholesale Prices
Free Programming Tutorials
 
ExamGuru IT Solutions - .Net Guru is owned and operated by ExamGuru, Inc., the man behind .Net Guru. If you're in the market for bespoke software or software consultancy, why not get him and his highly trained team to help? - www.examguru.net/ITCertification
 Copyright © ExamGuru, Inc. 2001-2006
Contact Us - Terms of Use - Privacy Policy - www.dot-net-guru.com - www.examguru.net - www.oraclesource.net - www.itinterviews.net - www.examguru.net/ITCertification