配置IIS(Windows 7)中的ASP.NET / ASP.NET MVC 3 [英] Configuring IIS (Windows 7) for ASP.NET / ASP.NET MVC 3

查看:240
本文介绍了配置IIS(Windows 7)中的ASP.NET / ASP.NET MVC 3的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我忙着一个ASP.NET MVC 3应用程序的工作,并使用Windows 7目前,它使用内置的Web服务器来运行Web应用程序。我想它在IIS中运行。是否有我需要知道这个设置最多时在IIS上运行任何意见?

I am busy working with an ASP.NET MVC 3 application and using Windows 7. Currently it uses the built in web server to run the web application. I would like it to run in IIS. Is there any advice that I need to know about when setting this up to run on IIS?

这是工作的一个家伙说我的Web应用程序的必须是在wwwroot目录为IIS才能正常工作。我对此的理解是,如果我创建了一个虚拟目录(当时的Web应用程序可以在任何目录),那么我应该没事吧?

A guy from work said that my web application MUST be in the wwwroot directory for IIS to work properly. My understanding of this is that if I created a virtual directory (web application can then be in any directory) then I should be ok?

另外,是我可以购买,可以帮助我理解IIS有更好的书得体?这不必是特定的ASP.NET MVC。我知道如何在IIS中唯一要做的就是创建一个虚拟目录:)

Also, are there decent books that I can purchase that can help me in understanding IIS better? This does not have to be specific to ASP.NET MVC. The only thing that I know how to do in IIS is to create a virtual directory :)

怎么会那么调试应用程序时,它运行在IIS?

How would I then debug the application when it is running in IIS?

任何意见和网络文章将AP preciated:)

Any advice and internet articles would be appreciated :)

推荐答案

您可以用VS.NET做你的工作。在项目的属性页,切换到网络选项卡和编程选择使用本地IIS Web服务器。提供你想要的网址和VS.将做休息。

You can use VS.NET do to the work for you. In your project's properties page, switch to the "Web" tab and slect "Use Local IIS Web Server". Provide the url you desire and VS. will do the rest.

要具体回答你的问题,没有你的网站没有被IIS的根文件夹的子文件夹,这个工作和调试将恢复正常。

To answer your question specifically, no your site doesn't have to be a sub folder of IIS's root folder for this to work and debugging will work as normal.

FYI:我从来没有使用开发Web服务器,并一直使用IIS。我的大部分项目都是IIS的根文件夹的子文件夹和我手动编辑.proj文件将其指向正确的地方。但是这不是必需的东西工作

FYI: I don't ever use the Development web server and have always used IIS. Most of my project are sub folders of IIS's root folder and I manually edit the .proj file to point it to the right place. But this is not required for things to work.

通过Internet信息服务管理器,你应该能够做很多比创建虚拟文件夹。事情很简单一点。

With Internet Information Services Manager you should be able to do a lot more than create virtual folders. Things are quite a bit simpler.

然而,如在一般方面IIS和AS​​P.NET。我建议你​​在App游泳场及其过程模型(中processModel下的各个选项,以及其他部分)读了。

However, as regards IIS and ASP.NET in general. I'd suggest you read up on App Pools and their process model (the various options under ProcessModel as well as other sections).

MSDN和 http://www.iis.net/ 总体上是好的地方上获得不俗的信息所有的东西IIS。

MSDN and http://www.iis.net/ are generally good places to get decent information on all things IIS.

编辑:
顺便说一句,你可能也想看看最近推出的IIS防爆preSS。它实际上取代了开发服务器,并真正IIS 7的所有意图和目的,因此所有的IIS 7的功能是可用的。另外,您不需要运行VS以管理员身份如果由于某种原因你不能。

As an aside, you may also want to look at the recently introduced IIS Express. It actually replaces the development server and is really IIS 7 for all intents and purposes so all of IIS 7's functionality is available. Plus you don't need to run your VS as administrator if for some reason you're not able to.

如果您能够运行VS.NET为你的计算机的管理员我建议使用IIS 7。

If you are able to run VS.NET as administrator on your machine I'd suggest using IIS 7.

这篇关于配置IIS(Windows 7)中的ASP.NET / ASP.NET MVC 3的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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