Solved

web.comfig getting an error

Posted on 2010-09-09
3
1,431 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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

A quick way to get a menu to work on our website, is using the Menu control and assign it to a web.sitemap using SiteMapDataSource. Example of web.sitemap file: (CODE) Sample code to add to the page menu: (CODE) Running the application, we wi…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

706 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now