Solved

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

Posted on 2007-04-03
12
732 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
  • 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
MIM Survival Guide for Service Desk Managers

Major incidents can send mastered service desk processes into disorder. Systems and tools produce the data needed to resolve these incidents, but your challenge is getting that information to the right people fast. Check out the Survival Guide and begin bringing order to chaos.

 
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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

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…
Problem Hi all,    While many today have fast Internet connection, there are many still who do not, or are connecting through devices with a slower connect, so light web pages and fast load times are still popular.    If your ASP.NET page …
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

825 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