Configuration Error:

Donald Symmons 3,066 Reputation points
2022-05-31T13:47:00.343+00:00

I tried to open my website but got this error

Server Error in '/' Application.
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:

An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine.

Source File: G:\PleskVhosts\quirver.com\httpdocs\web.config Line: 25

Version Information: Microsoft .NET Framework Version:2.0.50727.9054; ASP.NET Version:2.0.50727.9051

Here is the line:

    <compilation debug="true" targetFramework="4.5.2" />
Developer technologies | ASP.NET | Other
{count} votes

Accepted answer
  1. Bruce (SqlWork.com) 77,686 Reputation points Volunteer Moderator
    2022-05-31T17:12:54.947+00:00

    the error is pretty clear. your site is using Microsoft .NET Framework Version 2.0, and are using version 4 syntax.

    as suggested you need to upgrade the site to version 4.0 (4.0+ is an updated in place and does not change the version).

    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.