Visual Studio requires a ScriptManager reference to compile Ajax enabled solution

The Problem

Visual Studio requires a ScriptManager to compile a Ajax enabled solution for a SharePoint web part.

Visual Studio Error on compile says:

Solution.cs: (Build Error)

Error    1    The type or namespace name ‘ScriptManager’ could not be found (are you missing a using directive or an assembly reference?)    C:\…\Solution.cs

 

 

The Solution:

A Reference dll is missing in your solution. You need to add a reference to System.Web.Extentions.

Advertisements

Leave a Reply

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

WordPress.com Logo

You are commenting using your WordPress.com 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 )

Google+ photo

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

Connecting to %s