System.UnauthorizedAccessException: Access to the path "server/file_share" is denied
-
Hi, I have a development and testing environment. I have set the the following on my web.config file: authentication mode="Windows" identity impersonate="true" And I'm trying to list directories and its subfolders and files from a different file_server/shared on my page. In my development environment, it is working fine. I was able to see the folders and files, but in the testing it is giving me: System.UnauthorizedAccessException: Access to the path "file_server/shared" is denied. On both development and testing IIS, I have the "Integrated Windows authentication" checked only. I granted "Everyone" and "Authenticated Users" read only to the file_server/shared. My codes are exactly the same on both environments. I'm also able to get the "WindowsIdentity.GetCurrent.Name" on both environments. I'm totally puzzled. Can anyone help me on how to troubleshoot this? Thank you very much May
-
Hi, I have a development and testing environment. I have set the the following on my web.config file: authentication mode="Windows" identity impersonate="true" And I'm trying to list directories and its subfolders and files from a different file_server/shared on my page. In my development environment, it is working fine. I was able to see the folders and files, but in the testing it is giving me: System.UnauthorizedAccessException: Access to the path "file_server/shared" is denied. On both development and testing IIS, I have the "Integrated Windows authentication" checked only. I granted "Everyone" and "Authenticated Users" read only to the file_server/shared. My codes are exactly the same on both environments. I'm also able to get the "WindowsIdentity.GetCurrent.Name" on both environments. I'm totally puzzled. Can anyone help me on how to troubleshoot this? Thank you very much May
mayl wrote:
I have a development and testing environment.
What is the development environment you meant to say? Is it your machine which you used for development?? Whats is the OS or IIS version used in it? Whats is the OS or IIS version used in your testing environment?
[Venkatesh Mookkan] My: Website | Yahoo Group | Blog Spot
-
Hi, I have a development and testing environment. I have set the the following on my web.config file: authentication mode="Windows" identity impersonate="true" And I'm trying to list directories and its subfolders and files from a different file_server/shared on my page. In my development environment, it is working fine. I was able to see the folders and files, but in the testing it is giving me: System.UnauthorizedAccessException: Access to the path "file_server/shared" is denied. On both development and testing IIS, I have the "Integrated Windows authentication" checked only. I granted "Everyone" and "Authenticated Users" read only to the file_server/shared. My codes are exactly the same on both environments. I'm also able to get the "WindowsIdentity.GetCurrent.Name" on both environments. I'm totally puzzled. Can anyone help me on how to troubleshoot this? Thank you very much May
-
mayl wrote:
I have a development and testing environment.
What is the development environment you meant to say? Is it your machine which you used for development?? Whats is the OS or IIS version used in it? Whats is the OS or IIS version used in your testing environment?
[Venkatesh Mookkan] My: Website | Yahoo Group | Blog Spot
-
Hi Guy can i know about your OS and development envoriment? becuase of if u Vista,little triky...
Cheers RRave MCTS,MCPD
-
OK so can u give a full rights to parent folder. or use ACL in .net
Cheers RRave MCTS,MCPD
-
Yes ACL is high level secuity reigth force by the code. See this link http://msdn2.microsoft.com/en-us/library/system.security.accesscontrol.directorysecurity.aspx[^] http://msdn2.microsoft.com/en-us/library/system.security.accesscontrol.aspx[^] and i will give a sample code also very soon. Thanks
Cheers RRave MCTS,MCPD