About IIS Express

Source: Internet
Author: User
Tags windows support visual studio 2010
Document directory
  • Existing solutions
  • Summary

[Original address] introducing IIS Express

[Original article published on June 28,201 pm

 

Currently, programmers can only develop and test ASP. NET Website programs through one of the following two Web servers:

1. asp.netdevelopment server (webdev.exe) with visual studio ).

2. Windows built-in IIS Web server.

The above two solutions have their own advantages and disadvantages, and many ASP. net programmers told us: "I want to have a file like ASP. net Development Server is as easy to use, but its functions are as powerful as those of IIS ". Today, I am happy to announce that we will provide another new, free, integrated with the advantages of the first two solutions-IIS Express, which enables the development and operation of ASP.. Net website programs become easier.

IIS express supports vs 2010 and Visual Web develop 2010 Express, which can run on Windows XP and later versions. It can run without administrator permissions and requires no code changes. You can use it to develop all types of ASP. NET programs, and it also supports the complete IIS 7.x feature set.

Existing solutions

Before introducing IIS express in detail, let's take a look at the working methods of ASP. NET development server [I] and IIS.

ASP. NET development server

The advantage of the ASP. NET development server (the development code "Cassini") that comes with Visual Studio is that it is concise and easy to start quickly. It does not need to listen for remote connection requests (so it can be used in most enterprise security network environments), you do not even need to use the Administrator account to start it, in addition, it does not require additional installation steps.

It is precisely because of its great advantages in enabling convenience that it becomes the default server of the ASP. NET project. It will be started when you press F5 in Visual Studio.

However, ASP. NET development server does not provide complete Web server functions. For example, it does not support SSL, URL rewriting rules (for example, Seo URL rewriting rules I mentioned in this blog), custom security settings, and other functions supported in IIS 7.

IIS Web Server

Use Visual Studio to run and test the program, and select IIS. You can right-click the WEB Project in Visual Studio and open its properties (click the "Web" tab in the Properties window) to configure the web project to use IIS.

Using IIS as your development server allows you to test the functions (SSL, URL rewrite rules, etc.) of the complete Web server ). IIS is a genuine web server-this means that it is similar to deploying a development environment on the job server.

However, the disadvantage of using IIS is that some companies are not allowed to install a complete Web server on the development machine. IIS also requires the Administrator account to install and debug the website. Different versions of Windows support different versions of IIS. For example, on Windows XP, you can only use built-in IIS 5.1-all new features of IIS 7.x are not supported. In addition, some additional installation and configuration steps are required to configure the website project to use IIS In.

IIS express-"fish" and "bear's paw"

We are adding a fresh flavor optimized for the development scenario for IIS 7.x, that is, "IIS Express ". I think it combines the ease-of-use advantages of ASP. NET development server and the powerful functions of IIS. Specifically:

  • It is concise and easy to install (the file size is less than 10 MB and the installation speed is quite fast ).
  • In Visual StudioNoThe administrator can start and debug the program.
  • ProvidedComplete Web Server Functions-Includes SSL, URL rewriting, multimedia support, and all other IIS 7.x modules.
  • Its extensible model and web. config configuration structure are the same as those of IIS 7.x.
  • It can run on the same machine as the IIS web server and the ASP. NET development server simultaneously (they will not conflict with each other ).
  • It supports Windows XP and later operating systems-provides a complete set of IIS functions on all operating system platforms.

IIS Express (like ASP. NET development server) can quickly start website programs from a folder on the hard disk. ItNoAny registration or configuration steps. During website development, this feature makes it quite convenient to start and run websites.

Integration with vs 2010

We are working to make IIS express easier to use in Visual Studio 2010. You can configure vs 2010 to replace the ASP. NET development server as the default Web server of the ASP. NET project. Like the current ASP. NET development server, you do not need to register a site or virtual directory in IIS Express. It supports the same usage as the ASP. NET development server-only adding more features.

When you press F5 to run the ASP. NET project, Visual Studio automatically starts IIS express and uses it to run and debug website programs (no additional configuration is required ). Like ASP. NET development server, When IIS Express is running, a small icon is displayed in the notification area of the taskbar:

Right-click the icon above and select "exit" to quickly disable IIS Express. You can also right-click to list the running sites, the folder paths of the sites, and the. NET version used:

[Note: IIS Express is still in beta stage and has no Chinese version yet. Therefore, paste the original English image]

Note the following two cool points:

1. The running site "test site" and IIS express itself are saved in the hard drive's c: \ Users \ [user name] folder. This allows non-administrator users to use IIS express and websites, it also supports scenarios where current IIS servers cannot be implemented (for example, IIS Express can be run on a restricted enterprise network environment or a restricted school public computer ).

2. The running site "test site" also supportsHTTPAndHTTPS. IIS express supports URL Access Control List (url acl) and SSL authentication by automatically installing the "self-signed certificate", so that programmers (log on to the computer as non-administrator users) you can use SSL without increasing user permissions or performing additional settings. This feature allows you to set pages (such as logon pages) to be protected for SSL in your program, and run and test these pages as in a real Web server during development.

IIS 7.x feature set

IIS Express is as easy to start and use as ASP. NET development services that you are already familiar. However, because IIS Express is based on the same code as IIS 7X, you can use a complete set of web server functions. This means that you can create and run your program on a real job web server. In addition to SSL, you can also use the URL rewriting module of IIS 7.x, multimedia plug-ins, dynamic content compression, advanced log functions, custom security policies, and other rich modules.

In addition to ASP. NET, IIS express also supports traditional ASP and other file types supported by IIS-which makes it an ideal platform for integrating multiple technologies.

Summary

We believe that IIS express makes it easier to develop, run, and test web programs. It supports all versions of ASP. NET and all application types (including ASP. NET web form programs and ASP. net mvc programs ). The best thing is-youNo code changes requiredTo use it. You can select it from all existing projects.

We will immediately release the beta version of IIS Express. In beta, you should be able to right-click a folder and start the website program from this folder by IIS Express. Later this year, we will release a patch for vs 2010 and Visual Web Developer 2010 Express, which will replace the built-in ASP. NET development server with IIS Express. Later versions of Visual Studio will have built-in IIS Express.

I hope this will help you.

Scott

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.