开发者

IIS 7.5 403 access denied errors when deploying ASP.NET MVC application

开发者 https://www.devze.com 2023-04-12 19:03 出处:网络
The scenario is pretty basic. I am trying to run my MVC 3 application on my EC2 cloud server. These are the steps I took:

The scenario is pretty basic. I am trying to run my MVC 3 application on my EC2 cloud server. These are the steps I took:

  1. Installed Web Role with default settings and added ASP.NET
  2. Installed SQL Server Express
  3. Installed MVC 3
  4. Installed .NET 3.5 SP1 and .NET 4.0
  5. Installed all updates
  6. Installed Web Deploy 2.0 and configured one click deploy
  7. 开发者_开发知识库
  8. Created a new web site with its own application pool
  9. Deployed my site

When I try to access it I get a 403 Access Denied Error. I can access static HTML pages so I assume it has something to do with user permissions and the Application pool. Before deploying it to the cloud I ran the exact same steps on a local virtual machine to test and everything worked just fine.

I did some research and I tried to select the site in IIS, click Authentication, edited Anonymous Authentication and changed the user to Application Pool Identity (although my local VM is running this under IUSR and it works) but still no luck.

I didn't do anything out of the ordinary so I am a bit at loss here. Any help is appreciated.


Please check whether this helps. It appears the order in which you install the components matters. Link here

0

精彩评论

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

关注公众号