NullReferenceException in Design Mode

12 posts, 1 answers
  1. Kunal Chowdhury
    Kunal Chowdhury avatar
    23 posts
    Member since:
    May 2010

    Posted 24 May 2013 Link to this post

    Every time I click on the RadListPicker (binary version: 2013.1.418.2040) tag when the designer window is open, it throws a NullReferenceException. If I click outside the tag the designer window comes back with the UI. Some time it needs a rebuild but again when I click the RadListPicker tag, it throws the same exception.

    Here is my code:

    <telerikInput:RadListPicker>
             <system:String>Demo 1</system:String>
             <system:String>Demo 2</system:String>
    </telerikInput:RadListPicker>

    Here is the exception details:

    NullReferenceException: Object reference not set to an instance of an object.
     
    Stack Trace:
     
       at Microsoft.Expression.HostUtility.UriResolver.ComponentUriResolver.Parse(Uri uri, Uri baseUri, String assemblyName, IHostProject project)
       at Microsoft.Expression.HostUtility.UriResolver.ComponentUriResolver.TryResolve(Uri uri, String rootPath, String documentPath, String assemblyName, HostDesignTimeUriInfo& uriResolutionInfo)
       at Microsoft.Expression.HostUtility.UriResolver.UriResolverFactory.TryResolve(Uri uri, String rootPath, String referencingDocumentPath, String assemblyName, HostDesignTimeUriInfo& uriResolutionInfo)
       at Microsoft.Expression.HostUtility.UriResolver.UriResolver.TryResolve(Uri uri, String rootPath, String referencingDocumentPath, String assemblyName)
       at Microsoft.VisualStudio.ExpressionHost.HostServices.HostProjectService.Microsoft.Expression.DesignHost.IHostProjectService.MakeThemeResourceDesignTimeUri(Uri uri, String rootPath, String referencingDocumentPath, String assemblyName)
       at Microsoft.Expression.DesignHost.Isolation.Remoting.RemoteHostProjectService.<>c__DisplayClass32.<Microsoft.Expression.DesignHost.Isolation.Remoting.IRemoteHostProjectService.MakeThemeResourceDesignTimeUri>b__31()
       at Microsoft.Expression.DesignHost.Isolation.Remoting.ThreadMarshaler.<>c__DisplayClass16`1.<MarshalIn>b__15()
       at Microsoft.Expression.DesignHost.Isolation.Remoting.STAMarshaler.Call.InvokeWorker()

    What is wrong here? Is it a known issue or a bug? I am using the SP1 version of Q1.2013, I guess.

    Thanks & Regards,
    Kunal Chowdhury, Microsoft MVP | Telerik MVP

  2. Deyan
    Admin
    Deyan avatar
    2037 posts

    Posted 28 May 2013 Link to this post

    Hi Kunal,

    Can you please make sure that you have Update 2 for Visual Studio 2012 installed? If not, can you please install it and let us know if this issue is resolved?

    Thanks for your time.

    Regards,
    Deyan
    Telerik
    Have a suggestion or face a problem - you can use the Ideas & Feedback portal to submit ideas, feedback and vote for them.
  3. DevCraft banner
  4. Kunal Chowdhury
    Kunal Chowdhury avatar
    23 posts
    Member since:
    May 2010

    Posted 28 May 2013 Link to this post

    Hi Deyan,
        Yes, I am using the latest Visual Studio 2012 i.e. Update 2. Let me know, if I need to check anything else.
    Regards,
    Kunal
  5. Answer
    Deyan
    Admin
    Deyan avatar
    2037 posts

    Posted 31 May 2013 Link to this post

    Hello Kunal,

    Thanks for writing back and please excuse me for the delay with my answer.

    This issue is caused by a problem within Visual Studio 2012's designer which Microsoft were informed of and announced they will be fixing within Update 2. Interestingly though it persists when using Windows Phone 7.1. assemblies.

    The issue was related to using MergedDictionaries within controls' styles in our assemblies.

    I am going to revisit the case and I will get back to you by the end of the day with more details.

    Thanks for your patience.

    Regards,
    Deyan
    Telerik
    Have a suggestion or face a problem - you can use the Ideas & Feedback portal to submit ideas, feedback and vote for them.
  6. Kunal Chowdhury
    Kunal Chowdhury avatar
    23 posts
    Member since:
    May 2010

    Posted 31 May 2013 Link to this post

    Thanks Dayan. Waiting for further details from your site.
  7. Robby Gunawan
    Robby Gunawan avatar
    1 posts
    Member since:
    Dec 2012

    Posted 05 Jul 2013 Link to this post

    I have the same problem, please fix the error..

    thanks
  8. Deyan
    Admin
    Deyan avatar
    2037 posts

    Posted 10 Jul 2013 Link to this post

    Hi Robby,

    We are working on this right now.

    Regards,
    Deyan
    Telerik
    Have a suggestion or face a problem - you can use the Ideas & Feedback portal to submit ideas, feedback and vote for them.
  9. OTMOP
    OTMOP avatar
    20 posts
    Member since:
    Jun 2012

    Posted 19 Sep 2013 Link to this post

    Hello.

    When this issue will be fixed? Is it fixed in the last internal build?

    VS2012, Update 3.

    Alexander.
  10. Kiril Stanoev
    Admin
    Kiril Stanoev avatar
    1511 posts

    Posted 23 Sep 2013 Link to this post

    Hello Alexander,

    We haven't yet gotten the chance to fix this issue for WP 7. Everything seems to be working properly with WP8.

    Regards,
    Kiril Stanoev
    Telerik
    TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WINDOWS PHONE 7.
    Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
    Sign up for Free application insights >>
  11. Tony
    Tony avatar
    3 posts
    Member since:
    Mar 2013

    Posted 23 Feb 2014 in reply to Kiril Stanoev Link to this post

    I am using VS2013 Update 1 with the latest Telerik Windows Phone 8 version and getting the same problem.  Obviously this hasn't been fixed?

       
  12. Deyan
    Admin
    Deyan avatar
    2037 posts

    Posted 27 Feb 2014 Link to this post

    Hi Tony,

    We will investigate and get back to you shortly.

    Regards,
    Deyan
    Telerik
    If you want to get updates on new releases, tips and tricks and sneak peek previews directly from the developers working on the UI for Windows Phone, subscribe to the blog feed now.
  13. Hugo Vladimir
    Hugo Vladimir avatar
    3 posts
    Member since:
    Jul 2013

    Posted 24 Apr 2014 Link to this post

    I solved the problem by upgrading telerik from visual studio, I had the same problem for a while but apparently already solved.
Back to Top
DevCraft banner