Assembly Version for CLI Based Monitor

4 posts, 0 answers
  1. Christopher
    Christopher avatar
    3 posts
    Member since:
    Mar 2012

    Posted 30 Sep 2014 Link to this post

    We are calling a .Net assembly through CLI from a C++ application. The .Net assembly has Analytics integrated, but always gets a version of 1.0.0.0, regardless of the version of the actual assembly. Can anyone help us set the version correctly so that we can track it properly in Analytics?

    Thanks,
    Chris
  2. Thomas.Andersen@telerik.com
    Admin
    Thomas.Andersen@telerik.com avatar
    42 posts

    Posted 02 Oct 2014 Link to this post

    Hello,

    Are you manually supplying a version number to the monitor or are you letting the monitor handle this? The monitor uses GetEntryAssembly or GetCallingAssembly to retrieve the version number. So in your case the immediate caller has version 1.0.0.0. Could there be more than one assembly in the call chain?

    Regards,
    Thomas.Andersen@telerik.com
    Telerik
     
    EQATEC Application Analytics is now Telerik Analytics. For more information on the new name, plus what's new in Telerik Analytics, please, check out the Analytics Service Announcement.
     
  3. Christopher
    Christopher avatar
    3 posts
    Member since:
    Mar 2012

    Posted 02 Oct 2014 in reply to Thomas.Andersen@telerik.com Link to this post

    I couldn't find a mechanism to manually provide a version number to the .NET based version of Analytics? Providing it manually would work fine if we can?

    We have a C++/MFC application calling a C++/CLI DLL calling a C#/.NET assembly with the Analytics incorporated. All 3 assemblies have set version numbers, but Analytics is still getting 1.0.0.0.

    Thanks,
    Chris
  4. Thomas.Andersen@telerik.com
    Admin
    Thomas.Andersen@telerik.com avatar
    42 posts

    Posted 03 Oct 2014 Link to this post

    Hi Chris

    Instead of passing in a productkey to the create method you can pass a settings object. Take a look here and here.

    It is very odd that you keep getting 1.0.0.0. To debug this you could try to create dummy assembly call it from the same place and inside it call GetEntryAssembly and GetCallingAssembly and see what results you get.

    I hope this helps.

    Regards,
    Thomas.Andersen@telerik.com
    Telerik
     
    EQATEC Application Analytics is now Telerik Analytics. For more information on the new name, plus what's new in Telerik Analytics, please, check out the Analytics Service Announcement.
     
Back to Top