Iis_ various problems

Source: Internet
Author: User

The default in IIS7 is that script map processing has been loaded. But today, a WIN7, installed IIS, but found no. Then manually go to the installation, when adding HTML mapping prompts: The module list must have Isapimodule or Cgimodule

Because IIS 7 employs a more secure Web. config management mechanism, the configuration items are locked by default and do not allow changes. Run the command line%windir%\system32\inetsrv\appcmd unlock config-section:system.webserver/handlers.

The handlers is the name of the node in the error message that is displayed in red characters.

If modules is also locked, you can run%windir%\system32\inetsrv\appcmd unlock config-section:system.webserver/modules

Note: Cmd.exe to start as an administrator, find Cmd.exe under C:\Windows\System32, right-click Administrator to start, enter the above command.

Google has not found the reason for half a day. The answer was found later. Method is simple, open or close Windows features (these steps can be simplified to win+r run optionalfeatures), Internet Information Services--World Wide Web services--in the control Panel, programs and features Hair function, put all of the following on the hook! Reboot, Success!

Issue two: The page you requested cannot be provided because of the ISAPI and CGI Restrictions list settings on the WEB server.
IIS root node (first node), right "ISAPI and CGI restrictions", set the Forbidden Dotnet version entry to allow.

The Web. config must be IIS7 under the following paragraph:

==========================================









HTTP error 404.0-not FoundThe resource you are looking for has been deleted, renamed, or temporarily unavailable.

ASP. NET config pseudo-static rules

First step: Download the Urlrewriter component from any of the following addresses:

1:http://download.csdn.net/source/524514

The same project, another site (the same physical path), results in the next 404.0 error, the original is Vista under application pool default 32 application properties impact, reference, set to True


2:http://www.nmju.net/userfiles/urlrewriter.rar
3:http://download.microsoft.com/download/0/4/6/0463611e-a3f9-490d-a08c-877a83b797cf/msdnurlrewriting.msi

Step Two: Add a reference to the Urlrewriter assembly in your Web site project.

Step Three: Configure the Webconfig file:

1. Join with the node header as follows:

2. Join in with:



3. Join in and between


4. Configure pseudo-static syntax: joins a node between and. To add a pseudo-static rule between and:

 

      
         ~/xxxx/view (. [ /d]*)/.html
        ~/xxxx/view.aspx?id=$1
     




~/yyyy/(. [ /d]*)/view.html
~/yyyy/view.aspx?id=$1

Fourth: Configuration of IIS7.5 or IIS7.0

1. Create a new application pool: Name: Any such as: webapp; Select the NET Framework version (if your site is 2.0 then choose 2.0, Mine is 4.0) Here I choose Net Framwork v 4.030319. Managed pipeline mode is first temporarily set to Integrated mode. When the following settings are complete, set the managed pipeline mode to Classic mode. If the following settings do not set the application to Classic mode, pseudo-static functionality can be implemented, but the page style picture does not display properly this is the key to the setting.

2. Create a new Web site website to set the application program pool for this site to WebApp.

3, check your site such as website, and switch to the function view. Double-click handler mappings to do the following in the action section on the right side of the open window.

3.1, "Add script Map"-Path is: *.html. The executable file is: C:/windows/microsoft.net/framework/v4.0.30319/aspnet_isapi.dll Note: If your site is 2.0. The executable file is: C:/windows/microsoft.net/framework/v2.0.50727/aspnet_isapi.dll. Name: arbitrary, for example: HTML.
3.2. The "Add wildcard script Mapping" request path is *. The executable file is exactly the same as 3.1, with the name arbitrary, for example: all.

3.3. "Managed handler Mapping" (Path: * executable file: System.Web.UI.PageHandlerFactory name arbitrary such as Html-integrate)

3.4. Double-click the website site to switch to the site features view. Then double-click the module, open the window, and then, under the Action section on the right, click Add Managed Module-Name: Any type: Urlrewriter.modulerewriter and make a request call to an ASP. NET application or managed handler The previous option is ticked. (Remember to make sure to tick).

3.5. Last step: Double-click the application pool for iis7.0 or 7.5. Locate the "WebApp" application pool in the application pool list. Double-click after opening. Set the managed pipeline mode for the WebApp application pool to Classic mode.

It is noteworthy that in the third part of the 2, 3 points can be selected according to the needs of the program design, in some uncertain circumstances, may cause the application to appear abnormal.

Of course, there are simpler ways to configure iis7.0 and iis7.5. Install the official Microsoft URL package to the server, import the configuration rules file on the server,

Maxmatchcount 10

Rewriterule ^news/([0-9]+)/.html$ news/xx.aspx?id=$1 #注释

。。。。。

。。。。

notparsed Foo Bar

The file name suffix is. htaccess, the site is paused, click Urlwriter, Import Rules application can, of course, in the development process, in order to facilitate testing, it is best to combine the two methods, Then rewrite the relevant urlwriter in Web. config to comment or delete the configuration item!

1, because the first installed. When IIS is installed after netframework, 4.0 of related handlers are not registered to the IIS Server Software.
Workaround: Find cmd in the Start menu, cd\ command to the physical path of aspnet_regiis.exe, enter Aspnet_regiis-i manual registration to resolve

Aspnet_regiis.exe physical path in: (with 32-bit system and 64-bit system points)
C:\Windows\Microsoft.NET\Framework\v4.0.30319\aspnet_regiis.exe

Iis_ various problems

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.