Yes it is possible.
You have to make sure that both .NET framework and Windows OS allowes you
to write the filed.

For Windows OS authorization, you can either:
* Run ASPNET user under NETWORKSERVICE account when using Windows 2003
* Impersonate a network user (in MSDN library, method
WindowsIdentity.Impersonate)
* modify machine.config in .NET framework folder to impersonate a network
user (look foor impersonate in machine.config)

I assume that the ASP.NET framework will allow you to write to this file.
Only when your web application's virtual directory is located on a
fileshare or DFS, you have to adjust the ASP.NET framework security by
changing code group LocalIntranet_Zone from the .NET configuration in
Administrative tools.
Change Permission Set of this code group to "FullTrust".

Martijn de Haas, http://www.artifactory.nl

On Mon, 15 Mar 2004 06:27:28 -0500, Bill Bassler <[EMAIL PROTECTED]>
wrote:

>Is there a way to allow the ASPNET local account write access to a log file
>on another machine within a shared directory?
>
>===================================
>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
===================================
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