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:
- Installed Web Role with default settings and added ASP.NET
- Installed SQL Server Express
- Installed MVC 3
- Installed .NET 3.5 SP1 and .NET 4.0
- Installed all updates
- Installed Web Deploy 2.0 and configured one click deploy 开发者_开发知识库
- Created a new web site with its own application pool
- 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
精彩评论