[Reserved] IIS Express 7.5 configuration and use

IIS Express7.5
    Microsoft's Scott Guthrie announced the IIS Express: IIS is a lightweight alternative that could substitute Cassini (Visual Studio's built-in Web server).
    To Visual Studio 2010 after you install a patch can use IIS Express 2010 Express in Visual Studio 2010 and Visual Web Developer, after the release of Visual Studio will comes with IIS Express.

    With the ASP.net MVC 3 new things come, which contains IIS Express 7.5, described as follows:
    lightweight, easy to install, the installation package is less than 5M;
    start from VS in debug application does not need an administrator;
    with a complete WEB server functionality support - support SSL, URL and other write-back IIS7.x modules
    and IIS7.x exactly the same web.config configuration model
    can and IIS, ASP.net Development server install, there is no conflict
    support XP and later operating systems, on all systems provide a consistent development function IIS7.x

Configuration:
1, the installation iisexpress_1_10_x86_zh-CN.msi

2, the configuration file c: Program FilesIIS ExpressconfigtemplatesPersonalWebServerapplicationhost.config

Under the node default configuration file we do not need much attention, because only the <site> node under the <sites> we need to focus most cases, save where the definition of websites, applications, and what we need really care about.
 
①. Each <site> is a website.
 
This Web site in IIS is the same concept. serverAutoStart sets whether With IIS Express start automatically start. If set to true, then every time IIS Express will start automatically load (if not specified, then the site), otherwise will only load and run to specify a particular site mode.
 
Use IIS Express to load a particular Web site syntax is: IISExpress.exe / site: <site name>
 
. ② <Bindings> <Site> binding information provided under this site.
 
<Binding> is a port binding information in each node. Typical bindings configuration is as follows: <= the Binding Protocol "HTTP" bindingInformation = "*: 8080: localhost" />
 
Protocol specifies the protocol type binding (IIS Express built-in HTTP and HTTPS protocol support), while " *: 8080: localhost "specific binding information is specified, it has three parts:" bound IP: port: host name. " By default, bound to any local IP, non-reserved port, bound to localhost. Note that this localhost, pay attention to, under certain circumstances may cause you to very confused, please refer to later in this article.
 
③. <Application> This section sets the application site
 
Each site will require at least one mapped path to "/" application (which is mapped to the root directory). In addition, you can continue to add parallel <application> different paths, which is similar to an application in IIS Web site in the configuration.
 
For example, in FishSite this site, I need to add a separate application that is mapped to the fish directory in the root directory, then I can be configured:
 <Site name = "FishSite" the above mentioned id = "2">
     <the Application path = "/" applicationPool = "Clr2IntegratedAppPool">
         <virtualDirectory path = "/" physicalPath = "<root directory of the site>" />
   </ the Application>
     <the Application path = "/ FISH" applicationPool = "Clr2IntegratedAppPool">
         <virtualDirectory path = "/" physicalPath = "<the root directory of this application>" />
         <virtualDirectory path = "/ Content /" physicalPath = "</ FISH / Content / virtual directory corresponding to the directory>" />
     <



 </ site>
 
in <site>, only the path = "/" This application is required (not missing), the other can all be optionally added.
 
④. <VirtualDirectory> set mapping information directories
 
see the code presented above. In each of the <application> section, there must be at least one path = "/" the virtualDirectory, which represents the location of this directory mapping. In addition, you can add more different paths mapped virtual directory manually.
 


3. After modifying the configuration files, start IIS Express
start c: Program FilesIIS Expressiisexpress.exe

4, enter in the browser http: // localhost: 8080 to access the website

 

Supplementary (2013-01-21)

MVC4 not supported Crystal Reports, page can not be displayed. Perhaps the experts can solve

I debugging for a long time, and finally vomiting blood, go to debug IIS, only to find

 

 

Reproduced in: https: //my.oschina.net/garyun/blog/602744

Guess you like

Origin blog.csdn.net/weixin_33943347/article/details/91774674