403部署asp.net 4.0 MVC 3的网站时禁止IIS 7 [英] 403 Forbidden when Deploying asp.net 4.0 MVC 3 site to IIS 7

查看:151
本文介绍了403部署asp.net 4.0 MVC 3的网站时禁止IIS 7的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以,我有一个EC2实例上运行,网址
NoWeatherSurprises.com
我有DNS指向那里,我成立了一个新的网站在IIS 7中,它指向的文件夹。我用视觉工作室Web开发2010前preSS发布到该文件夹​​。它现在拥有的二进制文件和这样的。

So I have an EC2 instance running, the URL NoWeatherSurprises.com I have the DNS pointing there, and I set up a new site in IIS 7 and pointed it to a folder. I used Visual Studios Web Developer 2010 express to publish to this folder. It now has the binaries and such.

但是,如果我去NoWeatherSurprises.com我得到的欢迎IIS 7的屏幕。
我期望去我的应用程序
如果我浏览到 http://noweathersurprises.com/weather/ [天气我wwwroot之下发布到该文件夹]
我得到一个403禁止。我不知道为什么,我猜测它正试图做一个目录列表或某事,而不是我发起MVC应用程序。

However if I go to NoWeatherSurprises.com I get the welcome to IIS 7 screen. I'd expect to go to my application If I navigate to http://noweathersurprises.com/weather/ [weather was the folder I published to under wwwroot] I get a 403 forbidden. I have no idea why, I am guessing that it is trying to do a directory listing or something instead of launching my MVC Application.

所以2问题的总结。


  1. 这是没有指向的域名直接在文件夹,我需要添加/天气

  2. 我越来越被禁止的,而不是我的家控制器index操作结果的403。

我是新来的IIS 7,我一直在使用IIS 6,并有少了很多麻烦设置它,但我怀疑这是我自己的错,我只是失去了一些东西。
感谢您事先的任何帮助。

I am new to IIS 7, I had been using IIS 6 and had a lot less trouble setting it up, but I suspect that's my own fault and i am just missing something. Thanks in advance for any help

推荐答案

你是怎么设置的物理路径到您的网站?

What did you set your physical path to your website?

在IIS管理器右侧有基本设置在这里你能看到它的指向。

On the right hand side in IIS Manager there is 'Basic Settings' where you can see where its pointing.

您已经检查之后,确认为您的网站的应用程序池是框架V4.0。再在IIS管理器下看应用程序池,找到您的网站,并确保该框架的版本是4.0(集成)

After you've checked that, make sure the application pool for your website is for v4.0 of the framework. Again in the IIS Manager look under Application Pools, find your website and ensure the framework version is 4.0 (Integrated)

这篇关于403部署asp.net 4.0 MVC 3的网站时禁止IIS 7的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆