That may not work; if he's running as a low-privileged account, and the
application is installed in "Program Files", he won't have rights to write
to that directory.

The .config file is generally created for you when you use an Installer to
install the application onto the machine. Presumably, you would force people
to "install" the application, rather than just xcopy-deploy it.

Ted Neward
Author, Instructor, Consultant
Java, .NET, Web services
http://www.neward.net/ted

> -----Original Message-----
> From: Unmoderated discussion of advanced .NET topics. [mailto:ADVANCED-
> [EMAIL PROTECTED] On Behalf Of J. Merrill
> Sent: Wednesday, February 02, 2005 6:21 AM
> To: ADVANCED-DOTNET@DISCUSS.DEVELOP.COM
> Subject: Re: [ADVANCED-DOTNET] MS EIF n logging blocks
>
> You are presumably installing in an intranet environment, so your code
> should have local file system permission.  Look for the file in the
> indicated directory; if it's not there, create it with appropriate default
> info.
>
> Is there a reason that wouldn't work?
>
> At 12:28 AM 2/2/2005, Chakravarty, Sarvajith wrote
> >Hi All,
> >
> >I need to use 'MS enterprise instrumentation framework' for logging from
> >my framework (all dlls) I am going to build.
> >
> >I have no clue who may uses this framework and there may not be any
> >logging from the application using my framework.
> >The problem is EIF expects the EnterpriseInstrumention.config to be in
> >AppDomain.CurrentDomain.BaseDirectory.
> >
> >But when I build the framework, I have no clue about what is
> >AppDomain.CurrentDomain.BaseDirectory
> >and I may not be able to ask the users of the framework to include the
> >EnterpriseInstrumention.config in
> >AppDomain.CurrentDomain.BaseDirectory as they may not be interested in
> >the logging feature at all.
> >
> >To my surprise the source code for EIF is not released to the developers
> >(correct me if I am wrong!)
> >and I cannot change the code to look into a location of my choice.
> >So what best can I do to use EIF and be able to provide logging from my
> >framework, without the  EnterpriseInstrumention.config in
> >AppDomain.CurrentDomain.BaseDirectory?
> >
> >Thanks and appreciate any help.
> >
> >Regards,
> >Sarvajith
>
>
> J. Merrill / Analytical Software Corp
>
> ===================================
> This list is hosted by DevelopMentor.  http://www.develop.com
>
> View archives and manage your subscription(s) at
> http://discuss.develop.com

===================================
This list is hosted by DevelopMentorŪ  http://www.develop.com

View archives and manage your subscription(s) at http://discuss.develop.com

Reply via email to