更改IIS 7的Inet根文件夹 [英] Change Inet root folder for iis 7

查看:185
本文介绍了更改IIS 7的Inet根文件夹的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我现在面临一个非常可气的挑战。我必须部署在生产服务器上我的ASP.NET MVC 3应用程序。

I am facing a very exasperating challenge. I have to deploy my ASP.NET MVC 3 application in a production server.

在此生产服务器我有两个驱动器 C: D:。我有权把我的网站在 D:\\ data文件夹,我不能使用 C:

In this production server I have two drives C: and D:. I am authorized to put my websites in the D:\data folder and I cannot use the C:.

不幸的是IIS创建在的Inet 目录C:,显然没有在IIS管理器中没有办法改变这个目的地。有什么办法到这个目录改变?在这是不可能的情况下,有没有办法用另一种方式来解决这个问题?

Unfortunately IIS creates the Inet directory in C: and apparently there is no way in the IIS manager to change this destination. Is there any way to change this directory? In the case this is not possible, is there any way to solve this problem in an alternative way?

考虑我刚才存储在ð我的code:生产服务器和我已经安装在它的Visual Studio

Consider that I have my code stored in the D: of the production server and I have Visual Studio installed in it.

感谢

弗朗西斯

推荐答案

您可以设置网站,任何你想要的位置的根文件夹中。如果你创建一个虚拟目录,并主持目录这里面MVC应用程序甚至可能是网站的根目录之外:

You can set the root folder of the website to whatever location you want. And if you create a virtual directory and host this MVC application inside the directory it could even be outside of the root of the web site:

这篇关于更改IIS 7的Inet根文件夹的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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