Solved

web.comfig getting an error

Posted on 2010-09-09
3
1,464 Views
Last Modified: 2012-05-10
I tried 3.51 and 4.0 but I keep getting this error

Server Error in '/ATech' 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 19:     </customErrors>
Line 20:
Line 21:     <compilation debug="false" targetFramework="3.5"/>
Line 22:    
Line 23:     <!-- Web.Config Configuration File -->
 

Source File: \\nawinfs02\home\users\web\b393\rh.kbhatti\ATech\web.config    Line: 21


--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.3615; ASP.NET Version:2.0.50727.3082
0
Comment
Question by:goodk
3 Comments
 
LVL 4

Assisted Solution

by:antonybrahin
antonybrahin earned 150 total points
ID: 33635757
you are not required to mention -- targetFramework="3.5"
0
 
LVL 1

Accepted Solution

by:
ayan2010 earned 350 total points
ID: 33635819
You can try with the following code in webconfig.

<compilation debug="true" defaultLanguage="c#">

<customErrors mode="Off" defaultRedirect="yourerrorpagename.aspx">
      <error statusCode="404" redirect="yourerrorpagename.aspx?code=404"/>
</customErrors>

0
 

Author Comment

by:goodk
ID: 33636133
ok, thanks seems like the website provider www.readyhosting.com is not willing to upgrade to newer version of compilation.  
So I am confuse what to do?
 
I am up for a renewal.  May be I have to find a better service provider??
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

IntroductionWhile developing web applications, a single page might contain many regions and each region might contain many number of controls with the capability to perform  postback. Many times you might need to perform some action on an ASP.NET po…
User art_snob (http://www.experts-exchange.com/M_6114203.html) encountered strange behavior of Android Web browser on his Mobile Web site. It took a while to find the true cause. It happens so, that the Android Web browser (at least up to OS ver. 2.…
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question