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

Assembly Version for CLI Based Monitor

3 Answers 74 Views
Monitor integration
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Christopher
Top achievements
Rank 1
Christopher asked on 30 Sep 2014, 05:00 PM
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

3 Answers, 1 is accepted

Sort by
0
Thomas.Andersen@telerik.com
Telerik team
answered on 02 Oct 2014, 06:48 AM
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.
 
0
Christopher
Top achievements
Rank 1
answered on 03 Oct 2014, 12:05 AM
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
0
Thomas.Andersen@telerik.com
Telerik team
answered on 03 Oct 2014, 12:52 PM
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.
 
Tags
Monitor integration
Asked by
Christopher
Top achievements
Rank 1
Answers by
Thomas.Andersen@telerik.com
Telerik team
Christopher
Top achievements
Rank 1
Share this question
or