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

Exceptions

12 Answers 92 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Michael
Top achievements
Rank 1
Michael asked on 25 Nov 2012, 08:38 PM
Just trying to add a radGauge control to a grid... throws this and breaks everything....

 at System.Runtime.InteropServices.Marshal.CLSIDFromProgID(String progId, Guid& clsid)
   at System.Runtime.InteropServices.Marshal.GetActiveObject(String progID)

12 Answers, 1 is accepted

Sort by
0
Victor
Telerik team
answered on 26 Nov 2012, 11:54 AM
Hello Michael,

Thanks for writing.
Please make sure that you are referencing the correct assemblies. Try and restart visual studio. This stack trace looks like it may be caused by mismatched references.

Please write again if you have other questions.

Regards,
Victor
the Telerik team
Have a suggestion or face a problem - you can use the Ideas & Feedback portal to submit ideas, feedback and vote for them.
0
Michael
Top achievements
Rank 1
answered on 27 Nov 2012, 04:26 AM
What are the correct Assemblies. for the RadGauge.
I would say only about 5 of the controls will drop onto the windows phone form.
The rest Throw exceptions and break.

COMException: Invalid class string (Exception from HRESULT: 0x800401F3 (CO_E_CLASSSTRING))
at System.Runtime.InteropServices.Marshal.CLSIDFromProgID(String progId, Guid& clsid)
   at System.Runtime.InteropServices.Marshal.GetActiveObject(String progID)

Clearly there is something i'm missing, I"M working with windows phone 8.

any thoughts?
0
Victor
Telerik team
answered on 27 Nov 2012, 08:26 AM
Hello Michael,

The correct assemblies for RadGauge would be Telerik.Windows.Core.dll, Telerik.Windows.Controls.Primitives.dll and Telerik.Windows.Controls.DataVisualization.dll.

Please make sure that you are referencing the assemblies for the correct platform, WP8 in your case.
Also, please remove any previous versions of RadControls for Windows Phone if there are any installed.

Can you please give a partial list of the components that cause the exception so that I can test them?

I am looking forward to your reply.

Kind regards,
Victor
the Telerik team
Have a suggestion or face a problem - you can use the Ideas & Feedback portal to submit ideas, feedback and vote for them.
0
Michael
Top achievements
Rank 1
answered on 28 Nov 2012, 03:15 AM
OK I added the 3 files you listed to the references.
I am starting with a windows phone 8 basic project.
When I drop an RadGauge control onto the form, it breaks my Visual main.page.xmal view.
I have to undo the control.  (perhaps it wasn't ment to be dropped onto a form like a textbox control?)

I can see them briefly before they break my display.. I can see the control on the form for a split second before the exception breaks it.
Also note: the controls that work do so without adding any references.. thye just worked right after I installed them and added them to my toolbox. (They did not auto populate)


Controls that work by dropping onto the emulator (visual screen)

RadBulletGraph

RadTextBox

RadConversionView
RadCustomHubTile RadDataBoundListBox MosaicTile RadCustomHubTile RadCycleHubTile RadDataBoundListBox RadDataBoundListBoxItem RadDataBoundListBoxItem

RadImageButton

RadTimePicker

 

Controls that fail
RadAutoCompleteBox
RadCalander

RadDataForm

RadGuage

RadTimeSelector

 

Hopefully this helps. Sorry about my formatting issues..

 

 

 

 

 

 

0
Victor
Telerik team
answered on 30 Nov 2012, 01:18 PM
Hello Michael,

There could theoretically be an issue with our design-time assemblies which use a COM library. However I am not able to reproduce this exception in any way.
Please indicate which version of Visual Studio are yo using.

I am looking forward to your reply.

All the best,
Victor
the Telerik team
Have a suggestion or face a problem - you can use the Ideas & Feedback portal to submit ideas, feedback and vote for them.
0
Victor
Telerik team
answered on 30 Nov 2012, 01:23 PM
Hello Michael,

Also, if you can live without the design-time galleries for RadChart and RadGauge, you can try and move the design-time assemblies to some temporary directory. They should be located in a "design" folder that is on the same level as the controls assemblies. Just rename it to "tmp" or something. This way, Visual Studio will not lead them and we will see if they are the reason for the exception.

Regards,
Victor
the Telerik team
Have a suggestion or face a problem - you can use the Ideas & Feedback portal to submit ideas, feedback and vote for them.
0
Michael
Top achievements
Rank 1
answered on 01 Dec 2012, 05:34 PM
Using Visual Studio Express 2012 for windows phone.
Most of the controls work just not the ones I want to use LOL.
Doesn't work with the new Microsoft patch either.
0
Victor
Telerik team
answered on 03 Dec 2012, 07:33 AM
Hello Michael,

Thanks for writing.
Did you try removing the design-time assemblies?

Greetings,
Victor
the Telerik team
Have a suggestion or face a problem - you can use the Ideas & Feedback portal to submit ideas, feedback and vote for them.
0
mo2011ti
Top achievements
Rank 1
answered on 03 Dec 2012, 09:42 AM

Hi,

I'm using Visual Studio 2012 for Windows Phone 8 Project, I add all the required dlls of telerik and
I'm also having this problem when i'm trying to use RadCalendar
  <telerikInput:RadCalendar HorizontalAlignment="Left" Margin="113,329,0,0" VerticalAlignment="Top"/>
I get this error:
NullReferenceException: Object reference not set to an instance of an object.
Thanks
Moti

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()
0
Victor
Telerik team
answered on 04 Dec 2012, 08:41 AM
Hi Mordehay,

Thanks for writing.
I am afraid that this looks like an Expression Blend bug. If our controls have something to do with this, the stack trace does not give us any information to work with. Please try reporting this issue to Microsoft, their code should, under no circumstances, throw a NullReferenceException.

Kind regards,
Victor
the Telerik team
Have a suggestion or face a problem - you can use the Ideas & Feedback portal to submit ideas, feedback and vote for them.
0
Test
Top achievements
Rank 1
answered on 21 Jan 2013, 09:48 AM
I have the same problem with RadCartesianChart in version 2012.3.1311.3040.
0
Test
Top achievements
Rank 1
answered on 22 Jan 2013, 02:42 AM
I use Visual Studio Express 2012 for windows phone 8
Tags
General Discussions
Asked by
Michael
Top achievements
Rank 1
Answers by
Victor
Telerik team
Michael
Top achievements
Rank 1
mo2011ti
Top achievements
Rank 1
Test
Top achievements
Rank 1
Share this question
or