>The only difference I know of between
> the 2 servers it that the System.Web.Extensions.dll is registered with the
> GAC on the dev machine but is copied to the BIN folder on the production
> server. Also the production server has never had any previous versions of
> AJAX related dlls installed.
Just a few assumptions without pretension to strict accuracy :)
In web.config you set reference for file the System.Web.Extensions.dll
as
<assemblies>
<add assembly="System.Web.Extensions, Version=1.0.61025.0,
Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
</assemblies>
It works fine if you have this dll installed in GAC because it is
installed in "v1.0.61025" folder and it is considered as a file
version. But on your development server the application looks through
its Bin folder and finds file System.Web.Extensions.dll which file
version is ... 1.0.61231.0 (it is the real file version for this
dll).
Possible solutions:
1. Change reference for the dll from GAC to a local file in Bin folder
and recompile the project.
2. Remove additional info from web.config, just leave <add
assembly="System.Web.Extensions"/>
I don't even know what is worse :)
It is just an assumption, I am not sure whether I am right.
Regards,
Mykola
http://marss.co.ua - Casual ideas for web development
Andrew Jocelyn - 11 Feb 2008 14:53 GMT
Hi
Thanks for your suggestions. Actually, I have now installed the
System.Web.Extensions into the GAC on the
production server.
The problem remained. I checked to see what windows updates were available
and saw there is a .Net Framework 2.0 SP1. I've installed it and now the
application on the production server works correctly.
The release notes for ASP.NET 2.0 AJAX Extensions don't say that you need to
install this service pack, only Visual Studio 2005 SP1, which you obviously
don't install on a production server.
Oh well, it's working now.
Thanks
Andrew