?
Solved

web.comfig getting an error

Posted on 2010-09-09
3
Medium Priority
?
1,542 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 4

Assisted Solution

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

Accepted Solution

by:
ayan2010 earned 1400 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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…
Suggested Courses
Course of the Month8 days, 15 hours left to enroll

764 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