Sample project integration

I am trying to use following sample project in Milestone Smart Client. I downloaded the project, compiled it and copied dll and plugin.def and pasted it in folder %Program Files%\Milestone\MIPPlugins\LocationView, but I get error in management client no implementation of get_Icon method. I tried adding another plugin by just adding those 2 tiles to folder but that one just dosent show up when I open smart client. I am just trying to figure this out, so if anyone is willing to help or even better write actually good guide unlike those in the documentation, I would greatly appreciate it

https://github.com/milestonesys/mipsdk-samples-plugin/tree/main/LocationView

First let me recommend this guide: https://developer.milestonesys.com/s/article/debugging-techniques-for-Smart-Client-plugins

Perhaps the guide will lead you to solve the issue, if not..

You mention one sample but have a link to another sample. The SCToolbarPlugin should not load in the Management Client, neither should LocationView plugin. To me it is a mystery that you observe Management Client giving an error.

Describe what you do using Smart Client and/or Management Client. Describe if the error happens at start up or there are some steps before the error is seen. Please share the full and exact error you see.

I edited the post to say LocationView for the folder location, that is the plugin I’m trying to use. I just pasted dll and .def in the folder and tried to open management client and smart client to see if it’s loaded, I’m not sure where should I look for it, I am guessing smart client but doing this just to be safe. When I open smart client and go about, I dont see the name of the plugin there in loaded plugins.

Error the the management client gives me is:

"TITLE: MIPPluginLoad (LocationView.dll)

------------------------------

Method ‘get_Icon’ in type ‘LocationView.Client.LocationViewViewItemPlugin’ from assembly ‘LocationView, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null’ does not have an implementation.

------------------------------

ADDITIONAL INFORMATION:

Method ‘get_Icon’ in type ‘LocationView.Client.LocationViewViewItemPlugin’ from assembly ‘LocationView, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null’ does not have an implementation.

"

Could you please change the plugin.def file?

Instead of-

change it to-

It must be a mistake that the plugin is loaded in Management Client as it is not developed in a way where it should work in the Management Client.

I did the test. For me LocationView does load in the Management Client without giving error. It is only visible in the Help -About box, not else where in the Management Client UI.

For my further investigation, what version is your Management Client? Are you building the plugin using the newest NuGet version (24.1)?

I remove Administrator from dll. I dont see it in Help - About. It’s built on the newest nuget version, Management client is on version 23.2a

I cannot reproduce the issue. I suspect that either you do not have the newest sample or are not building with the newest NuGet..

About the NuGet first. In your build output (..\LocationView\bin\Debug) there is a VideoOS.Platform.dll, if you inspect it (file properties) does it have version 24.1.11269.1? (If not, what is the version?)

Did you get the sample from https://github.com/milestonesys or did you get it in another way?

It is that version. I got the sample from github yes

I am sorry that I cannot reproduce, in this situation I’d like a clarifying indication from you. With the change I suggest for plugin.def does it work for you? (No sight in Management Client, where it is not supposed to show, but works as expected in Smart Client..)

I now have a better idea what is causing this error mentioning ‘get_Icon’. If you have any issue still please see this thread - https://developer.milestonesys.com/s/question/0D5bH00000SExBTSA1/exception-source-method-geticon

I figured out myself that I should download earlier versions of plugins. But now, I can load for example analitics overview but I still can’t use LocationVIew and I dont know why

If you enable and see Smart Client logs is it still the same error?

If it is still the same you likely still the use newer code or doesn’t get the dll you build copied or something else ..

If you get something else let us know what you observe.

Where can I see those logs? I changed for it to load again in Management client along with Smart client and it didnt show the error this time. I dont get any errors

For logging and so much more I prefer to give you this link: https://developer.milestonesys.com/s/article/debugging-techniques-for-Smart-Client-plugins

and

https://supportcommunity.milestonesys.com/KBRedir?art=000033605&lang=en_US

I fixed it. I added files to event and smart client folders and all is working now