locked
Server Error in '/' Application. RRS feed

  • Question

  • User-1499457942 posted

    Hi

      I am getting above 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 14:   </connectionStrings>
    Line 15:   <system.web>
    Line 16:     <compilation debug="true" targetFramework="4.0" />
    Line 17:     <customErrors mode="Off"/>
    Line 18:     <httpModules>

    Thanks
    Wednesday, June 20, 2018 4:36 PM

Answers

  • User465171450 posted

    It sounds like this application is running in a 3.5/2.0 framework application pool. The error is exactly what is happening. The targetFramework attribute wasn't introduced until 4.0. Try deleting it or set the application pool to a 4.x application pool.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Wednesday, June 20, 2018 5:08 PM
  • User-1716253493 posted

    simply remove targetframework

    AFAIK, targetframework is used to target to another net version (multitargetting)

    Such as you want run the application as net 4.0 in net 4.7

    But some older net framework don't have this "targetframework" property, you can remove it

    Or run the app using newer net framework

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Thursday, June 21, 2018 1:56 AM

All replies

  • User465171450 posted

    It sounds like this application is running in a 3.5/2.0 framework application pool. The error is exactly what is happening. The targetFramework attribute wasn't introduced until 4.0. Try deleting it or set the application pool to a 4.x application pool.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Wednesday, June 20, 2018 5:08 PM
  • User-1716253493 posted

    simply remove targetframework

    AFAIK, targetframework is used to target to another net version (multitargetting)

    Such as you want run the application as net 4.0 in net 4.7

    But some older net framework don't have this "targetframework" property, you can remove it

    Or run the app using newer net framework

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Thursday, June 21, 2018 1:56 AM