at System.Runtime.InteropServices.Marshal.CLSIDFromProgID(String progId, Guid& clsid)
at System.Runtime.InteropServices.Marshal.GetActiveObject(String progID)
12 Answers, 1 is accepted
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.
Victor
the Telerik team
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?
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.
Victor
the Telerik team
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
RadConversionViewRadCustomHubTile 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..
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.
Victor
the Telerik team
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
Most of the controls work just not the ones I want to use LOL.
Doesn't work with the new Microsoft patch either.
Thanks for writing.
Did you try removing the design-time assemblies?
Greetings,
Victor
the Telerik team
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()
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.
Victor
the Telerik team