?
Solved

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

Posted on 2007-04-03
12
Medium Priority
?
739 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
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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 2000 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

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…
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
Are you ready to place your question in front of subject-matter experts for more timely responses? With the release of Priority Question, Premium Members, Team Accounts and Qualified Experts can now identify the emergent level of their issue, signal…
In a question here at Experts Exchange (https://www.experts-exchange.com/questions/29062564/Adobe-acrobat-reader-DC.html), a member asked how to create a signature in Adobe Acrobat Reader DC (the free Reader product, not the paid, full Acrobat produ…
Suggested Courses
Course of the Month15 days, 8 hours left to enroll

850 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