ASP.NET impersonate cannot access network share drive
ASP.NET impersonate cannot access network share drive# DotNet - 窗口里的风景
a*e
1 楼
姐一生没做亏心事,半夜不怕鬼敲门,nnd 豁出去了
z*a
2 楼
My web app needs to write to a text file in a mapped folder on file server. On file server: D:\ is shared D:\IT\ is shared and mapped to I:\ D:\IT\MyFolder\ is created by me and set shared I have done the following: Create a user (IUSR_blahblah) with password at my local computer Create same user and password at file server Grant the user share permission to D:\ D:\IT (I:\) D:\IT\MyFolder\ Code impersonation in webpage code However, my web app can not access file server C:\ drive, D:\ shared drive, and hence D:\IT , and my folder in UNC naming (\fileserver\MyFolder\). The Error messages are: "Network name cannot be found" or "Network path cannot be found" or "Access to test.txt is denied" On file server I checked event viewer, i can find login originated from my PC and it says "audit success". Does that mean my app is able to login to file server, but cannot access shared/mapped drive/folder due to sharing permission error or security permission? if so, what kind of permission should I grant to user? Thanks.
C*S
3 楼
赞
c*t
4 楼
If your file server and PC are in same domain, you don't have to create same account on the file server, just use your domain account. UNC path should work.
a*e
5 楼
姐超不喜欢八卦,你们千万不要跟我八!!
a9
6 楼
用i:\访问的?
【在 z***a 的大作中提到】 : My web app needs to write to a text file in a mapped folder on file : server. : On file server: : D:\ is shared : D:\IT\ is shared and mapped to I:\ : D:\IT\MyFolder\ is created by me and set shared : I have done the following: : Create a user (IUSR_blahblah) with password at my local computer : Create same user and password at file server : Grant the user share permission to