Exceptions

13 posts, 0 answers
  1. Michael
    Michael avatar
    4 posts
    Member since:
    Nov 2012

    Posted 25 Nov 2012 Link to this post

    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)
  2. Victor
    Admin
    Victor avatar
    1351 posts

    Posted 26 Nov 2012 Link to this post

    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.
  3. DevCraft banner
  4. Michael
    Michael avatar
    4 posts
    Member since:
    Nov 2012

    Posted 26 Nov 2012 Link to this post

    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?
  5. Victor
    Admin
    Victor avatar
    1351 posts

    Posted 27 Nov 2012 Link to this post

    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.
  6. Michael
    Michael avatar
    4 posts
    Member since:
    Nov 2012

    Posted 27 Nov 2012 Link to this post

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

     

     

     

     

     

     

  7. Victor
    Admin
    Victor avatar
    1351 posts

    Posted 30 Nov 2012 Link to this post

    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.
  8. Victor
    Admin
    Victor avatar
    1351 posts

    Posted 30 Nov 2012 Link to this post

    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.
  9. Michael
    Michael avatar
    4 posts
    Member since:
    Nov 2012

    Posted 01 Dec 2012 Link to this post

    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.
  10. Victor
    Admin
    Victor avatar
    1351 posts

    Posted 03 Dec 2012 Link to this post

    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.
  11. moti
    moti avatar
    27 posts
    Member since:
    May 2011

    Posted 03 Dec 2012 Link to this post

    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()
  12. Victor
    Admin
    Victor avatar
    1351 posts

    Posted 04 Dec 2012 Link to this post

    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.
  13. Test
    Test avatar
    2 posts
    Member since:
    Jan 2013

    Posted 21 Jan 2013 Link to this post

    I have the same problem with RadCartesianChart in version 2012.3.1311.3040.
  14. Test
    Test avatar
    2 posts
    Member since:
    Jan 2013

    Posted 21 Jan 2013 Link to this post

    I use Visual Studio Express 2012 for windows phone 8
Back to Top
DevCraft banner