473,386 Members | 1,758 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

App Config for an Assembly that is a COM Server App

I have a DLL called "GacMe.dll", and would like to read Configuration
settings from it. For instance:
strRole = System.Configuration.ConfigurationSettings.AppSett ings("Role")

Question:
In MSDN, I see instructions for creating an AppConfig file for executables
and for Web apps. I do not see where to put (or what to name) a config file
for a DLL running as a COM Server App (and thus running as DLLHost.exe).
What should this file be named and in what directory should it be placed?
Feb 22 '06 #1
2 1199
Hi SpockMonster,

Yep, this is a bit of a problem.

Check out Clemens Vasters' solution to the problem at
http://staff.newtelligence.net/cleme...9-ae95b50f7e8d.

I've used this technique before and it works like a charm. Make sure you
note the difference between COM+ 1.0 (Win2K) and COM+ 1.5 (Win2K3). Hopefully
you've got Win2K3, in which case it makes the solution a lot easier.

HTH,

Adam

--
Adam May
Sydney, Australia
MCSD.Net
"SpockMonster" wrote:
I have a DLL called "GacMe.dll", and would like to read Configuration
settings from it. For instance:
strRole = System.Configuration.ConfigurationSettings.AppSett ings("Role")

Question:
In MSDN, I see instructions for creating an AppConfig file for executables
and for Web apps. I do not see where to put (or what to name) a config file
for a DLL running as a COM Server App (and thus running as DLLHost.exe).
What should this file be named and in what directory should it be placed?

Feb 23 '06 #2
Thank you Adam - this works perfectly. It boils my blood that MS doesn't
document solutions like this. Arrgggghhh! Thank the gods for the user
community.

"Adam May" wrote:
Hi SpockMonster,

Yep, this is a bit of a problem.

Check out Clemens Vasters' solution to the problem at
http://staff.newtelligence.net/cleme...9-ae95b50f7e8d.

I've used this technique before and it works like a charm. Make sure you
note the difference between COM+ 1.0 (Win2K) and COM+ 1.5 (Win2K3). Hopefully
you've got Win2K3, in which case it makes the solution a lot easier.

HTH,

Adam

--
Adam May
Sydney, Australia
MCSD.Net
"SpockMonster" wrote:
I have a DLL called "GacMe.dll", and would like to read Configuration
settings from it. For instance:
strRole = System.Configuration.ConfigurationSettings.AppSett ings("Role")

Question:
In MSDN, I see instructions for creating an AppConfig file for executables
and for Web apps. I do not see where to put (or what to name) a config file
for a DLL running as a COM Server App (and thus running as DLLHost.exe).
What should this file be named and in what directory should it be placed?

Feb 23 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: WFB | last post by:
Hi, I have an application with a couple of referenced assemblies. The referenced assemblies and my application all share a few configuration settings with the same name but different values. ...
2
by: WFB | last post by:
Hi I have an application with a couple of referenced assemblies. The referenced assemblies and my application all share a few configuration settings with the same name but different values. Is...
1
by: Ivan | last post by:
Hi, I have moved an entire solution from .netframework 1.0 to 1.1; also I have migrated the solution to VS2003. After this I have added a new project (Web) to previous solution; I'm referencing...
2
by: Anna | last post by:
I added a small Web.Config file to the root of my website so that I could view errors on a machine other than the server: <configuration> <system.web> <customErrors mode="Off" /> </system.web>...
3
by: Lee Chapman | last post by:
Hi, I want my ASP.NET web application to use a custom HtmlTextWriter. i.e. I want the object that the Framework passes to System.Web.UI.Control.Render() to be my own object, MyHtmlTextWriter,...
1
by: Robert | last post by:
I have a server where the main web application (root) is now migrated to 2.0. It's web.config has a line where it adds the system.data.oracleclient in the configuration and assembiles section. ...
8
by: =?Utf-8?B?Y2FsZGVyYXJh?= | last post by:
Dear all, I am building a set of libraries working in a n tiers architecture Some of those libraries use common configuration settings like the database connection string and some others. I...
0
by: BrianKer | last post by:
Hi! It's my first discussion on this forum. First I have a exe like this below (the object can invoke by console) public class DynamicLoad { public Type AssemblyType = null; ...
0
by: hoots | last post by:
The Problem: I want to be able to use an assembly of an independant application which is not strong named from within an SSIS script component. I have created a wrapper assembly (Utils.dll)...
5
by: mmcd79 | last post by:
I built a VB.net application that makes use of a machine level DB connection string setting, and a user level starting location setting. The machine level setting and the default user based...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.