ShapDevelop遇到問題

一、新建一個RazorMVC3工程後右擊在網絡中選擇使用本地IIS服務器後運行,系統跳出如下提示:

Configuration Error

Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.

Parser Error Message: Unrecognized attribute 'targetFramework'. Note that attribute names are case-sensitive.

Source Error:

Line 1:  <configuration>
Line 2:  	<system.web>
Line 3:  		<compilation debug="true" targetFramework="4.0">
Line 4:  			<assemblies>
Line 5:  				<add assembly="System.Web.Mvc, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
如何解決此問題?

答:右键点击你的IIS中发布的网站的虚拟目录名称,然后点属性,弹出的对话框中选择最后一个选项卡“ASP.NET” 里面有个ASP.NET版本,在ASP.NET版本中選擇4.0.30319單擊確定即可,如果只有一个2.0那就是你没有装.NET 4.0,去网上找一个4.0装一下,然后这里选择4.0就OK了。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值