resolve type using TypeResolutionService.ResolveType

Posted by Community Admin on 04-Aug-2018 15:55

resolve type using TypeResolutionService.ResolveType

All Replies

Posted by Community Admin on 03-Aug-2012 00:00

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!!

Posted by Community Admin on 08-Aug-2012 00:00

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

Posted by Community Admin on 08-Aug-2012 00:00

Thanks a lot! It resolvs my issue!

This thread is closed