I have near to finish my application using VS2008 with RadControls Prometheus 2007, but in a single page where i am using grid, i want to use the RadControls for ASP.NET AJAX 2008. But when i replace the new grid with the old grid it replace the telerik.web.dll.
And when i Compile the application it throws the error that dll is in 2 places.
Can I use the both controls from RadControls Prometheus 2007 and RadControls for ASP.NET AJAX 2008?
What are the difference between them?
Please assist.
6 Answers, 1 is accepted
The .NET framework does not allow you to use two different versions for the same assembly in a single web-application. The reasons are several: the assembly names are the same, so there is no way to keep them both in the same folder; the namespaces are the same, which in turn does not allow you to use different assemblies on the same page or project.
As on your last question ("What are the difference between them?"), RadControls Prometheus 2007 was beta and RadControls for ASP.NET AJAX 2008 is the final version that includes all Telerik controls. I would strongly suggest you use the latter.
Sincerely yours,
Paul
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
I have used the rad grid in my page.
I am getting compilation error
Error 18
The type 'Telerik.Charting.ChartClickEventArgs' exists in both 'c:\WINDOWS\assembly\GAC_MSIL\Telerik.Charting\2.0.0.0__d14f3dcc8e3e8763\Telerik.Charting.dll' and 'c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\qaisys_drilldown\985fc989\735cebf1\assembly\dl3\2a486333\00065214_7a5ec801\Telerik.Charting.DLL'
E:\............
Controls\TUCDay_Shift_Time_Comparison.ascx.cs 184
Please help
my web.config is like this
<?
xml version="1.0"?>
<
configuration>
<
configSections>
<
sectionGroup name="system.web.extensions" type="System.Web.Configuration.SystemWebExtensionsSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
<
sectionGroup name="scripting" type="System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
<
section name="scriptResourceHandler" type="System.Web.Configuration.ScriptingScriptResourceHandlerSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/>
<
sectionGroup name="webServices" type="System.Web.Configuration.ScriptingWebServicesSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
<
section name="jsonSerialization" type="System.Web.Configuration.ScriptingJsonSerializationSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="Everywhere"/>
<
section name="profileService" type="System.Web.Configuration.ScriptingProfileServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/>
<
section name="authenticationService" type="System.Web.Configuration.ScriptingAuthenticationServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/>
<
section name="roleService" type="System.Web.Configuration.ScriptingRoleServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/>
</
sectionGroup>
</
sectionGroup>
</
sectionGroup>
</
configSections>
<
runtime>
<
assemblyBinding xmlns="urn chemas-microsoft-com:asm.v1">
<
publisherPolicy apply="no"/>
<
dependentAssembly>
<
assemblyIdentity name="System.Web.Extensions" publicKeyToken="31bf3856ad364e35" culture="neutral"/>
<
bindingRedirect oldVersion="1.0.61025.0" newVersion="3.5.0.0"/>
</
dependentAssembly>
</
assemblyBinding>
</
runtime>
<
connectionStrings>
<
add name="....." connectionString=".........." providerName="System.Data.SqlClient"/>
</
connectionStrings>
<
system.web>
<
authorization>
<
deny users="?"/>
</
authorization>
<
roleManager enabled="true"/>
<
pages theme="default">
<
controls>
<
add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<
add tagPrefix="asp" namespace="System.Web.UI.WebControls" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
</
controls>
</
pages>
<!--
Set compilation debug="true" to insert debugging
symbols into the compiled page. Because this
affects performance, set this value to true only
during development.
-->
<
compilation debug="true">
<
assemblies>
<
add assembly="System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
<
add assembly="Microsoft.ReportViewer.WebForms, Version=8.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
<
add assembly="Microsoft.ReportViewer.Common, Version=8.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
<
add assembly="System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
<
add assembly="System.Xml.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
<
add assembly="System.Data.DataSetExtensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
<
add assembly="System.Data.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"/>
<
add assembly="System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
<
add assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<
add assembly="Telerik.Charting, Version=2.0.0.0, Culture=neutral, PublicKeyToken=D14F3DCC8E3E8763"/></assemblies>
<
buildProviders>
<
add extension=".rdlc" type="Microsoft.Reporting.RdlBuildProvider, Microsoft.ReportViewer.Common, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>
</
buildProviders>
</
compilation>
<
httpHandlers>
<
add path="*_AppService.axd" verb="*" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" validate="false"/>
<
add path="ScriptResource.axd" verb="GET,HEAD" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" validate="false"/>
<
add path="Reserved.ReportViewerWebControl.axd" verb="*" type="Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" validate="false"/>
<
add path="Telerik.Web.UI.DialogHandler.aspx" verb="*" type="Telerik.Web.UI.DialogHandler, Telerik.Web.UI, Version=2007.2.1010.0, Culture=neutral, PublicKeyToken=121fae78165ba3d4" validate="false"/>
<
add path="Telerik.Web.UI.WebResource.axd" verb="*" type="Telerik.Web.UI.WebResource, Telerik.Web.UI, Version=2007.3.1218.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4" validate="false"/>
<
add path="ChartImage.axd" verb="*" type="Telerik.Web.UI.ChartHttpHandler, Telerik.Web.UI, Version=2007.3.1314.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4" validate="false"/>
</
httpHandlers>
<
httpModules>
<
add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
</
httpModules>
<
authentication mode="Forms"/>
<
httpRuntime maxRequestLength="102400" executionTimeout="3600"/>
</
system.web>
<
system.webServer>
<
validation validateIntegratedModeConfiguration="false"/>
<
modules>
<
remove name="ScriptModule"/>
<
add name="ScriptModule" preCondition="managedHandler" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
</
modules>
<
handlers>
<
remove name="ScriptHandlerFactory"/>
<
remove name="ScriptHandlerFactoryAppServices"/>
<
remove name="ScriptResource"/>
<
remove name="WebServiceHandlerFactory-Integrated"/>
<
add name="ScriptHandlerFactory" verb="*" path="*.asmx" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<
add name="ScriptHandlerFactoryAppServices" verb="*" path="*_AppService.axd" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<
add name="ScriptResource" preCondition="integratedMode" verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
</
handlers>
</
system.webServer>
<
system.codedom>
<
compilers>
<
compiler language="c#;cs;csharp" extension=".cs" type="Microsoft.CSharp.CSharpCodeProvider,System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" warningLevel="4">
<
providerOption name="CompilerVersion" value="v3.5"/>
<
providerOption name="WarnAsError" value="false"/>
</
compiler>
</
compilers>
</
system.codedom>
</
configuration>
Please, make sure you have removed Telerik.Charting.dll assembly from your application's Bin folder, it is installed in GAC. You can also delete the asp.net cache from this folder:
c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files
Hope this helps.
Sincerely yours,
Ves
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
I have removed all the dll (like RadCalendar.Net2.dll, RadDock.Net2.dll, RadGrid.Net2.dll etc...)
from my bin folder and added only Telerik.Charting.dll (ver 2.0.0.0), Telerik.Web.UI.dll(ver 2008.1.415.35).
Also I have uninstalled the RadControls Prometheus 2007.
But when i comnpile my code
It throws error in :
1. using Telerik.WebControls;
2. <%@ Register Assembly="RadInput.Net2" Namespace="Telerik.WebControls" TagPrefix="radI" %>
<%@ Register Assembly="RadCalendar.Net2" Namespace="Telerik.WebControls" TagPrefix="radCln" %>
<%@ Register Assembly="RadAjax.Net2" Namespace="Telerik.WebControls" TagPrefix="radA" %>
<%@ Register Assembly="RadComboBox.Net2" Namespace="Telerik.WebControls" TagPrefix="radCb" %>
<%@ Register Assembly="RadTreeView.Net2" Namespace="Telerik.WebControls" TagPrefix="radT" %>
Please assist.
For every control from RadControls suite there is a help topic dedicated to migration. You can find the corresponding help topic for RadGrid here. Note, that you have to replace the classic Register directive:
<%@ Register TagPrefix="rad" Namespace="Telerik.WebControls" Assembly="RadGrid.Net2" %>
with this one:
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
You will only need two Register directives -- the one above and this one:
<%@ Register Assembly="Telerik.Charting" Namespace="Telerik.Charting" TagPrefix="telerik" %>
However, you will have to remove all the Register directives used for the other "Classic" controls -- RadInput, RadCalendar, RadAjax etc...
All the best,
Ves
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
Thanks every body.
My problem is solved.
I have removed one reference from GAC (right click on the Website in solution explorer > go to property page > in that there are tworeferences i removed the GAC reference)
Also i have removed the reference from web. config file.
Thanks
Viv