Caution using Tracing with NTD Smart Clients!!!

Apparently using <system.diagnostics> and TraceSwitch inside an
app.config for a windows forms NTD Smart Client will fail because the
configuration name and path appear to be wired up differently than the
ConfigurationsSettings class.  Therefore, using tracing in NTD
applications will bomb.

I implemented a work around which works nicely, however, does anyone
have more technical details into how Tracing and Configurations are
implemented in the CLR?

Thanks,

Aaron

-----Original Message-----
From: Moderated discussion of advanced .NET topics.
[mailto:[EMAIL PROTECTED] On Behalf Of Aaron Wentzel
Sent: Monday, February 23, 2004 9:20 AM
To: [EMAIL PROTECTED]
Subject: [ADVANCED-DOTNET] No Touch Deployment & Tracing

> I have a NTD application running over the web with Full Trust.  I have
> no problem accessing the configuration file using the
> ConfigurationSetting class.  However, when I attempt to access it
> using
>
> private static TraceSwitch _moduleTrace = new
> TraceSwitch("ModuleTraceSwitch", "Production Module Trace Switch");
>
> I receive the error message
> System.Reflection.TargetInvocationException -->
> System.Security.SecurityException:  Requires for the permission of
> type System.Security.Permissions.FileIOPermission.
>
> Any suggestions on how I'd resolve this would be greatly appreciated.
>
> Thanks,
>
> Aaron
>
>
>
>
>
This message is a private communication. It may contain information that
is confidential and legally protected from disclosure. If you are not an
intended recipient, please do not read, copy or use this message or any
attachments, and do not disclose them to others.
Please notify the sender of the delivery error by replying to this
message, and then delete it and any attachments from your system.
Thank you,
Solucient LLC
(rev eXclaimer 2x)

===================================
This list is hosted by DevelopMentorR  http://www.develop.com
Some .NET courses you may be interested in:

NEW! Guerrilla ASP.NET, 17 May 2004, in Los Angeles
http://www.develop.com/courses/gaspdotnetls

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

===================================
This list is hosted by DevelopMentor�  http://www.develop.com
Some .NET courses you may be interested in:

NEW! Guerrilla ASP.NET, 17 May 2004, in Los Angeles
http://www.develop.com/courses/gaspdotnetls

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

Reply via email to