上安装IIS7 MVC网站 [英] Install MVC website on IIS7

查看:182
本文介绍了上安装IIS7 MVC网站的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用VisualStudio中建立一个C#-MVC3网站,它的伟大工程。

I use VisualStudio to build a C#-MVC3 Website and it works great.

我需要安装不同的计算机上的网站进行检查。计算机有IIS7。

I need to install the website on a different computer to check it. The computer has IIS7.

我试图安装(我第一次......我真的不知道IIS),当我浏览网站(本地主机/ MYSITE)我可以看到所有的目录(控制器,视图...),但我不能看到网站本身。

I tried to install (my first time... I don't really know IIS), and when I browse the site (localhost/mySite) I can see all the directories (controllers, views...) but I can't see the site itself.

我可以查看特定的文件(如本地主机/ MYSITE /内容/ img.jpg),但我无法看到站点控制器(本地主机/ MYSITE,或本地主机/ MYSITE /首页)

I can see a specific file (like localhost/mySite/Content/img.jpg) but I can't see the site with the controllers (localhost/mySite, or localhost/mySite/Home)

怎么来?

推荐答案

首先,安装 ASP MVC ,然后运行之一以下根据您的架构:

First, install ASP MVC, then run one of the following depending on your architecture:

32位(x86)的视窗

32bit (x86) Windows

%windir%\Microsoft.NET\Framework\v4.0.30319\aspnet_regiis.exe -ir

64位(x64)的视窗

64bit (x64) Windows

%windir%\Microsoft.NET\Framework64\v4.0.30319\aspnet_regiis.exe -ir

也检查此线程的详细信息:
ASP.NET MVC在IIS 7.5

您也可以需要这些步骤后重新创建你的应用程序/网站。

You could also need to recreate your application/site after these steps.

这篇关于上安装IIS7 MVC网站的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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