Christian Sparre

I have a simple web site that uses AJAX and it is a few months since I updated it the last time. Today I had to make a simple ajustment, but I ran into some problems.

I have the new VS 2008 beta 2 installed alongside VS2005. The web site is 100% ASP.NET 2.0 and AJAX 1.0.

The website was buildt without errors and deployed to the filesystem just fine, but when I moved it to the production site, that only has .NET 2.0 it came with an error stating that it was looking for the 3.5.0.0 version of System.Web.Extension assembly. The web site itself has a reference to the 1.0 version of the System.Web.Extensions.

How come this happen, the web site was opened, build and deployed in Visual Studio 2005. Why does it make a reference to a 3.5 framework assembly

I don't know if this is the right forum to ask this, please feel free to redirect my to the aporopriate one in case this is not it.

--

Christian



Re: Visual C# 2008 (Pre-release) Problem building AJAX enabled web sites after install of Visual Studio 2008 beta 2

Citizen on the earth

Hi Christian,

Based on my understanding, if you want to deploy an AJAX Enabled website in a product site, you need to install .NET Framework 2.0 and ASP.NET AJAX 1.0. I want to know if you compiled your AJAX Enabled website using VS 2008 Beta 2 before deploying it. If yes, there will be an issue message saying "not find the 3.5.0.0 version of System.Web.Extension assembly". You can try to use VS.NET 2005 to compile it again and then deploy it to the production site with .NET Framework 2.0 and ASP.NET AJAX 1.0. This should work.

I'm sorry to tell you that this is a C# forum. If you have any other questions about ASP.NET AJAX, try to post them to ASP.NET forums - http://forums.asp.net/default.aspx GroupID=34 to get more helps from there. Thanks.

Hope this helps,

Regards,

Citizens on the earth





Re: Visual C# 2008 (Pre-release) Problem building AJAX enabled web sites after install of Visual Studio 2008 beta 2

sparrez

As I stated in my post the site _was_ compiled with 2005 and the referenced AJAX assembly is 1.0. As for the production site I did say that it was en existing site, so of course .NET 2.0 and AJAX 1.0 is installed Smile

To clarify. The site is opened in VS 2005, compiled and then deployed to the file-system. Then it is moved to the production server. I don't know why it think it needs the 3.5.0.0 assembly. The project has never been opened in VS 2008.

I will have to find a machine that still has VS2005 on it Smile





Re: Visual C# 2008 (Pre-release) Problem building AJAX enabled web sites after install of Visual Studio 2008 beta 2

Citizen on the earth

Hi sparrez,

Thanks for your update.

It sounds a bit strange that a VS.NET 2005 compiled AJAX enabled website needs the 3.5.0.0 assembly.

Did you try to deploy your AJAX enabled website to another machine with .NET Framework 2.0 and AJAX 1.0 Does it work there Have you tested if it worked when you deployed your AJAX website to the file system

If you have any issues when trying this, please let me know. Thanks.

Regards,

Citizens on the earth





Re: Visual C# 2008 (Pre-release) Problem building AJAX enabled web sites after install of Visual Studio 2008 beta 2

Chris Brandsma

Christian,

System.Web.Extension for .Net 3.5 is still a .Net 2.0 dll.
So theorizing here (meaning, I dont know for sure), when the System.Web.Extension is referenced by Visual Studio.Net, it just grabs the most recient version that is .Net 2.0. Which is, unfortunatly, the .Net 3.5 version.


I've had the same problem reciently. Easy fix is to replace
<%@ Register Assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" Namespace="System.Web.UI" TagPrefix="asp" %>

with this:
<%@ Register Assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" Namespace="System.Web.UI" TagPrefix="asp" %>



Also, double check your web.config for for "System.Web.Extensions, Version=3.5.0.0"





Re: Visual C# 2008 (Pre-release) Problem building AJAX enabled web sites after install of Visual Studio 2008 beta 2

sparrez

I will try checking again. However, I just deployed a SharePoint solution containing webparts that use AJAX and there was no problems...

--

Christian





Re: Visual C# 2008 (Pre-release) Problem building AJAX enabled web sites after install of Visual Studio 2008 beta 2

Robert C. Barth

Follow the instructions under "Important Beta 2 Information" at the end of this entry in Scott Guthrie's blog:

http://weblogs.asp.net/scottgu/archive/2007/07/26/vs-2008-and-net-3-5-beta-2-released.aspx

Please note: You should never, EVER install a beta version of ANYTHING on a developer machine wherein that developer is responsible for production code. Use a VM or another box entirely to mess with beta bits.





Re: Visual C# 2008 (Pre-release) Problem building AJAX enabled web sites after install of Visual Studio 2008 beta 2

sparrez

Thanks, I remember seeing that post on Scott's blog a few weeks ago, but I must have missed the AJAX part.

About the installation of Beta software, the company I work for is always on edge with the new .NET things. So it is a natural thing that we change to new beta's as they become "stable" enough for day to day work. And 2008 beta 2 does come with a Go Live license option, so it must be pretty stable, and I think it is. I solved my AJAX problem by having a .NET 2.0 only VM running.

--

Christian