简体   繁体   English

哪个用? Visual Studio开发服务器或本地IIS Web服务器?

[英]Which to use? Visual Studio Development Server or Local IIS Web server?

I've always wondered about this ... and thankfully, now have a good environment of experts to ask this question. 我一直想知道这一点......谢天谢地,现在有一个很好的专家环境来问这个问题。

When creating a web application project which web server is the most expedient to use? 创建Web应用程序项目时哪个Web服务器最方便使用?

This is a duplicate question ... ASP.NET Development Server or Localhost IIS? 这是一个重复的问题... ASP.NET开发服务器或Localhost IIS? ... my bad! ... 我的错!

Read this: ASP.NET Development Server or Localhost IIS? 阅读: ASP.NET Development Server或Localhost IIS?

My question aimed more at general use than Web Apps specifically though.. 我的问题更多地针对一般用途而不是Web应用程序。

从ASP.NET 4.5和Visual Studio 2012开始, 马口的推荐服务器是IIS Express。

The VS development server is certainly less fuss. VS开发服务器当然不那么大惊小怪了。 It makes developing multiple websites alot easier to manage. 它使开发多个网站更容易管理。 If you do not have a dedicated test environment running IIS I would certainly opt to run IIS locally though. 如果您没有运行IIS的专用测试环境,我肯定会选择在本地运行IIS。

I'd use both. 我会同时使用它们。

Use the VS built-in server for the first level testing on a day-to-day basis, and then a test IIS server for the next level up testing. 使用VS内置服务器进行日常的第一级测试,然后使用测试IIS服务器进行下一级测试。 For minute-by-minute changes to your code, you can't beat the VS built in server for convenience. 对于代码的每分钟更改,为方便起见,您无法击败VS内置服务器。

I used to use a dedicated test IIS server for ALL testing, and it slowed my down and didn't give enough benefit; 我曾经使用专用的测试IIS服务器进行所有测试,它减慢了我的速度并且没有给出足够的好处; it still worthwhile though to test your deployment on a full blown IIS server before going live. 虽然在上线之前在一个完整的IIS服务器上测试你的部署仍然是值得的。

I think Visual Studio Development server is build to test and run your application to see how they will work.. 我认为构建Visual Studio开发服务器是为了测试和运行你的应用程序,看它们是如何工作的。

on the other hand IIS is the real deal ... it is the webserver that your application will run with.. 另一方面,IIS是真正的交易...它是你的应用程序将运行的网络服务器..

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

相关问题 在IIS服务器上部署Visual Studio Web API - Deployment of Visual Studio Web API on IIS server 无法启动配置的Visual Studio开发Web服务器 - Unable to launch the configured Visual Studio development web server 如何在Visual Studio Development Server Web服务器中启用PUT和其他HTTP方法? - How to enable PUT and other HTTP methods in the Visual Studio Development Server web server? Web应用程序在VS Development Server中工作但在IIS中不起作用 - Web Application working in VS Development Server but don't work in IIS 禁用Visual Studio开发服务器-每个项目有什么方法吗? - Disabling Visual Studio Development Server - Any way to do this per project? SMTP在Visual Studio中有效,但在上传到生产IIS服务器时不起作用 - SMTP works in Visual Studio but not when uploading to production IIS Server 安装 .NET 包以用于 IIS Web 服务器 (Windows Server 2019) - Installing .NET packages for use in IIS web server (Windows Server 2019) IIS是Web服务器还是应用程序服务器? - Is IIS a web server or an application server? 用于在Windows 7上进行开发的本地LDAP服务器 - local LDAP server for development on windows 7 使用本地IIS / Visual Studio调试FaceBook Connect - Debugging FaceBook Connect with Local IIS / Visual Studio
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM