1-888-365-2779
+1-888-365-2779
Try Now
More in this section

Forums / Developing with Sitefinity / resolve type using TypeResolutionService.ResolveType

resolve type using TypeResolutionService.ResolveType

3 posts, 0 answered
  1. Yan
    Yan avatar
    10 posts
    Registered:
    24 Jul 2012
    03 Aug 2012
    Link to this post
    I am totally new for sitefinity.
    I use module builder to customize a module called user module, But when i try to use TypeResolutionService.ResolveType("Telerik.Sitefinity.DynamicTypes.Model.UserModules.UserModule"), during the runtime, it always gives me cannot resolve type error. Can someone please help me out this issue? Thanks in advance!!
  2. Pavel Benov
    Pavel Benov avatar
    341 posts
    Registered:
    14 Mar 2016
    08 Aug 2012
    Link to this post
    Hi Yan,

    Login into the backend of your project, go to Content->Your Custom Module. On the right hand side under Settings click on Content Types and go to the Code Reference for Your Custom Module. Go to Create a Content for example and copy all the using statements there in your code - see image Namespaces.png. I hope this resolves the problem.

    Greetings,
    Pavel Benov
    the Telerik team
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. Yan
    Yan avatar
    10 posts
    Registered:
    24 Jul 2012
    08 Aug 2012
    Link to this post
    Thanks a lot! It resolvs my issue!
3 posts, 0 answered