Solved

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

Posted on 2007-04-03
12
731 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
 
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
Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

 
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

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

For those of you who don't follow the news, or just happen to live under rocks, Microsoft Research released a beta SDK (http://www.microsoft.com/en-us/download/details.aspx?id=27876) for the Xbox 360 Kinect. If you don't know what a Kinect is (http:…
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.
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

758 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

19 Experts available now in Live!

Get 1:1 Help Now