Unable to create a web project "WebApplication1

zhaozj2021-02-16  102

1. Launch The Internet Information Services MMC.

2. Right Click ON Your Web Site and Click Properties.

3. In the 'http headers' Tab Click' Mime Types' 'Button.

4. Add a new mime type by clicking 'new ...' button.

5. In The 'Extension' Edit Control Type (without the quotes) '.tmp'.

6. In The 'Mime Type' Edit Control Type (WITHOUT THE Quotes 'Temp'.

Or Run The Following Command At Command Prompt:

% SystemDrive% / INETPUB / Adminscripts / Adsutil.vbs Set W3SVC / 1 / ROOT / MIMEMAP .TMP, TEMP

The Above Command Changes The Mime Type for The Default Web Site. For Information On Changing The Mime Types of Non-Default Web Sites Section Refer to "References" section.

The Above Stes Will Allow .tmp Files To Be Served Up By Iis. ON A Development Machine WHERE Web Project Are Created this is usually not a security concept.

However if you have .tmp Which Contain Sensitive Data Which you do not want exposed, you will have to reverse the Above 6 steps.

If the mime entry for .tmp file is deleted after creating the project you will receive a http 404 error when you try to reopen the project. So you will haveadd .tmp mime type before you open the project and remove it after opening the project.

转载请注明原文地址:https://www.9cbs.com/read-11200.html

New Post(0)