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

RadGridView is Not working in Prism Setup

2 Answers 33 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Anand
Top achievements
Rank 1
Anand asked on 16 Jul 2014, 12:13 AM
hello All,
In my project I've a Module in which I want to Display my 1 Table Data user. So I created a RadGridView. At designer it shows. and Control., Data, Input dlls are also in reference.
When I Run my application I'm getting

 
  Microsoft.Practices.Prism.Modularity.ModuleInitializeException was unhandled by user code
  Message=An exception occurred while initializing module 'AdminModule'.
    - The exception message was: Resolution of the dependency failed, type = "Delasoft.Hpms.Module.Admin.UserTab.View.UsersTab", name = "(none)".
Exception occurred while: Calling constructor Delasoft.Hpms.Module.Admin.UserTab.View.UsersTab(Delasoft.Hpms.Module.Admin.UserTab.ViewModel.IUsersTabViewModel viewModel).
Exception is: XamlParseException - The type 'RadGridView' was not found. [Line: 13 Position: 96]
-----------------------------------------------
At the time of the exception, the container was:
 
  Resolving Delasoft.Hpms.Module.Admin.UserTab.View.UsersTab,(none)
  Calling constructor Delasoft.Hpms.Module.Admin.UserTab.View.UsersTab(Delasoft.Hpms.Module.Admin.UserTab.ViewModel.IUsersTabViewModel viewModel)
 
    - The Assembly that the module was trying to be loaded from was:Delasoft.Hpms.Module.Admin, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
    Check the InnerException property of the exception for more information. If the exception occurred while creating an object in a DI container, you can exception.GetRootException() to help locate the root cause of the problem.
   
  ModuleName=AdminModule
  StackTrace:
       at Microsoft.Practices.Prism.Modularity.ModuleInitializer.HandleModuleInitializationError(ModuleInfo moduleInfo, String assemblyName, Exception exception)
       at Microsoft.Practices.Prism.Modularity.ModuleInitializer.Initialize(ModuleInfo moduleInfo)
       at Microsoft.Practices.Prism.Modularity.ModuleManager.InitializeModule(ModuleInfo moduleInfo)
       at Microsoft.Practices.Prism.Modularity.ModuleManager.LoadModulesThatAreReadyForLoad()
       at Microsoft.Practices.Prism.Modularity.ModuleManager.LoadModuleTypes(IEnumerable`1 moduleInfos)
       at Microsoft.Practices.Prism.Modularity.ModuleManager.LoadModulesWhenAvailable()
       at Microsoft.Practices.Prism.Modularity.ModuleManager.Run()
       at Microsoft.Practices.Prism.UnityExtensions.UnityBootstrapper.InitializeModules()
       at Microsoft.Practices.Prism.UnityExtensions.UnityBootstrapper.Run(Boolean runWithDefaultConfiguration)
       at Microsoft.Practices.Prism.Bootstrapper.Run()
       at Delasoft.Hpms.App.Application_Startup(Object sender, StartupEventArgs e)
       at MS.Internal.CoreInvokeHandler.InvokeEventHandler(UInt32 typeIndex, Delegate handlerDelegate, Object sender, Object args)
       at MS.Internal.JoltHelper.FireEvent(IntPtr unmanagedObj, IntPtr unmanagedObjArgs, Int32 argsTypeIndex, Int32 actualArgsTypeIndex, String eventName, UInt32 flags)
  InnerException: Microsoft.Practices.Unity.ResolutionFailedException
       Message=Resolution of the dependency failed, type = "Delasoft.Hpms.Module.Admin.UserTab.View.UsersTab", name = "(none)".
Exception occurred while: Calling constructor Delasoft.Hpms.Module.Admin.UserTab.View.UsersTab(Delasoft.Hpms.Module.Admin.UserTab.ViewModel.IUsersTabViewModel viewModel).
Exception is: XamlParseException - The type 'RadGridView' was not found. [Line: 13 Position: 96]
-----------------------------------------------
At the time of the exception, the container was:
 
  Resolving Delasoft.Hpms.Module.Admin.UserTab.View.UsersTab,(none)
  Calling constructor Delasoft.Hpms.Module.Admin.UserTab.View.UsersTab(Delasoft.Hpms.Module.Admin.UserTab.ViewModel.IUsersTabViewModel viewModel)
 
       TypeRequested=UsersTab
       StackTrace:
            at Microsoft.Practices.Unity.UnityContainer.DoBuildUp(Type t, Object existing, String name, IEnumerable`1 resolverOverrides)
            at Microsoft.Practices.Unity.UnityContainer.DoBuildUp(Type t, String name, IEnumerable`1 resolverOverrides)
            at Microsoft.Practices.Unity.UnityContainer.Resolve(Type t, String name, ResolverOverride[] resolverOverrides)
            at Microsoft.Practices.Unity.UnityContainerExtensions.Resolve[T](IUnityContainer container, ResolverOverride[] overrides)
            at Delasoft.Hpms.Module.Admin.AdminModule.Initialize()
            at Microsoft.Practices.Prism.Modularity.ModuleInitializer.Initialize(ModuleInfo moduleInfo)
       InnerException: System.Windows.Markup.XamlParseException
            Message=The type 'RadGridView' was not found. [Line: 13 Position: 96]
            LineNumber=13
            LinePosition=96
            StackTrace:
                 at System.Windows.Application.LoadComponent(Object component, Uri resourceLocator)
                 at Delasoft.Hpms.Module.Admin.UserTab.View.UsersTab.InitializeComponent()
                 at Delasoft.Hpms.Module.Admin.UserTab.View.UsersTab..ctor(IUsersTabViewModel viewModel)
                 at BuildUp_Delasoft.Hpms.Module.Admin.UserTab.View.UsersTab(IBuilderContext )
                 at Microsoft.Practices.ObjectBuilder2.DynamicMethodBuildPlan.BuildUp(IBuilderContext context)
                 at Microsoft.Practices.ObjectBuilder2.BuildPlanStrategy.PreBuildUp(IBuilderContext context)
                 at Microsoft.Practices.ObjectBuilder2.StrategyChain.ExecuteBuildUp(IBuilderContext context)
                 at Microsoft.Practices.Unity.UnityContainer.DoBuildUp(Type t, Object existing, String name, IEnumerable`1 resolverOverrides)
            InnerException:

What is Going wrong? Si my Prim  not recognizing or some thing else ? How to resolve this.

Please help.

Greetings

2 Answers, 1 is accepted

Sort by
0
Anand
Top achievements
Rank 1
answered on 16 Jul 2014, 12:41 AM
When I updated my Main Silverlight (Bootstrapper project) for GridView it worked.

was this the case? 

0
Dimitrina
Telerik team
answered on 18 Jul 2014, 08:11 AM
Hi,

The error is: Exception is: XamlParseException - The type 'RadGridView' was not found. Most probably this means for some reason our Assemblies (for example Telerik.Windows.Controls.GridView, etc.) were not resolved. 

Please keep in mind that generally if you have added references to our assemblies to a project from your solution and this project does not build, then those assemblies will not be copied to the bin/Debug folder. Once the project is built, the assemblies will be copied.

Regards,
Didie
Telerik
 
Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
 
Tags
GridView
Asked by
Anand
Top achievements
Rank 1
Answers by
Anand
Top achievements
Rank 1
Dimitrina
Telerik team
Share this question
or