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

Compatibility Issues

3 Answers 252 Views
ScriptManager and StyleSheetManager
This is a migrated thread and some comments may be shown as answers.
Joshua
Top achievements
Rank 1
Joshua asked on 01 Jul 2010, 08:28 PM
Hello,

    I have recently been having some trouble with the the radControls for ASP.NET.
They were working fine and everything was ok until I randomly started getting this error on every page in my webapp.

The base class includes the field 'RadScriptManager1', but its type (Telerik.Web.UI.RadScriptManager) is not compatible with the type of control (Telerik.Web.UI.RadScriptManager).

i've gone as far as removing rad controls from the GAC, uninstalling and reinstalling them to no avail.


In the code view, there is no error for the scriptmanager, however the RadDatePicker shows an error that is the following

"Warning 1 C:\Projects\ProjectName\Secure\OrderHistory.aspx: ASP.NET runtime error: The base class includes the field 'BeginDate', but its type (Telerik.Web.UI.RadDatePicker) is not compatible with the type of control (Telerik.Web.UI.RadDatePicker). C:\Projects\ProjectNameSecure\OrderHistory.aspx 35 1 ProjectName


 

 

 

<telerik:RadScriptManager ID="RadScriptManager1" runat="server">   
</telerik:RadScriptManager>   
<table cellpadding="5" cellspacing="0" border="0" align="center">   
<tr>   
<td>   
Begin Date  
</td>   
<td>   
End Date  
</td>   
<td colspan="2">  
&nbsp;  
</td>   
</tr>   
<tr>   
<td>   
<telerik:RadDatePicker ID="BeginDate" Runat="server"   
 Culture="English (United States)" Skin="Office2007">   
<Calendar UseRowHeadersAsSelectors="False" UseColumnHeadersAsSelectors="False" ViewSelectorText="x" skin="Office2007"></Calendar>   
 <DatePopupButton ImageUrl="" HoverImageUrl=""></DatePopupButton>   
 <DateInput DisplayDateFormat="M/d/yyyy" DateFormat="M/d/yyyy"></DateInput>   
</telerik:RadDatePicker>   
</td>   
<td>   
<telerik:RadDatePicker ID="EndDate" Runat="server" Skin="Office2007">   
<Calendar UseRowHeadersAsSelectors="False" UseColumnHeadersAsSelectors="False" ViewSelectorText="x" skin="Office2007"></Calendar>   
<DatePopupButton ImageUrl="" HoverImageUrl=""></DatePopupButton>   
<DateInput DisplayDateFormat="M/d/yyyy" DateFormat="M/d/yyyy"></DateInput>   
</telerik:RadDatePicker>   
</td>   
<td>   
<asp:Button ID="btnGo" runat="server" Text="Go!" onclick="btnGo_Click" />   
</td>   
<td>   
<asp:LinkButton ID="lnkShowAll" runat="server" onclick="lnkShowAll_Click">Show All</asp:LinkButton>   
</td>   
</tr>   
</table> 
 
 

Whats even more interesting is the fact that the production test of this website (which is online on our server) works with no problems.
I haven't changed anything with the references or done anything to the controls on the page. This project is under source control and even after I had gotten the restore for it, the problem persists.

Any insight would be greatly appreciated, thanks!

Joshua Smith

 

 

 

 

3 Answers, 1 is accepted

Sort by
0
Maria Ilieva
Telerik team
answered on 06 Jul 2010, 01:43 PM
Hi Joshua,

This error happens when the Telerik.Web.UI assembly built against .NET 3.5 is used in a project, targeting .NET 2.0 (and System.Web.Extensions 1.0). I recommend that you change the TargetFramework of your project to 3.5 and ensure that the Telerik.Web.UI assembly in the BIN folder is versioned xxxx.x.xxx.35.


Sincerely yours,
Maria Ilieva
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
cwk
Top achievements
Rank 2
answered on 20 Sep 2012, 03:36 PM
Hi, I using vs2010, .net 4 asp.net project on windows 7. telerik version 2012.2.918.4. after upgrading to this latest version, my control encounter error creating control. I went to reinstall the GAC with telerik.web.design.dll and telerik.web.ui. the controls now appear ok, but while running , i face another error as attached. Appreciate any help to solve this problem. thanks.
regards
cwk
0
Maria Ilieva
Telerik team
answered on 25 Sep 2012, 11:34 AM
Hi Chik,

Please double check the bin folder of your application and ensure that there are no old dll files and no assemblies that end with .35 in it. Also, can you check if your project has references to the System.Web.Extensions assembly? Which version of the assembly does it refer to?


Kind regards,
Maria Ilieva
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
ScriptManager and StyleSheetManager
Asked by
Joshua
Top achievements
Rank 1
Answers by
Maria Ilieva
Telerik team
cwk
Top achievements
Rank 2
Share this question
or