Thursday, June 7, 2007

Deploying AJAX enabled apps

Parser Error Message: 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.

Got the above error when i tried to deploy an AJAX enabled app to our production server. It was working fine on my dev machine but i think thats because i have visual studio installed. In case anyone has this problem, i thought i would post the solution that worked for me.

1. Install AJAX extensions (if not already installed)
2. Copy DLL's from C:\Program Files\Microsoft ASP.NET\ASP.NET 2.0 AJAX Extensions\v1.0.61025\ to your bin folder in your application directory

5 comments:

Greg said...

How did you deploy the app? Copy, paste?
Did you try right click-->properties on the ajax library assemblies in the 'references' folder of your solution. Change Copy Local to true and it should do the dll copy for you.

Jitty said...

But there is no references folder in my solution.

Greg said...

Sorry, references folder in the project, not solution.

Anonymous said...

Whats wrong with copy, past deployment?

Greg said...

http://weblogs.asp.net/scottgu/archive/2007/06/25/updated-asp-net-ajax-control-toolkit-release-and-new-asp-net-ajax-videos-articles.aspx#2943925