Solved

URGENT !!!!!! AJAX ASP.NET Configuration Error in Web.Config

Posted on 2007-04-03
12
733 Views
Last Modified: 2008-01-09
I created a ASP.NET Application using AJAX TookKit Website Template and i developed a Ajax based Website..
It works great on my local machine.. However when i deploy the application on a Different machine(a Web server) i get the following error

Parser Error Message: Unrecognized attribute 'type'.

on line
<sectionGroup name="system.web.extensions" type="System.Web.Configuration.SystemWebExtensionsSectionGroup, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35">

in web.config file...

Any idea how to resolve this error??

Please help!!!
0
Comment
Question by:Collindsouza
[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
  • 6
  • 6
12 Comments
 
LVL 25

Expert Comment

by:dstanley9
ID: 18845408
SectionGroup is new to .NET 2.0.  Is the virtual directory you are using on the web server configured to use asp.net 2.0 in IIS?
0
 
LVL 5

Author Comment

by:Collindsouza
ID: 18845423
Hi,
could you please explain this further...

0
 
LVL 25

Expert Comment

by:dstanley9
ID: 18845434
Go to IIS Admin on the server.  Look for the virtual directory you are publishing to. Look as the Properties.  Under the ASP.NET tab, make sure it's set to 2.0.50727
0
Webinar: Aligning, Automating, Winning

Join Dan Russo, Senior Manager of Operations Intelligence, for an in-depth discussion on how Dealertrack, leading provider of integrated digital solutions for the automotive industry, transformed their DevOps processes to increase collaboration and move with greater velocity.

 
LVL 5

Author Comment

by:Collindsouza
ID: 18845462
yes i am using version 2.0 of .NET Framework... i.e 2.0.50727

What could be the problem?

It works seemlessly on my local machine.... but fails on the server
0
 
LVL 25

Expert Comment

by:dstanley9
ID: 18845532
Every time I've seen this it's because the virtual dir on the server was set to .NET 1.1
0
 
LVL 25

Expert Comment

by:dstanley9
ID: 18845567
The virutal dir it will use is the dir that web.config is in.  It also has to be set up as an application in IIS - if the dir is not set as an application the "Application Name" text box in IIS will be grayed out.
0
 
LVL 5

Author Comment

by:Collindsouza
ID: 18845627
Yes,
I have set the Virtual Directory by clicking on the create button...

If the virtual directory was not created then it wouldnt go as far as the web.config file in the application...

it would simple give an /Application error
0
 
LVL 25

Expert Comment

by:dstanley9
ID: 18845651
And the ASP.NET tab for that virtual dir shows version 2.0?
0
 
LVL 5

Author Comment

by:Collindsouza
ID: 18845723
yes it does...
0
 
LVL 25

Accepted Solution

by:
dstanley9 earned 500 total points
ID: 18846524
Can you run aspnet_regiis -lk on the server and post the results?  You can remove references to paths that are not part of your deployment.
0
 
LVL 5

Author Comment

by:Collindsouza
ID: 18846613
Setting environment to use Microsoft .NET Framework v2.0 SDK tools.
For a list of SDK tools, see the 'StartTools.htm' file in the bin folder.

C:\Program Files\Microsoft.NET\SDK\v2.0>aspnet_regiis -lk
W3SVC/  1.1.4322.2300
W3SVC/1/ROOT/crystalreportviewers115/   1.1.4322.2300
W3SVC/1/ROOT/IP/        2.0.50727.0
W3SVC/1/ROOT/NiceContacts/      2.0.50727.0
W3SVC/1269410064/root/  2.0.50727.0
W3SVC/1269410064/root/IP/       2.0.50727.0
W3SVC/1269410064/root/NiceContacts/     2.0.50727.0
W3SVC/1269410064/root/Contacts/ 2.0.50727.0
W3SVC/999596315/root/   2.0.50727.0

C:\Program Files\Microsoft.NET\SDK\v2.0>
0
 
LVL 5

Author Comment

by:Collindsouza
ID: 18846660
it works..............
Horray!!!!!!!!!!!!!!!!!!!!!!

There was a problem with the IIS Version....

So i took a cue from your query and re registered IIS on the server using aspreg_iis -i

Thanks a million for your help!!!!
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

ASP.Net to Oracle Connectivity Recently I had to develop an ASP.NET application connecting to an Oracle database.As I am doing it first time ,I had to solve several problems. This article will help to such developers  to develop an ASP.NET client…
Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

730 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