开发者

ASP.NET UnauthorizedAccessException

We开发者_开发问答 have an intranet production server running in a virtual environment, which we cloned to make a development server. The computer name and IP are changed and everything is running fine. There is a shared folder on the production instance, which we reference from the development server because everything is readonly. I can visit the share from my local machine, from the development machine and from practically any machine on our network. When I debug my local version of the intranet, it connects to the production folder just fine. When I try to access the folder from my ASP.NET application on the development server, it gives me UnathorizedAccessException. I have given Everyone read access on both the sharing and the security tabs, and still I cannot access the folder.

Another part of our website connects to a folder on a third server. The development environment has no problem connecting to that. I changed the folder to the copy of the production folder on the development machine and it works just fine, but I would like it to point to the production machine anyway. I don't understand what is happening. How is it that I can share a folder to everyone and yet the development website cannot access it?


Is your ASP.NET worker process running as a low privilege account? If so you need to ensure that the account has access to the folder and that the access doesnt require privilege elevation if the machine is Win 2K8/Win 7.

Are you running IIS7? If so have you tried turning on diagnostic tracing, failed request tracing and verified that the "advanced settings > Test" is able to access the folder specified?

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜