简体   繁体   English

ASP.NET Development Server模拟IIS6或IIS7?

[英]ASP.NET Development Server simulates IIS6 or IIS7?

In visual studio 2008, when we press Ctrl+F5, the ASP.NET Development Server is launched to simulate a Web Server. 在visual studio 2008中,当我们按Ctrl + F5时,将启动ASP.NET Development Server来模拟Web服务器。 I'm wondering what server does it simulate? 我想知道它模拟的服务器是什么? IIS6 or IIS7? IIS6还是IIS7? Is it possible to customize what server it simulate? 是否可以自定义它模拟的服务器?

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 . 我不认为它“模拟”,tbh,它只是一个用于本地开发的Web服务器,其中IIS不是一个选项,基于Cassini More information here . 更多信息在这里

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. 它不像这样模拟服务器,它在基于cassini的服务器上运行,该服务器用.net编写并且具有可用的源代码。 I suppose it's more similar to IIS6 in that it does not support the IIS7 integrated pipeline feature. 我认为它与IIS6更相似,因为它不支持IIS7集成管道功能。 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). 您可以随时选择让VS使用II6或IIS7(如果已安装)(取决于您的DEV PC上是否有XP或Vista)。

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. 对于ASP.NET开发,Web服务器本身在某种程度上是ASP.NET中立的。 It forwards the request to the .NET framework, so THAT's the part that matters. 它将请求转发到.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. 将Morgan Cheng的评论添加到答案中:IIS6和IIS7之间在如何解释web.config方面存在一些差异。 For example, to customize UrlRouteHandler, according to MSDN. 例如,根据MSDN自定义UrlRouteHandler。 IIS6 and IIS7 are different. IIS6和IIS7是不同的。 Details in http://msdn.microsoft.com/en-us/library/system.web.routing.urlroutinghandler.aspx 有关详细信息,请访问http://msdn.microsoft.com/en-us/library/system.web.routing.urlroutinghandler.aspx

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

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