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

NullReferenceException in Design Mode

11 Answers 93 Views
ListPicker
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Kunal Chowdhury
Top achievements
Rank 2
Kunal Chowdhury asked on 24 May 2013, 04:40 PM
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

11 Answers, 1 is accepted

Sort by
0
Deyan
Telerik team
answered on 28 May 2013, 06:58 AM
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.
0
Kunal Chowdhury
Top achievements
Rank 2
answered on 28 May 2013, 08:53 AM
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
0
Accepted
Deyan
Telerik team
answered on 31 May 2013, 06:56 AM
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.
0
Kunal Chowdhury
Top achievements
Rank 2
answered on 31 May 2013, 09:10 AM
Thanks Dayan. Waiting for further details from your site.
0
Robby Gunawan
Top achievements
Rank 1
answered on 05 Jul 2013, 05:38 AM
I have the same problem, please fix the error..

thanks
0
Deyan
Telerik team
answered on 10 Jul 2013, 07:20 AM
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.
0
OTMOP
Top achievements
Rank 2
answered on 19 Sep 2013, 10:53 AM
Hello.

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

VS2012, Update 3.

Alexander.
0
Kiril Stanoev
Telerik team
answered on 23 Sep 2013, 12:14 PM
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 >>
0
Tony
Top achievements
Rank 2
answered on 23 Feb 2014, 07:36 PM
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?

   
0
Deyan
Telerik team
answered on 27 Feb 2014, 08:01 AM
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.
0
Hugo Vladimir
Top achievements
Rank 2
answered on 24 Apr 2014, 06:36 AM
I solved the problem by upgrading telerik from visual studio, I had the same problem for a while but apparently already solved.
Tags
ListPicker
Asked by
Kunal Chowdhury
Top achievements
Rank 2
Answers by
Deyan
Telerik team
Kunal Chowdhury
Top achievements
Rank 2
Robby Gunawan
Top achievements
Rank 1
OTMOP
Top achievements
Rank 2
Kiril Stanoev
Telerik team
Tony
Top achievements
Rank 2
Hugo Vladimir
Top achievements
Rank 2
Share this question
or