Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / Component Services / June 2004

Tip: Looking for answers? Try searching our database.

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

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Thunder - 04 Jun 2004 02:33 GMT
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

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.