Configuration Error related to targetFramework in web.config

I have made a MVC website in Visual Studio 2015 and it works in my localhost. But when i published my website and put into my host, it doesn't work. It gives me this error notice:

Server Error in '/' Application.

Configuration Error

Parser Error Message: The 'targetFramework' attribute in the
element of the Web.config file is used only to target
version 4.0 and later of the .NET Framework (for example,
''). The 'targetFramework'
attribute currently references a version that is later than the
installed version of the .NET Framework. Specify a valid target
version of the .NET Framework, or install the required version of the
.NET Framework.

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.