Unable to load ~\/WebUserControl.ascx and error CS0012

Jan 27, 2010 at 1:24 PM

Hi EveryOne,

i use framework 3.5 and  Ajax Toolkit version 3.0.30512.20315, when i use the smart web part i got this error:

Error: unable to load ~\/UserControls\NewInvestment.ascx
Details: c:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\9fb9ddd8\c7bdaab1\App_Web_newinvestment.ascx.6bb32623.zaft7mo-.0.cs(1539): error CS0012: The type 'System.Web.UI.ScriptControl' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.Web.Extensions, Version=, Culture=neutral, PublicKeyToken=31bf3856ad364e35'.
Please Any Help.....
Feb 16, 2010 at 10:25 AM
Edited Feb 16, 2010 at 10:27 AM


Did you check your web application root folder (C:\Inetpub\wwwroot\wss\VirtualDirectories\75 ... 75 is the web application directory as sharepoint create web application directory based upon its port so check respective to your port) have a folder "UserControls" and all the user controls ".ascx" files copied there and the DLL file copied in GAC?

Good Day!