Last post May 27, 2013 04:57 PM by jats_ptl
May 26, 2013 09:55 PM|jats_ptl|LINK
I have a Web APplication developed in ASP.Net MVC 3 and is working absolutely fine on local machine.
Now the problem comes when I have uploaded the site to hosting site.
After hosting and while trying to access the site it gives following error.
Server Error in '/' Application.
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.
Line 12: </appSettings>
Line 13: <system.web>
Line 14: <compilation targetFramework="4.0">
Line 15: <assemblies>
Line 16: <add assembly="System.Web.Abstractions, Version=126.96.36.199, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
Source File: D:\vhosts\cadratech.co.nz\httpdocs\web.config Line: 14
Version Information: Microsoft .NET Framework Version:2.0.50727.4234; ASP.NET Version:2.0.50727.4223
Please any solutions to clear these issues.
May 26, 2013 11:17 PM|dotnetnerd|LINK
You need to ask your hosting provider to setup .net 4 on your site. Based on the error message, it shows that your site is still using asp.net 2.
May 27, 2013 02:07 AM|Topspy|LINK
Yes, your current site is configured on asp.net 2.0, check in your hosting control panel and see if there's option to edit asp.net versions.
May 27, 2013 04:57 PM|jats_ptl|LINK
Thanks a ton it helped.