ASP.NET Development Server模拟IIS6或IIS7?

时间:2020-12-17 18:16:50

In visual studio 2008, when we press Ctrl+F5, the ASP.NET Development Server is launched to simulate a Web Server. I'm wondering what server does it simulate? IIS6 or IIS7? Is it possible to customize what server it simulate?

在visual studio 2008中,当我们按Ctrl + F5时,将启动ASP.NET Development Server来模拟Web服务器。我想知道它模拟的服务器是什么? IIS6还是IIS7?是否可以自定义它模拟的服务器?

3 个解决方案

#1


2  

It doesn't simulate a server as such, it runs on a server based on cassini that is written in .net and has source code available. I suppose it's more similar to IIS6 in that it does not support the IIS7 integrated pipeline feature. You can always choose to have VS use II6 or IIS7 if it's installed (depending on whether you have XP or Vista on your DEV PC).

它不像这样模拟服务器,它在基于cassini的服务器上运行,该服务器用.net编写并且具有可用的源代码。我认为它与IIS6更相似,因为它不支持IIS7集成管道功能。如果安装了VS,您可以随时选择使用II6或IIS7(取决于您的DEV PC上是否有XP或Vista)。

#2


3  

I don't think it "simulates" either, tbh, it just a web server for local development where IIS is not an option, based off Cassini. More information here.

我不认为它“模拟”,tbh,它只是一个用于本地开发的Web服务器,其中IIS不是一个选项,基于Cassini。更多信息在这里。

#3


0  

Sorry, a question, not an answer: What are the server differences between IIS6 and II7 that matter to your code?

抱歉,问题而不是答案:IIS6和II7之间的服务器差异对您的代码有何影响?

For ASP.NET development, the web server itself is somewhat ASP.NET neutral. It forwards the request to the .NET framework, so THAT's the part that matters.

对于ASP.NET开发,Web服务器本身在某种程度上是ASP.NET中立的。它将请求转发到.NET框架,因此这是重要的部分。

More info here: http://msdn.microsoft.com/en-us/library/58wxa9w5.aspx

更多信息:http://msdn.microsoft.com/en-us/library/58wxa9w5.aspx

Adding Morgan Cheng's comment into the answer: There is some difference between IIS6 and IIS7 on how to explain web.config. For example, to customize UrlRouteHandler, according to MSDN. IIS6 and IIS7 are different. Details in http://msdn.microsoft.com/en-us/library/system.web.routing.urlroutinghandler.aspx

将Morgan Cheng的评论添加到答案中:IIS6和IIS7之间在如何解释web.config方面存在一些差异。例如,根据MSDN自定义UrlRouteHandler。 IIS6和IIS7是不同的。有关详细信息,请访问http://msdn.microsoft.com/en-us/library/system.web.routing.urlroutinghandler.aspx

#1


2  

It doesn't simulate a server as such, it runs on a server based on cassini that is written in .net and has source code available. I suppose it's more similar to IIS6 in that it does not support the IIS7 integrated pipeline feature. You can always choose to have VS use II6 or IIS7 if it's installed (depending on whether you have XP or Vista on your DEV PC).

它不像这样模拟服务器,它在基于cassini的服务器上运行,该服务器用.net编写并且具有可用的源代码。我认为它与IIS6更相似,因为它不支持IIS7集成管道功能。如果安装了VS,您可以随时选择使用II6或IIS7(取决于您的DEV PC上是否有XP或Vista)。

#2


3  

I don't think it "simulates" either, tbh, it just a web server for local development where IIS is not an option, based off Cassini. More information here.

我不认为它“模拟”,tbh,它只是一个用于本地开发的Web服务器,其中IIS不是一个选项,基于Cassini。更多信息在这里。

#3


0  

Sorry, a question, not an answer: What are the server differences between IIS6 and II7 that matter to your code?

抱歉,问题而不是答案:IIS6和II7之间的服务器差异对您的代码有何影响?

For ASP.NET development, the web server itself is somewhat ASP.NET neutral. It forwards the request to the .NET framework, so THAT's the part that matters.

对于ASP.NET开发,Web服务器本身在某种程度上是ASP.NET中立的。它将请求转发到.NET框架,因此这是重要的部分。

More info here: http://msdn.microsoft.com/en-us/library/58wxa9w5.aspx

更多信息:http://msdn.microsoft.com/en-us/library/58wxa9w5.aspx

Adding Morgan Cheng's comment into the answer: There is some difference between IIS6 and IIS7 on how to explain web.config. For example, to customize UrlRouteHandler, according to MSDN. IIS6 and IIS7 are different. Details in http://msdn.microsoft.com/en-us/library/system.web.routing.urlroutinghandler.aspx

将Morgan Cheng的评论添加到答案中:IIS6和IIS7之间在如何解释web.config方面存在一些差异。例如,根据MSDN自定义UrlRouteHandler。 IIS6和IIS7是不同的。有关详细信息,请访问http://msdn.microsoft.com/en-us/library/system.web.routing.urlroutinghandler.aspx