无法创建Web项目"WebApplication1

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 please refer to "REFERENCES" section.

The above steps 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 concern.

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.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值