开发者

ASP.NET MVC 3 app on IIS6

I have hosted .NET 4.0 / ASP.NET MVC 3 app on IIS 6 on Windows SErver 2003 machine. When I browse the app i get below error:

Access to the path 'C:\Program Files\Reference Assemblies\Microsoft\Framework\' is denied.

ASP.NET MVC 3 app on IIS6

I have installed .net 4.0 on machine and when I checked the path referred in error I don't see .net 4.0 folder there. So it's very confus开发者_JAVA百科ing and not able to figure out where is the problem? I would appreciate if anyone can help on this.


I think this is about permissions or something. Will you at least try to impersonate web application to a user who has access permission to the referenced folder?

You can find information about impersonation here.


I'd first start here. If that doesn't help then you need to grant access to that folder to the account that runs the ASP.Net service (ASPNET???).


It sounds like when the first version of .net was installed with the reference assemblies the permissions weren't properly set on it. Its just simply a matter of changing permissions. aspnet_regiis as previously mentioned won't work here, this is a folder used as a local reference path when you add references to libraries in the GAC. When you click "add reference" in visual studio - all the gac libraries that show up are from this location, it is not actually querying the gac (you can also set registry keys to customize that location as well). Just follow these directions to change permissions on that folder and subfolders and you should be good. if you still have an issue edit your question and post the new error msg

http://www.asp.net/learn/whitepapers/denied-access-to-iis-directories


The issue got solved when I installed MVC3 on my server.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜