托管时配置错误

时间:2014-02-28 13:23:56

标签: asp.net hosting

我正在使用托管服务发布我的网站,当我点击我网站的网址时出现以下错误:

 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 30:       <add path="ChartImg.axd" verb="GET,HEAD,POST" type="System.Web.UI.DataVisualization.Charting.ChartHttpHandler, System.Web.DataVisualization, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" validate="false" />
Line 31:     </httpHandlers>
Line 32:     <compilation debug="false" targetFramework="4.5">
Line 33:       <assemblies>
Line 34:         <add assembly="System.Web.DataVisualization, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />

任何想法如何解决这个问题?感谢

1 个答案:

答案 0 :(得分:0)

请确保您的托管服务提供商支持.net 4.5。请与您的托管服务提供商核实。问题来自.net版本