Problems encountered in configuring the asp.net IIS server and detailed legend Solutions

Source: Internet
Author: User

I used to configure the IIS service, but I didn't put my program on the IIS server. Today, I am wondering how the program I wrote can be run on the server, I have encountered many difficulties. Today I want to talk about the process and problems with my children and hope to help you.

The process of configuring asp.net's IIS server is not described here, if you want to know, ask a friend to download to the http://download.csdn.net/detail/heikeyuit/5591335

 

Question 1: IIS7 error: "The Web server is configured to not list the contents of this directory"

Solution:

      

 

      

 

 

Question 2:Unrecognized property "targetFramework ". Note that the attribute names are case sensitive.

Solution:

Modify the. NET Framework version to the corresponding version. This error occurs when I used to change from 2.0 to 4.0.

My win7 system,

1. Open IIs and click the IIS root node.

      

2. Check "operations" on the right and click "change. NET Framework Version"

      

3. Select the corresponding version. Here I should select v4.0.30319 and click OK.

      

 

4. Click the IIS application pool.

      

 

5. In the "operations" column on the right, select "application default settings ..."

      

 

6. Set ". NET Framework Version" to v4.0 and click "OK.

      

 

1,Right-click a website and choose edit permission from the shortcut menu. Choose "security"> "edit"> "add"> enter "Everyone" in the input object name to change its permissions, set "modify" to "allow ".

 

These problems are almost the same. It has been disturbing me for several days. Today I really didn't expect the configuration to be successful, so I was a little excited.

 

 

Question 4: "processing program" PageHandlerFactory-Integrated "has an error module" ManagedPipelineHandler "in its module list ""

 

 Web project development tools and systems I want to release

① Development tools: vs2010, database: sqlserver

② Operating System: Windows 7

③ IIS: IIS 7.5

 

 

I. Error details:

Ii. Error Analysis:

By default, vs2010 uses. NET 4.0 framework, 4.0 framework is independent CLR, and.. NET 2.0, if you want to run. NET 4.0 framework website, need to use aspnet_regiis registration. NET 4.0 framework, and then use. NET 4.0 framework class pool, you can run. NET 4.0 framework web project.

The cause of the above error is most likely because iis 7.5 is installed after. NetFramework v4.0 is installed first.

 

3. How to Use aspnet_regiis to register the 4.0 framework?

The method is as follows:

① Find. NET 4.0 framework aspnet_regiis directory, search for aspnet_regiis in the C drive root directory, find the directory location of aspnet_regiis in the 4.0 framework, my local directory is "C: \ Windows \ Microsoft. NET \ Framework \ v4.0.30319 ".



② Run the doscommand line as an administrator,

Run "Start → all programs → attachments → command prompt (right-click and select 'run as Administrator (A) ')". The "Administrator: Command Prompt" window is displayed.

 

③ Run the "cd C: \ Windows \ Microsoft. NET \ Framework \ v4.0.30319" command to go to the "C: \ Windows \ Microsoft. NET \ Framework \ v4.0.30319" directory,

 

Run the "aspnet_regiis.exe-I" command to register "aspnet_regiis". Wait a moment and the aspnet_regiis is successfully registered.

When you see the interface shown in the figure, you can run the website deployed in. net4.0 in IIS!

 

At this point, I hope to help people who encounter the same problem. This is even more of a growing experience! We look forward to hearing from you!

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.