Answered by:
Configuration Error - After Hosting the site

Question
-
User-1635195291 posted
Hi Folks,
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. 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: Line 12: </appSettings> Line 13: <system.web> Line 14: <compilation targetFramework="4.0"> Line 15: <assemblies> Line 16: <add assembly="System.Web.Abstractions, Version=4.0.0.0, 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.
Thanks,
Jatin
Sunday, May 26, 2013 9:55 PM
Answers
-
User311508580 posted
Hi jats,
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.
- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Sunday, May 26, 2013 11:17 PM -
User13850534 posted
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.
- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Monday, May 27, 2013 2:07 AM
All replies
-
User311508580 posted
Hi jats,
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.
- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Sunday, May 26, 2013 11:17 PM -
User13850534 posted
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.
- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Monday, May 27, 2013 2:07 AM -
User-1635195291 posted
Hi dotnetnerd,
Thanks a ton it helped.
Monday, May 27, 2013 4:57 PM -
User-1635195291 posted
Hi TopSpy,
Thanks a ton it helped.
Monday, May 27, 2013 4:57 PM