Not able to run the Telerik Controls in a page.

6 posts, 1 answers
  1. satish
    satish avatar
    52 posts
    Member since:
    Apr 2009

    Posted 19 May 2009 Link to this post

    Hi,

       I am unable to run the telerik silverlight controls in a page. I am getting the following error.

    Could not load file or assembly 'System.Windows.Controls.Data, Version=2.0.5.0, Culture=neutral, PublicKeyToken=3d8c6023c75a3242' or one of its dependencies. The system cannot find the file specified.   at Telerik.Windows.Controls.GridView.GridViewItemsControl.DisconnectFromDataEvents()
       at Telerik.Windows.Controls.GridView.GridViewItemsControl.ReconnectToDataEvents()
       at Telerik.Windows.Controls.GridView.GridViewItemsControl.GridViewItemsControl_Loaded(Object sender, RoutedEventArgs e)
       at System.Windows.CoreInvokeHandler.InvokeEventHandler(Int32 typeIndex, Delegate handlerDelegate, Object sender, Object args) at MS.Internal.JoltHelper.FireEvent(IntPtr unmanagedObj, IntPtr unmanagedObjArgs, Int32 argsTypeIndex, String eventName)

    Here My XAML page Code is:

    <

     

    UserControl

     

     

    xmlns:telerikGridView="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.GridView"

     

     

    xmlns:telerikInput="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Input"

     

     

    xmlns:controls="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls"

     

     

    xmlns:data="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Data"

     

     

    x:Class="SLRAMWareWebApp.MainPage"

     

     

    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"

     

     

    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">

     

     

     

     

    <Canvas x:Name="LayoutRoot" Width="1200" Height="600" Background="LightGreen">

     

     

     

    <controls:Label x:Name="lblLoginID" Content="SELECT LOGIN_ID :" Margin="10,10,0,0"></controls:Label>

     

     

     

    <ComboBox x:Name="ddlEmployee" Background="LightCoral" Width="200" Height="30" VerticalAlignment="Top" HorizontalAlignment="Left" Margin="125,5,0,0">

     

     

     

    <ComboBox.ItemTemplate>

     

     

     

    <DataTemplate>

     

     

     

    <TextBlock Text="{Binding LoginID}" FontSize="10" VerticalAlignment="Center" Foreground="Black"></TextBlock>

     

     

     

    </DataTemplate>

     

     

     

    </ComboBox.ItemTemplate>

     

     

     

    </ComboBox>

     

     

     

    <HyperlinkButton Content="Home" Click="HyperlinkButton_Click" TargetName="_blank" Margin="330,10,0,0"></HyperlinkButton>

     

     

     

    <Grid x:Name="GridLayout" Background="White" Margin="5,40,0,0" Width="500" Height="300" >

     

     

     

    <data:DataGrid x:Name="theGrid" Background="LightGreen">

     

     

     

    </data:DataGrid>

     

     

     

    </Grid>

     

     

     

     

    <!--<Button x:Name="btnNavigate" Content="Navigate to Controls Samples Page" Click="btnNavigate_Click" Margin="10,400,0,0"></Button>-->

     

     

     

     

    <!-- TELERIK CONTROLS-->

     

     

     

     

    <controls:Label Content="Data Bind From DB" x:Name="lblDynamic" Margin="600,40,0,0"></controls:Label>

     

     

     

    <telerikInput:RadComboBox DisplayMemberPath="Name" x:Name="ddlDynamic" Width="200" Margin="800,40,0,0"></telerikInput:RadComboBox>

     

     

     

     

    <controls:Label Content="Data Bind Manually" x:Name="lblManual" Margin="600,10,0,0"></controls:Label>

     

     

     

    <telerikInput:RadComboBox x:Name="ddlManual" Width="200" Margin="800,10,0,0"></telerikInput:RadComboBox>

     

     

     

     

    <controls:Label x:Name="lblRadGrid" Content="Rad Grid Control :" Margin="600,80,0,0"></controls:Label>

     

     

     

    <telerikGridView:RadGridView x:Name="grdProducts" ScrollMode="RealTime" Grid.Row="1" ColumnsWidthMode="Auto" Margin="600,100,0,0" Width="500"></telerikGridView:RadGridView>

     

     

     

     

    <!--ENDS HERE-->

     

     

     

     

    </Canvas>

     

    </

     

    UserControl>

     


    Can anbody please help me on this ASAP.

  2. Answer
    Boyan
    Admin
    Boyan avatar
    758 posts

    Posted 20 May 2009 Link to this post

    Hello satish,

    Telerik RadGrid uses the System.Windows.Controls.Data assembly and it should reside within your references.
    You either don't have reference to it at all (or you have it but it is not found) or you have not added our assembly (which is modified), but rather the Microsoft one.  So make sure you have added to your references System.Windows.Controls.Data.dll  which is included in our installation. This will solve your problem.

     If you need more help let me know.
     
    Greetings,
    Boyan
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  3. satish
    satish avatar
    52 posts
    Member since:
    Apr 2009

    Posted 20 May 2009 Link to this post

    Hi Boyan,

       Thanks a lot for the response. It's helped me a lot.
     
       I am facing one more problem. Here the error is. This error i am getting when i try to build the project. Please help me on this.

    Error 1 The "CreateRiaClientFilesTask" task failed unexpectedly.
    System.IO.FileNotFoundException: Could not load file or assembly 'System.Windows, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e' or one of its dependencies. The system cannot find the file specified.
    File name: 'System.Windows, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e'
       at System.Reflection.Assembly._GetExportedTypes()
       at System.Reflection.Assembly.GetExportedTypes()
       at System.Web.DomainServices.Tools.DomainServiceCatalog.FindDomainServiceDescriptions()
       at System.Web.DomainServices.Tools.DomainServiceCatalog..ctor(IEnumerable`1 assemblies, IEnumerable`1 references, ILogger logger)
       at System.Web.DomainServices.Tools.ClientProxyGenerator..ctor(String language, IEnumerable`1 assemblies, IEnumerable`1 references, ILogger logger)
       at System.Web.DomainServices.Tools.CreateRiaClientFilesTask.GenerateClientProxies(IEnumerable`1 assemblies, IEnumerable`1 references, String outputDirectory)
       at System.Web.DomainServices.Tools.CreateRiaClientFilesTask.GenerateClientProxies()
       at System.Web.DomainServices.Tools.CreateRiaClientFilesTask.Execute()
       at Microsoft.Build.Framework.ITask.Execute()
       at Microsoft.Build.BuildEngine.TaskEngine.ExecuteInstantiatedTask(EngineProxy engineProxy, ItemBucket bucket, TaskExecutionMode howToExecuteTask, ITask task, Boolean& taskResult)

    WRN: Assembly binding logging is turned OFF.
    To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
    Note: There is some performance penalty associated with assembly bind failure logging.
    To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].
     SLRAMWareWebApp.BL

    Could you please help me on this.

    Thanks & Regards
    Satish

  4. Vlad
    Admin
    Vlad avatar
    11100 posts

    Posted 25 May 2009 Link to this post

    Hello satish,

    Do you have reference to System.Windows assembly?

    Best wishes,
    Vlad
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  5. kiran
    kiran avatar
    36 posts
    Member since:
    May 2008

    Posted 05 May 2010 Link to this post

    Hi,

    i am also getting the same error.

    System.IO.FileNotFoundException
    Could not load file or assembly 'System.Windows, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e' or one of its dependencies. The system cannot find the file specified.
       at System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
       at System.Reflection.RuntimeAssembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
       at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection, Boolean suppressSecurityChecks)
       at System.Reflection.Assembly.Load(AssemblyName assemblyRef)
       at MS.Internal.Package.VSIsolationProviderService.RemoteReferenceProxy.LoadAssembly(AssemblyName assemblyName)
       at MS.Internal.Package.VSIsolationProviderService.RemoteReferenceProxy.System.ComponentModel.Design.IDesignTimeAssemblyLoader.LoadRuntimeAssembly(AssemblyName targetAssemblyName)
       at Microsoft.VisualStudio.Shell.Design.VsTargetFrameworkUniverse.LoadRuntimeAssembly(AssemblyName assemblyName)
       at Microsoft.VisualStudio.Shell.Design.VsTargetFrameworkUniverse.ResolveAssemblyFromRuntimeLocation(AssemblyName name)
       at Microsoft.VisualStudio.Shell.Design.VsTargetFrameworkUniverse.ResolveAssembly(Module scope, Token tokenAssemblyRef)
       at Microsoft.MetadataReader.MetadataOnlyModule.ResolveTypeRef(ITypeReference typeReference)
       at Microsoft.MetadataReader.MetadataOnlyTypeReference.GetResolvedTypeWorker()
       at Microsoft.MetadataReader.TypeProxy.GetResolvedType()
       at Microsoft.MetadataReader.TypeProxy.GetHashCode()
       at Microsoft.Windows.Design.Metadata.ReflectionMetadataContext.GetTypeForReflectableType(Reflectable`1 reflectableType)
       at MS.Internal.Metadata.ClrType.GetTypeMetadata(Type type)
       at MS.Internal.Metadata.ClrProperty.get_PropertyType()
       at MS.Internal.Design.Metadata.ReflectionTypeNode.BuildProperties()
       at MS.Internal.Design.Metadata.ReflectionTypeNode.Find(Identifier name, Boolean includeAttachable)
       at MS.Internal.Design.Markup.XmlElement.ConvertAttributes(XamlObjectElement objectElement, XamlElement parent, TypeNode typeNode, PrefixScope scope, IParseContext context)
       at MS.Internal.Design.Markup.XmlElement.ConvertToXaml(XamlElement parent, PrefixScope parentScope, IParseContext context, IMarkupSourceProvider provider)
       at MS.Internal.Design.Markup.XmlElement.ConvertChildrenToXaml(XamlElement result, PrefixScope scope, IParseContext context, IMarkupSourceProvider provider, Boolean childrenAsString)
       at MS.Internal.Design.Markup.XmlElement.ConvertToXaml(XamlElement parent, PrefixScope parentScope, IParseContext context, IMarkupSourceProvider provider)
       at MS.Internal.Design.DocumentModel.DocumentTrees.Markup.XamlSourceDocument.ParseElementFromSkeleton(XamlParseContext context, SkeletonNode node, XamlElement parent, Boolean fullElement)
       at MS.Internal.Design.DocumentModel.DocumentTrees.Markup.XamlSourceDocument.UpdateSkeleton(IDamageListener listener)
       at Microsoft.Windows.Design.DocumentModel.Trees.MarkupDocumentTreeManager.Update()
       at Microsoft.Windows.Design.DocumentModel.MarkupProducer.Update()
       at Microsoft.Windows.Design.DocumentModel.MarkupProducer.HandleMessage(DocumentTreeCoordinator sender, MessageKey key, MessageArguments args)
       at Microsoft.Windows.Design.DocumentModel.MarkupProducer.Microsoft.Windows.Design.DocumentModel.IDocumentTreeConsumer.HandleMessage(DocumentTreeCoordinator sender, MessageKey key, MessageArguments args)
       at Microsoft.Windows.Design.DocumentModel.DocumentTreeCoordinator.SendMessage[T](MessageKey`1 key, T args, Boolean isPrivateMessage)
       at Microsoft.Windows.Design.DocumentModel.DocumentTreeCoordinator.QueuedMessage`1.Microsoft.Windows.Design.DocumentModel.IQueuedMessage.Invoke()
       at Microsoft.Windows.Design.DocumentModel.DocumentTreeCoordinator.ProcessQueuedMessages(Object state)
       at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
       at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)


    i am using .NET framework 3.5. Please let me know how to resolve this.

    Regrds,
    Kiran
  6. Vlad
    Admin
    Vlad avatar
    11100 posts

    Posted 12 May 2010 Link to this post

    Hi,

    And what is your Silverlight version?

    Greetings,
    Vlad
    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.
Back to Top