Visual Studio 2013 Asp.net Razor v3网站无法托管IIS Windows 7.5(Visual Studio 2013 Asp.net Razor v3 website unable to host to IIS windows 7.5)

我正在尝试将一个asp.net razor v3网站托管到IIS,但它无法正常工作。 我尝试了多种选择,包括首先创建网站然后发布到IIS,或者使用visual studio 2013直接在IIS下创建新网站。它给了我HTTP错误503.该服务不可用。

重现错误的方法:选项1 1)在visual 2013中创建一个新的asp.net网站(razor v3),然后单击发布以发布到目录。 然后,将该目录添加为IIS中的网站。

选项2 1)在新网站窗口的visual studio 2013中,转到浏览并选择IIS,然后在IIS下创建一个虚拟目录目录以保存站点。

然后,转到浏览器并尝试访问托管站点:localhost / sitename,它总是会产生某种错误。 像503.我错过了什么? 请帮助,看起来我缺少一些步骤或一些配置更改。

此外,我正在尝试使用默认的razor v3 webiste内容,而不修改任何内容。 所以,我没有触及任何文件或任何东西,我只是想上传到IIS。

I am trying to host a asp.net razor v3 website to IIS, but it is not working. I tried multiple options including first creating the website then publishing to IIS, or directly creating a new website under IIS using visual studio 2013. It gives me HTTP Error 503. The service is unavailable.

Methods to reproduce Error: Option 1 1) Create a new asp.net web site (razor v3) in visual 2013, and click publish to publish to a directory. Then, add that directory as a website in IIS.

Option 2 1) On the new website window, in visual studio 2013, go to browse and select IIS, and create a virtual directory directory under IIS to save the site.

Then, go to the browser and try to access the hosted site: localhost/sitename, it always produces some kind of errors. Like 503. What am I missing? Please help, looks like I am missing some steps or some configuration changes.

Also, I am trying this with the default razor v3 webiste content and without modifying anything. So, I have not touched any files or anything, I am just trying to upload to IIS.

最满意答案

我发现的正确答案是,出于某种原因,您必须使用IIS Express 8.5来测试/托管该站点。

甚至在版本8之前具有完整IIS的Windows的全新副本上的安装也无法在我的测试计算机上运行。

The correct answer I found was that for some reason you must use the IIS Express 8.5 to test/host that site.

Even the installations on the fresh copies of Windows with Full IIS prior to version 8 did not work on my test machines.

Visual Studio 2013 Asp.net Razor v3网站无法托管IIS Windows 7.5(Visual Studio 2013 Asp.net Razor v3 website unable to host to IIS windows 7.5)

我正在尝试将一个asp.net razor v3网站托管到IIS,但它无法正常工作。 我尝试了多种选择,包括首先创建网站然后发布到IIS,或者使用visual studio 2013直接在IIS下创建新网站。它给了我HTTP错误503.该服务不可用。

重现错误的方法:选项1 1)在visual 2013中创建一个新的asp.net网站(razor v3),然后单击发布以发布到目录。 然后,将该目录添加为IIS中的网站。

选项2 1)在新网站窗口的visual studio 2013中,转到浏览并选择IIS,然后在IIS下创建一个虚拟目录目录以保存站点。

然后,转到浏览器并尝试访问托管站点:localhost / sitename,它总是会产生某种错误。 像503.我错过了什么? 请帮助,看起来我缺少一些步骤或一些配置更改。

此外,我正在尝试使用默认的razor v3 webiste内容,而不修改任何内容。 所以,我没有触及任何文件或任何东西,我只是想上传到IIS。

I am trying to host a asp.net razor v3 website to IIS, but it is not working. I tried multiple options including first creating the website then publishing to IIS, or directly creating a new website under IIS using visual studio 2013. It gives me HTTP Error 503. The service is unavailable.

Methods to reproduce Error: Option 1 1) Create a new asp.net web site (razor v3) in visual 2013, and click publish to publish to a directory. Then, add that directory as a website in IIS.

Option 2 1) On the new website window, in visual studio 2013, go to browse and select IIS, and create a virtual directory directory under IIS to save the site.

Then, go to the browser and try to access the hosted site: localhost/sitename, it always produces some kind of errors. Like 503. What am I missing? Please help, looks like I am missing some steps or some configuration changes.

Also, I am trying this with the default razor v3 webiste content and without modifying anything. So, I have not touched any files or anything, I am just trying to upload to IIS.

最满意答案

我发现的正确答案是,出于某种原因,您必须使用IIS Express 8.5来测试/托管该站点。

甚至在版本8之前具有完整IIS的Windows的全新副本上的安装也无法在我的测试计算机上运行。

The correct answer I found was that for some reason you must use the IIS Express 8.5 to test/host that site.

Even the installations on the fresh copies of Windows with Full IIS prior to version 8 did not work on my test machines.