Unrecognized attribute ‘targetFramework’

The error : <compilation debug=”true” targetFramework=”4.0″>
<assemblies>
</assemblies>
</compilation>

Cause : If your application run on the lower version of the .net and you had mention this line <compilation debug=”true” targetFramework=”4.0″> the you have face the error.

Solution :
If your web application or website is hosted at the dedicated or VPS then please check the version or you can install the newer
version frame work for .net.

If you are using the shared server then please follow the below steps.
For Website Panel :
==>Login to the control panel
==>Click on the particular domain Website option.
==>Under that please click on the the particular domain or subdomain under which you are facing the error
==>Under that you will see the menu start from home
==>Click on Extensions menu button link
==>and in the drop down menu you can see version of the .net
select the version as you had define in the web.config file

and lastly do not forget to click on the update button which install and save your setting for your domain.

For Plesk Panel :
==>Login to the control panel
==>Click on the particular domain if you have more then one domains
==>Click on the ASP.net Settings under section Additional Tools
==>Check the Framework Version and you can change the version as per your application.
==>Click on the change version and select appropriate version. and click on ok button
==>it has save your settings.

About the Author

avatar