Use IIS express to replace ASP. NET development server

Source: Internet
Author: User
Tags visual studio 2010
ArticleDirectory
    • Download and install IIS Express
    • Enable IIS express for existing projects
    • Attributes of IIS Express
    • SSL self-signed certificate
    • Use IIS express as your default Web Server

Original article address: VS 2010 SP1 (Beta) and IIS Express

 

IIS Express is a free version optimized by iis7.5 for developers. It is easy to use and as powerful as IIS.

    • Installation files smaller than 5 MB are lightweight and easy to install.
    • The Administrator account is not required for debugging or running in Visual Studio.
    • Supports full web server features, including SSL, URL rewriting, and other iis7 modules
    • Supports and allows settings supported by the extension module and web. config in iis7.x.
    • It can be installed and used together with ASP. NET development server without affecting each other.
    • Supports Windows XP or later versions and provides full-featured features of IIS 7.x.

IIS Express can be started directly from the disk without the registry or configuration steps, so it is very convenient to use.

Added support for IIS express in Visual Studio 2010 SP1.

Download and install IIS Express

IIS Express is not included in vs2010 SP1. It needs to be downloaded and installed separately, which is about 4 MB. Use this link to download and install it using webpi.

Once IIS Express is installed, vs2010 SP1 will enable some additional IIS express commands and dialogs for your convenience.

Enable IIS express for existing projects

Visual Studio's current web project uses the built-in ASP. NET development server by default, also known as Cassini.

 

It is very easy to convert an existing project to use IIS Express. Open the Properties dialog box of the project, click the Web pane, and select the "user IIS Express" check box in the pane.

To simplify the process, right-click the project and choose "use IIS Express..." from the shortcut menu.

Later, when you run or debug the project, you will see that IIS Express is started and runs automatically.

In the context menu of IIS Express, you can browse the applications and websites running on IIS Express.

Note: If you want to return to ASP. NET development server, you can right-click the project and select "Use Visual Studio development server" from the menu, or in the Properties window of the project, cancel the IIS express check box in the Web pane. It will take effect next time.

Attributes of IIS Express

Visual Studio 2010 SP1 provides some new IIS express configuration options, which are not available in ASP. NET deveopment server. Some are provided through project properties.

For example, to enable SSL-like support, which is not available in ASP. NET development server, you can simply change the SSL Enabled attribute to true.

Once the configuration is complete, IIS Express provides both HTTP and HTTPS endpoints for this project.

SSL self-signed certificate

IIS Express provides a self-signed certificate that is directly installed during installation, so that you do not need to provide your own certificate during development. Once you change the drop-down list above to enable SSL, You Can Use https: // URL/to connect through SSL.

For browsers, for example, ie will give a warning that your certificate is not trusted.

You can mark this certificate as a trusted certificate to ignore it, or simply keep the certificate untrusted and click Continue.

Additional IIS settings

IIS express uses its own applicationhost. config file for each user to configure the default server behavior. Because it is for each user, developers can configure it without the Administrator identity. You can customize all IIS features and settings.

However, we strongly recommend that you add all the configuration information to the Web. config file as part of the project, so that the release will become easier.

Use IIS express as your default Web Server

You can configure Visual Studio to use IIS express as the default web server. In the tools-> Options menu, open the projects and solutions node, selecting 'use IIS express for new file-based Web site and projects' in web projects will enable Visual Studio to use IIS express for newly created websites and projects.

Original article address: VS 2010 SP1 (Beta) and IIS Express

 

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.