ASP.Net AJAX – Growing Pain !

I have a project where I use AJAX Extensions Ver 1.0, I am using Visual Studio 2008 and my target .Net Framework Ver is 3.0, All of a sudden I started getting this error!

The type ‘System.Web.UI.UpdatePanel’ exists in both ‘c:\WINDOWS\assembly\GAC_MSIL\System.Web.Extensions\\System.Web.Extensions.dll’ and ‘c:\WINDOWS\assembly\GAC_MSIL\System.Web.Extensions\1.0.61025.0__31bf3856ad364e35\System.Web.Extensions.dll’

Googling the error, got pointers to look at “References” and “Web.config” to ensure that there is no reference to System.Web.Extensions ver 3.5, did that …. and much more… drove me nuts for a good couple of hours.

And at last found this in one of my test pages !!!

<%@ Register assembly="System.Web.Extensions, Version=, Culture=neutral,

PublicKeyToken=31bf3856ad364e35" namespace="System.Web.UI.WebControls" tagprefix="asp" %>

Removing this page directive made all the difference, project started compiling fine again…
and I can have a peaceful weekend !


One comment

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s