System.Web.Extensions compilation error

  • Thread starter Thread starter rkbnair
  • Start date Start date
R

rkbnair

I removed my VS 2008 beta installation and reinstalled the final version that
was released in November.
However, my ajax-enabled application gives the following error message on
compilation.

"Could not load file or assembly 'System.Web.Extensions,
Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one
of its dependencies. The system cannot find the file specified."

Any idea on how to fix this please?
 
Hi,

Looks like you're trying to use VS 2008 to target ASP.NET AJAX 1.0 instead
of upgrading to use the built-in AJAX assemblyes in .NET 3.5. In this case,
you will need to follow the steps in this blog to make it work:

#Your Websites, Our Passion! : Using VS 2008 to target ASP.NET AJAX 1.0
http://blogs.msdn.com/webdevtools/archive/2007/07/30/using-vs-2008-to-target
-asp-net-ajax-1-0.aspx


On the other hand, Scottgu has another detailed blog on how to upgrade your
existing project to use the the 3.5 version:

#ASP.NET AJAX in .NET 3.5 and VS 2008 - ScottGu's Blog
http://weblogs.asp.net/scottgu/archive/2007/07/30/asp-net-ajax-in-net-3-5-an
d-vs-2008.aspx


Hope this helps.


Regards,
Walter Wang ([email protected], remove 'online.')
Microsoft Online Community Support

==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.
 
Hi Mr. Wang,

I followed the steps to upgrade the ajax. I think I'm not using any Ajax
tool kit. So, I ignored that section.

The runtime section is giving an error in the web.config.
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="System.Web.Extensions"
publicKeyToken="31BF3856AD364E35"/>
<bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0"/>
</dependentAssembly>
</assemblyBinding>
</runtime>

The documentation is not good at all. Information is missing here and there.
How do I know that I also have Ajax 1.0 installed in my machine?
 
Mr. Wang,

Also, my application did not ask the confirmation to upgrade the project.
I don't use the Ajax except to populate the grid. I mean I use very minimal
features.
 
Hi,

First, please note that if you don't want to install separate ASP.NET AJAX
extension, you will need to use project type to target 3.5 framework to use
the built-in Ajax extension in Visual Studio 2008.

To find out if you have installed Ajax Extension 1.0, try to open a Visual
Studio 2008 command prompt and run following command:

gacutil /l | findstr /I system.web.extension

This should list the assemblies installed in GAC.

Since there's some changes from VS2008 beta version, a tip to find out
which config is needed in your web.config to enable AJAX extension is to
create a new web site (target 3.5 Framework) and check the generated
web.config, it has all the information you needed to enable AJAX.

Hope this helps.

Regards,
Walter Wang ([email protected], remove 'online.')
Microsoft Online Community Support

==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.
 
Back
Top