错误编译debug =" false" targetFramework =" 4.0: [英] Error-compilation debug="false" targetFramework="4.0 :

查看:75
本文介绍了错误编译debug =" false" targetFramework =" 4.0:的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何解决这个错误?它为什么会来?

how to solved this error? and why it come ?

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:





编译debug =falsetargetFramework =4.0:



compilation debug="false" targetFramework="4.0 :

推荐答案

您可能尚未在IIS中配置AppPool使用.NET 4.



您需要配置IIS AppPool以使用4.0框架,如果应用程序池仍然以2.0为目标,您将收到此错误。
You probably haven't configured your AppPool in IIS to use .NET 4.

You need to configure your IIS AppPool to use the 4.0 framework, you will get this error if the app pool is still targeted at 2.0.


配置IIS以使用框架4.0
Configure your IIS to use framework 4.0


这篇关于错误编译debug =" false" targetFramework =" 4.0:的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆