Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / December 2007

Tip: Looking for answers? Try searching our database.

System.Web.Extensions compilation error

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
rkbnair - 06 Dec 2007 22:21 GMT
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?
Walter Wang [MSFT] - 07 Dec 2007 04:51 GMT
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 (wawang@online.microsoft.com, 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.
rkbnair - 07 Dec 2007 16:12 GMT
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?

> Hi,
>
[quoted text clipped - 25 lines]
>
> This posting is provided "AS IS" with no warranties, and confers no rights.
rkbnair - 07 Dec 2007 16:14 GMT
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.

Signature

test

> Hi,
>
[quoted text clipped - 25 lines]
>
> This posting is provided "AS IS" with no warranties, and confers no rights.
rkbnair - 07 Dec 2007 20:16 GMT
Mr. Wang,

Also, how can I know which version of Ajax I'm using?

Signature

test

> Hi,
>
[quoted text clipped - 25 lines]
>
> This posting is provided "AS IS" with no warranties, and confers no rights.
Walter Wang [MSFT] - 10 Dec 2007 06:57 GMT
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 (wawang@online.microsoft.com, 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.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.