Hi Helen,
Thanks for your post. As I understand, your server with IIS has a drive
mapped to a different server. Now you want to write to a file in the mapped
drive in your ASP .NET application on the server. Please correct me if
there is any misunderstanding. I now share the following information with
you:
1. As you know, the codebehind of .aspx page are server side code that will
be executed on your IIS server. As in this case, you can use File class in
..NET class library to access the file in the mapped drive. Please refer to
MSDN documentation on File class:
File Class
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/
frlrfSystemIOFileClassTopic.asp
2. In addition, please make sure that your ASPNET account have enough
permissions to access the mapped folder and file. If not, you can either
set the folder's security properties manually or impersonate another user
account which has enough prevelidges in your ASP .NET Web application.
INFO: Implementing Impersonation in an ASP.NET Application
http://support.microsoft.com/?id=306158
Hope this helps.
Regards,
HuangTM
Microsoft Online Partner Support
MCSE/MCSD
Get Secure! --
www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.