开发者

Asp - only localhost can access shared drive

开发者 https://www.devze.com 2023-01-07 22:36 出处:网络
I\'m migrating a legacy asp application onto a windows 2003 server. It access files on the lan which is where the problem lies. The user id is a domain account id so for anonymous access i have entere

I'm migrating a legacy asp application onto a windows 2003 server. It access files on the lan which is where the problem lies. The user id is a domain account id so for anonymous access i have entered the domain\iusr_machinename. This works fine when running i开发者_运维技巧t locally, the log file shows it running as localhost, but when i try from another machine I get a path not found error. The id i am accessing it with should has access to the directory on the lan. Any suggestions appreciated.


Because it's the .net environment the one accessing the files, unless you are using impersonation, the user that's connecting to the network share is the one assigned to the AppPool that's assigned to the asp.net website.

So, basically, you don't need to change the user assigned to anonymous in this instance, but the user assigned to the AppPool. Either that, or enable impersonation ( http://msdn.microsoft.com/en-us/library/aa292118%28VS.71%29.aspx ).

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号