File.Move to unc generates Access Denied
From: Michael McLaughlin (MichaelMcLaughlin_at_discussions.microsoft.com)
Date: 12/23/04
- Previous message: Nullabee: "mscorcfg: no controls visible"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Thu, 23 Dec 2004 08:27:04 -0800
Hopefully someone will have a little insight.
Using ASP.net written in vb.net I have a file interface which shows files in
a dropdown. The user picks the file they want to move/delete/download. The
user is logged into the page using Windows Integrated security. If they click
"move" it calls the linkbutton event which calls
file.Move("c:\filestore\" & CStr(DropDownList1.SelectedItem.Text),
"\\fileserver\fileshare\myfolder\" & CStr(DropDownList1.SelectedItem.Text))
The user has full access(acl) to the file and the resulting unc folder. So I
know this isn't an issue with the user account but with the account that the
file.move is currently running under. Is there a way to make sure I am
impersonating the user when performing this method?
Also anyone have a tip on sanitizing filenames?
Michael McLaughlin
- Previous message: Nullabee: "mscorcfg: no controls visible"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]