Solved

web.comfig getting an error

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Editing XSL files, 2 44
Error in page 3 46
ASP.net Javascript use multiple sliders 2 19
Gridview alignment 1 12
Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my asp.net applications, I have grown tired of the following syntax:      (CODE) I suppose it just offends my sense of decency to put inline VBScript on a…
I have developed many web applications with asp & asp.net and to add and use a dropdownlist was always a very simple task, but with the new asp.net, setting the value is a bit tricky and its not similar to the old traditional method. So in this a…
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…

867 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

22 Experts available now in Live!

Get 1:1 Help Now