locked
Web.config RRS feed

  • Question

  • User2033323258 posted

    kindly help for this issue ,the webSite working at Local, but when I go to live I find this error

    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 10:         validate="false" />
    Line 11:     </httpHandlers>
    Line 12: <compilation debug="true" targetFramework="4.0"> Line 13:       <buildProviders>
    Line 14:         <add extension=".rdlc" type="Microsoft.Reporting.RdlBuildProvider, Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
    Thursday, May 16, 2013 6:53 PM

Answers

  • User281315223 posted

    You should be able to check the version of IIS that your Application is running in through the following steps within IIS : 

    • Open the IIS Manager (available through Administrator Tools -> IIS Manager)
    • Select your Web site on the left (under Connections)
    • You should be able to select the Properties option
    • Under Properties, look for the ASP.NET Version

    Based on your web.config, it looks like you should be targeting .NET 4.0 (and the properties within IIS should reflect this). If you don't see .NET 4 as an option, you will likely need to install it on your server.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Thursday, May 16, 2013 8:31 PM

All replies

  • User-1716253493 posted
    i think becouse you use net 2 application pool
    Thursday, May 16, 2013 7:15 PM
  • User2033323258 posted

    Many search but did not find the solution .

    please help

    Thursday, May 16, 2013 7:28 PM
  • User2033323258 posted

    I think the problem in the IIS .But I do not know how to change it

    Thursday, May 16, 2013 7:34 PM
  • User-1716253493 posted

    I think the problem in the IIS .But I do not know how to change it

    What net version your project?

    Make sure in IIS, the site or virdir is configured as an application with appropriate net version.

    Thursday, May 16, 2013 8:25 PM
  • User281315223 posted

    You should be able to check the version of IIS that your Application is running in through the following steps within IIS : 

    • Open the IIS Manager (available through Administrator Tools -> IIS Manager)
    • Select your Web site on the left (under Connections)
    • You should be able to select the Properties option
    • Under Properties, look for the ASP.NET Version

    Based on your web.config, it looks like you should be targeting .NET 4.0 (and the properties within IIS should reflect this). If you don't see .NET 4 as an option, you will likely need to install it on your server.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Thursday, May 16, 2013 8:31 PM
  • User-993404089 posted

    Is this a hosted site somewhere or do you have actual access to IIS?

    Thursday, May 16, 2013 10:11 PM
  • User311508580 posted

    Hi Omar,

    Based on the error message, you need to change your asp.net version to asp.net 4 version and I believe the issue willl be solved. Please kindly check it.

     

    Thursday, May 16, 2013 11:09 PM
  • User-939894234 posted

    I got same problem for this we change the webserver Asp.Net version now my site is working fine.

    Your webserver is not support this current frame work version..

    first change the webserver version by adding Asp.net advance versions you can recover from this problem. 

    Friday, May 17, 2013 12:27 AM
  • User2033323258 posted

    thanks a lot

     

    Done

    Saturday, May 25, 2013 10:59 AM