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

Runtime error with gridview dll

3 Answers 87 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Jumma
Top achievements
Rank 1
Jumma asked on 05 Mar 2013, 12:49 PM
I am doing some testing with telerik gridview trial version.

I am trying to add the Telerik.Windows.Controls.GridView.dll in my Silverlight MVVM MEF application.
When I add the dll I get the following run time error:

03/05/2013 12:37:45:904: CRITICAL: Unhandled exception occurred:
Error loading module. ---> System.InvalidOperationException: The package downloaded successfully but an error occurred while reading the contents of the package. See the inner exception for more details. ---> System.Reflection.ReflectionTypeLoadException: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.

   at App.OnUnhandledException(Object sender, ApplicationUnhandledExceptionEventArgs e)

   at EventHandler`1.Invoke(Object sender, TEventArgs e) System

   at Errorstatic .CallApplicationUEHandler(Exception e) MS.Internal

   at Errorstatic .GetXresultForUserException(Exception ex) MS.Internal

   at DispatcherOperation.Invoke() System.Windows.Threading

   at Dispatcher.Dispatch(DispatcherPriority priority) System.Windows.Threading

   at Dispatcher.OnInvoke(Object context) System.Windows.Threading

   at CallbackCookie.Invoke(Object[] args) System.Windows.Hosting

   at ManagedHoststatic .InvokeDelegate(IntPtr pHandle, Int32 nParamCount, ScriptParam[] pParams, ScriptParam& pResult) System.Windows.RuntimeHost

 

   Details:

      at System.Reflection.RuntimeModule.GetTypes(RuntimeModule module)

      at System.Reflection.RuntimeModule.GetTypes()

      at System.Reflection.Assembly.GetTypes()

      at System.ComponentModel.Composition.Hosting.AssemblyCatalog.get_InnerCatalog()

      at System.ComponentModel.Composition.Hosting.AssemblyCatalog.get_Parts()

      at System.ComponentModel.Composition.Hosting.DeploymentCatalog.DiscoverParts(IEnumerable`1 assemblies)

      at System.ComponentModel.Composition.Hosting.DeploymentCatalog.HandleOpenReadCompleted(Object sender, OpenReadCompletedEventArgs e)

      --- End of inner exception stack trace ---

      --- End of inner exception stack trace ---

      at Geocortex.EssentialsSilverlightViewer.Infrastructure.Modularity.ModuleTracker.ModuleManagerLoadModuleCompleted(Object sender, LoadModuleCompletedEventArgs e)

      at Microsoft.Practices.Prism.Modularity.ModuleManager.RaiseLoadModuleCompleted(LoadModuleCompletedEventArgs e)

      at Microsoft.Practices.Prism.Modularity.ModuleManager.IModuleTypeLoader_LoadModuleCompleted(Object sender, LoadModuleCompletedEventArgs e)

      at Microsoft.Practices.Prism.MefExtensions.Modularity.MefXapModuleTypeLoader.RaiseLoadModuleCompleted(LoadModuleCompletedEventArgs e)

      at Microsoft.Practices.Prism.MefExtensions.Modularity.MefXapModuleTypeLoader.RaiseLoadModuleCompleted(ModuleInfo moduleInfo, Exception error)

      at Microsoft.Practices.Prism.MefExtensions.Modularity.MefXapModuleTypeLoader.HandleDownloadCompleted(DeploymentCatalog deploymentCatalog, AsyncCompletedEventArgs e)

      at Microsoft.Practices.Prism.MefExtensions.Modularity.MefXapModuleTypeLoader.DeploymentCatalog_DownloadCompleted(Object sender, AsyncCompletedEventArgs e)

      at System.ComponentModel.Composition.Hosting.DeploymentCatalog.OnDownloadCompleted(AsyncCompletedEventArgs e)

      at System.ComponentModel.Composition.Hosting.DeploymentCatalog.HandleOpenReadCompleted(Object sender, OpenReadCompletedEventArgs e)

      at System.Net.WebClient.OnOpenReadCompleted(OpenReadCompletedEventArgs e)

      at System.Net.WebClient.OpenReadOperationCompleted(Object arg)


Any help will be appreciated.

Thanks

3 Answers, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 05 Mar 2013, 01:11 PM
Hi,

Can you verify if you have other required dlls referenced? You can check also this article for more info.

Greetings,
Vlad
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Jumma
Top achievements
Rank 1
answered on 05 Mar 2013, 09:36 PM
Thanks for your reply.

I had the required dlls for RadGridView.
Telerik.Windows.Controls.GridView, Telerik.Windows.Data, Telerik.Windows.Controls.Input and Telerik.Windows.Controls.

Cheers


0
Vlad
Telerik team
answered on 07 Mar 2013, 06:59 AM
Hi,

 Unfortunately we are out of ideas what is causing this error at your end. Actually our own demos are built using MVVM and MEF however we have not seen such problems. 

All the best,
Vlad
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
GridView
Asked by
Jumma
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Jumma
Top achievements
Rank 1
Share this question
or