Wednesday, March 28, 2012

Installing AJAX Problems

Hi,

I'm trying to deploy AJAX on a production server. I've run the AJAX 1.0 Extensions msi installer and have verified that System.Web.Extensions/.Design v. 1.0.61025.0 are located in the GAC.

The website however tells me that the assembly wasn't able to be located:

Parser Error Message: Could not load file or assembly 'System.Web.Extensions, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.Source Error: Line 1:<%@dotnet.itags.org. Master Language="C#" AutoEventWireup="true" Codebehind="Site.master.cs" Inherits="BlackBox.Site" %>Line 2:<%@dotnet.itags.org. Register Assembly="System.Web.Extensions, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"Line 3: Namespace="System.Web.UI" TagPrefix="asp" %>Line 4:<%@dotnet.itags.org. Register src="http://pics.10026.com/?src=StrategyStats.ascx" TagName="StrategyStats" TagPrefix="uc2" %>

When I copy System.Web.Extensions in my web application's bin folder I get:

Parser Error Message: Could not load file or assembly 'System.Web.Extensions, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)Source Error: Line 1:<%@dotnet.itags.org. Master Language="C#" AutoEventWireup="true" Codebehind="Site.master.cs" Inherits="BlackBox.Site" %>Line 2:<%@dotnet.itags.org. Register Assembly="System.Web.Extensions, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"Line 3: Namespace="System.Web.UI" TagPrefix="asp" %>Line 4:<%@dotnet.itags.org. Register src="http://pics.10026.com/?src=StrategyStats.ascx" TagName="StrategyStats" TagPrefix="uc2" %>


Any ideas how to solve this?

Thanks

anyone? I'm a bit in a rush to get this solved for a production environment.

Thanks


Check your project references folder forSystem.Web.Extensionsand add it if it's not there.

Mine's referencing:
C:\Program Files\Microsoft ASP.NET\ASP.NET 2.0 AJAX Extensions\v1.0.61025\System.Web.Extensions.dll

Good luck.


hmmmm ...

Why do you register that assembly again when it's already in the GAC? And it's probably in your Web.Config file already.


hmm... I didn't add those references, VS did when I added the Script Manager I think. However, when I take them out it works. Thanks!

Your project must have not been created asAJAX Enabled.

Another cool thing you may want to try is moving your AJAX tag prefixes to the web.config file. Try creating a new AJAX enabled website and examine the web.config for an example.


It actually was created as AJAX enabled Web Project and the web.config contains all the AJAX specific code. No clue why the register directives got added to the individual sites...

No comments:

Post a Comment