Hi Mauricio
I had same problems with integration of log4net in COM+ applications.
I finally found a generic solution witch does not rely on the rootdir =
setting for COM+ applications
You can use the construction string to set the config file location.
In order to use this method, you must:
- enable construction in com+ component
<ConstructionEnabled(True)> _
Public Class ComPlusServerApp
End Class
- Set the construct string for the COM+ component (can be set through =
COM+ MMC)
The setting is on Component Level, not on the Application level
Set the construction string to something like: CONFIGFILE=3D<path to con=
fig>
Hope this helps
Yannik
Am 25.10.2006, 17:05 Uhr, schrieb Mauricio C Vidotto =
<MauricioCVidotto@discussions.microsoft.com>:
[quoted text, click to view] > I have a log component that gets information from config file and the =
=
[quoted text, click to view] > factory
> create an instance of implementation that I wish. Now I need to use th=
e =
[quoted text, click to view] > log
> component for a new service component. The start process is ddlhost.ex=
e =
[quoted text, click to view] > but I
> can't create file dllhost.exe.config because this configuration is not=
=
[quoted text, click to view] > common
> for all. I read some articles where I can create a manifest and config=
=
[quoted text, click to view] > file
> for the application and set the root folder on COM+. I done this but =
> didn't
> work. Everyone can help me or send links about how can I do this?
>
> []'s
>
> Mauricio