IIS配置技巧

一、运行aspx页面,显示错误

Server Application Unavailable

The web application you are attempting to access on this web server is currently unavailable. Please hit the "Refresh" button in your web browser to retry your request.

Administrator Note: An error message detailing the cause of this specific request failure can be found in the application event log of the web server. Please review this log entry to discover what caused this error to occur.

 

原因:在安装IIS前,安装了Net

解决方法:

开始 >> 运行 >> CMD >> CD C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\ >> aspnet_regiis.exe -i

>> CD C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\ >> aspnet_regiis.exe -i

“setup has detected some errors during the operation. for details, please read the setup log file aspnetsetup_00008.log”

 

二、Iis上某种类型文件无法下载的问题

1.在IIS服务器属性里的MIME类型,添加.exe(举例说明)   类型   application/octet-stream 

2.将网站属性里的执行权限设置为纯脚本

 

三、错误:无法下载Silverlight应用程序。请查看Web服务器设置

解决办法:

在IIS的HTTP头中,添加MIME类型:
.xaml application/xaml+xml
.xap application/x-silverlight-app

  

    如仍有问题,请检查IE的配置,放开安全里面的Xaml Active 下载等选项

 

四、127.0.0.1无法访问iis上配置的默认站点,但localhost可以

1、C:\WINDOWS\system32\drivers\etc中添加

127.0.0.1 localhost

2、ie的安全设置中,把127.0.0.1设置为信任

转载于:https://www.cnblogs.com/smallidea/archive/2012/07/02/2573221.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值