2014-02-28 84 views
0

我使用託管服務來發布我的網站,當我點擊我的網站的網址下面的錯誤出現:配置錯誤當主機

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" /> 

任何想法如何解決這個問題?謝謝

+0

看看[這個答案](http://stackoverflow.com/questions/7530725/unrecognized-attribute-targetframework-note-that-attribute-names-are-case-sen)並看看它是否有幫助。 –

回答

0

請確保您的託管服務提供商支持.net 4.5。請檢查您的託管服務提供商。問題來自.net版本