IIS 7.5 deploying errors and their solutions

IIS 7.5 deploying errors and their solutions

        While deploying my web project created using VS 2010(.Net 4.0) on OS Windows 7 and IIS 7.5 I got the following errors which took some time to be resolved. I am sharing the information here so if anyone else faces the same situation, the solution is at hand.

Error-1
404.2 the page you are requesting cannot be served because of the ISAPI and CGI restriction list settings on the web server.
如下图:
 
 
 
 
 
Solution:
1. Open IIS and click the server name.
如下图:
 

 
2. Go for Featured view and double click 'ISAPI and CGI Restrictions'.
如下图:

 


3. Right click on 'ASP.NET v4.0...' and check the allow checkbox. apply >> ok.

如下图:

 

 

 

 

 

 

Error-2
This assembly is built by a runtime newer than the currently loaded runtime and cannot be loaded.

Solution:
1. Double Click on 'ApplicationPool'.
 
 

2. Right click on the proper Application Pool for your project >> Set Application Pool Defaults >>
   Set the ".NET Framework Version to 'v4.0' here" >> OK
 
 
 
 
 
 
 
 
 
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值