开发者

Secure files with app pool identity

I have an ASP MVC application installed on IIS 7.5.

I have specified the app pool identity to be a domain service account.

The application has anonymous authentication disabled and windows authentication enabled. The domain service account has full access to a set of files on the server that I want to access from ASP.

When I try a开发者_JAVA百科nd access the files from the ASP application I get an error, "access to the path ... is denied.".

I can only get this to go away by giving the windows user account access to the files. What I want to do is just give the service account access to the files.

Impersonation is disabled in the web.config via <identity impersonate="false" />

How can this be achieved?


Have you tried disabling ASP.NET Impersonation?


If you are trying to access files locally on the server, try to use the LocalSystem account for your app-pool identity.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜