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

System.IO.FileNotFoundException

1 Answer 64 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Chris
Top achievements
Rank 1
Chris asked on 26 May 2010, 05:05 PM
Hi,

       I'm using Telerik Grid and it works in Silverlight version 2.0. And now,  I'm using VS 2010 with Silverlight 4.0.
 
         What I did?
                    1.) I created a new project for Silverlight 4.0 using VS 2010.
                    2.) Reference the Telerik Dll's that was used in Silverlight 2.0 (It works in version 2.0).
                    2.5) These are the files that I have and reference it to the project:
                                     a:) Telerik.Windows.Controls  - version 2009.1.428.1020
                                     b:) Telerik.Windows.Controls.Docking  -  2009.1.428.1020
                                     c:)Telerik.Widows.Controls.Gridview - 2009.1.428.1020
                                     d:)Telerik.Windows.Controls.Input - 2009.1.428.1020
                                      e:)Telerik.Windows.Controls.Navigation - 2009.1.428.1020
                                      f:) Telerik.Windows.Controls.Data -  2009.1.428.1020
                                      g:) Telerik.Windows.Controls.Themes.Vista - 2009.1.428.1020
                    2.6)  I have a reference on this file.
                                       System.Windows.Controls.Data            
                                     Path: c:\Program Files (x86)\Microsoft SDKs\Silverlight\v4.0\Libraries\Client\System.Windows.Controls.Data.dll
                                     Runtime Version : v2.0.50727
                                     Version: 2.0.5.0

                    3.) When I compiled the project, it creates and error.

          Here's the error:
         
              

System.IO.FileNotFoundException

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 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 System.Reflection.Adds.Helpers.EnsureResolve(Type type) at Microsoft.VisualStudio.Shell.Design.VsTargetFrameworkUtil.EnsureResolvedType(Type type) at Microsoft.VisualStudio.Shell.Design.VsTargetFrameworkUtil.EnsureRuntimeType(Type type) at Microsoft.VisualStudio.Shell.Design.VsTargetFrameworkUtil.GetRuntimeType(Type type) at Microsoft.VisualStudio.Shell.Design.VsTargetFrameworkType.TryGetRuntimeType() at Microsoft.VisualStudio.Shell.Design.VsTargetFrameworkUtil.EnsureRuntimeType(Type type) at Microsoft.VisualStudio.Shell.Design.VsTargetFrameworkProvider.GetRuntimeType(Type reflectionType) at MS.Internal.Package.VSIsolationProviderService.RemoteReferenceProxy.VsReflectionResolver.GetRuntimeType(Type reflectionType) at Microsoft.Windows.Design.Metadata.ReflectionMetadataContext.CachingReflectionResolver.GetRuntimeType(Type reflectionType) at Microsoft.Windows.Design.Metadata.ReflectionMetadataContext.Microsoft.Windows.Design.Metadata.IReflectionResolver.GetRuntimeType(Type reflectionType) at MS.Internal.Metadata.ClrType.get_RuntimeMember() at MS.Internal.Metadata.ClrMember`1.Microsoft.Windows.Design.Metadata.Reflection.IReflectionMember.get_MemberInfo() at Microsoft.Windows.Design.Metadata.ReflectionMetadataContext.IsAssignableFrom(ITypeMetadata requesting, ITypeMetadata target) at Microsoft.Windows.Design.Platform.SilverlightMetadataContext.IsAssignableFrom(ITypeMetadata requesting, ITypeMetadata target) at MS.Internal.Metadata.ClrType.IsAssignableFrom(ITypeMetadata type) at MS.Internal.Metadata.WrapperType.IsAssignableFrom(ITypeMetadata type) at MS.Internal.Design.Metadata.ReflectionTypeNode.BuildProperties() at MS.Internal.Design.Metadata.ReflectionTypeNode.Find(Identifier name, Boolean includeAttachable) 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.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.FullParse(Boolean convertToXamlWithErrors) at MS.Internal.Design.DocumentModel.DocumentTrees.Markup.XamlSourceDocument.get_RootItem() at Microsoft.Windows.Design.DocumentModel.Trees.ModifiableDocumentTree.get_ModifiableRootItem() at Microsoft.Windows.Design.DocumentModel.MarkupDocumentManagerBase.get_LoadState() at MS.Internal.Host.PersistenceSubsystem.Load() at MS.Internal.Host.Designer.Load() at MS.Internal.Designer.VSDesigner.Load() at MS.Internal.Designer.VSIsolatedDesigner.VSIsolatedView.Load() at MS.Internal.Designer.VSIsolatedDesigner.VSIsolatedDesignerFactory.Load(IsolatedView view) at MS.Internal.Host.Isolation.IsolatedDesigner.BootstrapProxy.LoadDesigner(IsolatedDesignerFactory factory, IsolatedView view) at MS.Internal.Host.Isolation.IsolatedDesigner.BootstrapProxy.LoadDesigner(IsolatedDesignerFactory factory, IsolatedView view) at MS.Internal.Host.Isolation.IsolatedDesigner.Load() at MS.Internal.Designer.DesignerPane.LoadDesignerView()

    Let me know the problem and if there's a file that is needed to fixed this issue.  Please  send me.

Thanks
Mac

1 Answer, 1 is accepted

Sort by
0
Accepted
Vlad
Telerik team
answered on 27 May 2010, 06:50 AM
Hello,

You cannot use these assemblies in Silverlight 4 projects. Please upgrade to our latest version Q1 2010 SP1!

Regards,
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.
Tags
General Discussions
Asked by
Chris
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Share this question
or