Hello,
I am saving the uploaded file in the below location.
AttachmentName = Guid.NewGuid.ToString()
SavePath = "Z:\NAUUploadedFiles\" + AttachmentName
fuAttachments.SaveAs(SavePath)
After publishing my code to server, Files are not uploading for other users as they permission issues. So, I implement impersonation by following the below link
http://support.microsoft.com/kb/306158#2
I impletemented "Impersonate a Specific User in Code" and give my domain, username and password. Now the code looks like this.
Try
If objSecurityService.ImpersonateUser(strReportsUser, strReportsUserDomain, strReportsPassword) Then
bImpersonate = True
Dim windowsIdentity As WindowsIdentity = DirectCast(System.Security.Principal.WindowsIdentity.G ...
Go to the complete details ...