Wednesday, April 18, 2007

Could not load file or assembly 'Microsoft.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its depend

Have been building www.nffw.net for Northland Family Four Wheelers (New Zealand off road club my family helped set up).
The site was working fine on my test server, however once it was ftp'd this message appeared:

Could not load file or assembly 'Microsoft.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.

After deleting the problem lines out of the web.config file I realised the problem was the Ajax extensions. Although I never used them in the site I had created the site form the Visual Studio Ajax template (not the Atlas Toolkit one the new Ajax 2.0 release) which it seems you need to have installed in the host server GAC.

The old Atlas Toolkit still works on any server running .net Frameowrk 2.0, as it has its own .dll that sits in the bin folder of the project. However the Ajax release for .net is part of the framework so need to be installed onto the server.

Be careful: Make sure the hosting company has it installed before you start developing the site, if they dont you will have to unpick the entire application and replace all controls with the ctp/version (if they existed).

ext link to asp.net forums: http://forums.asp.net/thread/1499963.aspx

No comments: