This is a migrated thread and some comments may be shown as answers.

[Solved] IScriptControl Reference Required?

4 Answers 306 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Tom
Top achievements
Rank 1
Tom asked on 16 Jan 2008, 09:51 PM
Hi,

I just downloaded the beta 3 of Prometheus and I am trying to compile my code.  After adding a reference to my project for Telerik.Web.UI.dll I then added this code:

private

RadEditor rad;


Very simple declaration.  I then compiled and I get this error:

Error 102 The type 'System.Web.UI.IScriptControl' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'. d:\p4\dev_scottle_SCOTTLEWIS2008\system\dev\dotnextmaint\TS\Course\Src\Course\Web\UI\WebControls\Editors\VizEditor.cs 37 27 Course.Web.UI.WebControls_Library

I cannot find this version of this dll on my machine.  I am using VS 2008 compiling against .net 2.0.  I was surprised I required other references for this dll.

Thanks, Scott

4 Answers, 1 is accepted

Sort by
0
Tervel
Telerik team
answered on 17 Jan 2008, 09:03 AM
Hi Scott,

The RadControls Prometheus installation installs different builds of the controls for VS 2005 and VS 2008.

In VS 2005 (ASP.NET 2.0) the Prometheus dll is referenced from
    C:\Program Files\Telerik\RadControls 'Prometheus' for ASPNET Q3 2007\Bin

In VS 2008 (ASP.NET 3.5) is referenced from 
    C:\Program Files\Telerik\RadControls 'Prometheus' for ASPNET Q3 2007\Bin35


In your case you say that you are using VS 2008 compiling against .net 2.0
Thus, to be able to successfully compile a Prometheus-based project, you need to update your website reference to point to the dll version built against .NET 2.0 (coming from the 'Prometheus'  Bin folder and not the 'Prometheus'  Bin35 folder).



Best regards,
Tervel
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Tom
Top achievements
Rank 1
answered on 17 Jan 2008, 02:36 PM
Hi,

Thanks for the response.  I am using vs2008 but not .net 3.5.  I am using .net 2.0.  On my machine I am referencing the dll from here:

G:\downloads\RadEditor\Prometheus\v3.0 beta\RadControls_Prometheus_2007_3_1218_trial\bin\Telerik.Web.UI.dll

I am targeting the .net 2.0 framework.  When I compile I get an error that says:

Error 1 The type 'System.Web.UI.IScriptControl' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'. d:\p4\dev_scottle_SCOTTLEWIS2008\system\dev\dotnextmaint\TS\Course\Src\Course\Web\UI\WebControls\Editors\VizEditor.cs 37 27 Course.Web.UI.WebControls_Library

Can this be recreated?  Do I have an outdated dll?

Thanks, Scott 
0
Tom
Top achievements
Rank 1
answered on 17 Jan 2008, 03:49 PM
I installed Ajax for .net2.0 and that fixed the problem.  I still however had to add a reference to Telerik.Web.UI.dll and System.Web.Extensions.dll in my project.

Thanks, Scott
0
donoho
Top achievements
Rank 1
answered on 07 Feb 2008, 10:05 PM
This thread was really helpful, Thanks.
Tags
Editor
Asked by
Tom
Top achievements
Rank 1
Answers by
Tervel
Telerik team
Tom
Top achievements
Rank 1
donoho
Top achievements
Rank 1
Share this question
or