ASP.NET and drive mappings

A

AA

I want to copy a file from within an ASP.NET page using
File.Copy(file1,file2). Both file1 and file2 are given in UNC
notation, like "\\MACHINE1\c$\xyz\file.txt". The ASP.NET page
impersonates a user that has access to those files. I get an error
stating that the file does not exist. If I try from within a windows
app I have no problem. I think the problem is that aspnet_wp.exe runs
under ASPNET's identity.
Can you give me further help?
Thx,
Alejandro
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,482
Members
44,901
Latest member
Noble71S45

Latest Threads

Top