简体   繁体   English

在IIS 7.5上托管MVC应用

[英]Hosting MVC App on IIS 7.5

Could someone please provide me steps or link which explains the detailed process of hosting MVC application on IIS 7.5? 有人可以向我提供一些步骤或链接,以解释在IIS 7.5上托管MVC应用程序的详细过程吗?

Thanks in advance! 提前致谢!

I found it on my own with help of below link.. 我通过以下链接自行找到了它。

Here is the link 链接在这里

I followed these steps.. 我遵循了这些步骤。

Step 1: Click start and click Web Platform Installer (WPI) 步骤1:单击开始,然后单击Web平台安装程序(WPI)

Step 2: Choose tab Products from the top and In the left pane select All. 步骤2:从顶部选择选项卡Products,然后在左窗格中选择All。

Step 3: Install IIS 7 Recommended Configuration. 步骤3:安装IIS 7推荐配置。

Step 4: Right click the your project solution (here Firstmvcsite)and select Properties. 步骤4:右键单击您的项目解决方案(在此为Firstmvcsite),然后选择Properties(属性)。

Step 5: Select Web in the left pane --> Under Servers, select the Use Local IIS Web server radio button --> Select the Create Virtual Directory button. 步骤5:在左窗格中选择Web->在“服务器”下,选择“使用本地IIS Web服务器”单选按钮->选择“创建虚拟目录”按钮。

If you get the message like "Unable to create the virtual directory. To access Web sites on the local IIS Web server, you must run Visual Studio under an Administrator account". 如果收到类似“无法创建虚拟目录。要访问本地IIS Web服务器上的网站,则必须以管理员帐户运行Visual Studio”的消息。

Just click start --> find Visual Studio --> right click and Run as Administrator. 只需单击开始->查找Visual Studio->右键单击并以管理员身份运行。

Now you do the Step 5 again you will get success message. 现在,再次执行步骤5,您将获得成功消息。

Step 6: Go to start --> Run --> type inetmgr, and go to Internet Information Services (IIS) Manager and drill down in the Default Web Site and choose your site(here Firstmvcsite) and select Browse *:80(http) in the right pane. 步骤6:转到开始->运行->键入inetmgr,然后转到Internet信息服务(IIS)管理器并在“默认网站”中向下钻取,然后选择您的站点(此处为Firstmvcsite),然后选择“浏览*:80(http )。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM