Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

ComponentArt.WEB.UI for .NET 3.5
bobsts
#1 Posted : Thursday, 18 February 2010 3:02:28 PM(UTC)
Rank: Member

Joined: 19/04/2009(UTC)
Posts: 8
Location: Ohio

I recompiled the source to use the 3.5 framework of AJAX and everything has been running fine. I noticed that the ComponentArt.WEB.UI.dll has a reference in it to System.Web.Extensions, Version=1.0.61025.0 which is not the version that I have Systems.Web.Extensions, Version 3.5.0.0 so whenever it loads up it cannot find this file and I get an error:
Error: 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.

The stack trace points to the ComponentArt.Web.UI:
ComponentArt.Web.UI

Target Site
Void OnLoad(System.EventArgs)

Stack Trace
at ComponentArt.Web.UI.Dialog.OnLoad(EventArgs e)
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

What I don't understand is that this has been working (and still does) on my other webserver. I'm moving to a brand new server running Windows Server 2008 R2 and IIS 7 so maybe that has something to do with it?

Is there a way to get a ComponentArt.Web.UI dll built with the newer System.Web.Extension of 3.5.0.0?
Thanks,
Bob

--- Maybe I just figured out a solution. I looked on my old server and it has both versions in the GAC. I just need to figure out what version that is, I suppose it is an earlier version of the framework that I must not have installed on the new server. ---
Roger Martin
#2 Posted : Thursday, 18 February 2010 3:26:27 PM(UTC)
Roger Martin

Rank: Administration

Joined: 3/08/2007(UTC)
Posts: 3,301
Location: Fort Atkinson, WI

I am pretty sure you can get this to work on a server with only 3.5 installed, but if nothing else you can always install MS Ajax 1.0 to install the 1.0.61025 version of System.Web.Extensions.dll.

Before you do that, though, make sure you have the following section in web.config:

Code:
<runtime>
    <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1" appliesTo="v2.0.50727"><dependentAssembly>
            <assemblyIdentity name="System.Web.Extensions" publicKeyToken="31bf3856ad364e35"/>
            <bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0"/>
        </dependentAssembly>
        <dependentAssembly>
            <assemblyIdentity name="System.Web.Extensions.Design" publicKeyToken="31bf3856ad364e35"/>
            <bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0"/>
        </dependentAssembly>
    </assemblyBinding>
</runtime>



Roger Martin
Creator and Lead Developer of Gallery Server Pro
bobsts
#3 Posted : Thursday, 18 February 2010 10:49:14 PM(UTC)
Rank: Member

Joined: 19/04/2009(UTC)
Posts: 8
Location: Ohio

Roger,
You are brilliant! That worked. And that's worth a donation in my book so one will be forthcoming.
Thanks,
Bob
Rss Feed  Atom Feed
Users browsing this topic
Guest
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.