Exception thrown while debugging with VS2019 when loading SmartMap.

Dear Forum,

Lately while developing our plugin, we started getting this exception in the Smart Client while debugging the smart client with Visual Studio 2019.

(Start external program: [C:\Program](file:C:/Program) Files\Milestone\XProtect Smart Client\Client.exe)

I have tried remove all plugins from MIPPlugins folder and this is also happens.

************** Inner Exception **************

Exception type:System.IO.FileNotFoundException

Exception message:Could not load file or assembly ‘ThinkGeo.MapSuite.ProductCenter, Version=10.0.0.0, Culture=neutral, PublicKeyToken=0828af5241fb4207’ or one of its dependencies. The system cannot find the file specified.

Exception source:ThinkGeo.MapSuite

Exception Target Site: ShowProductCenter

at ThinkGeo.MapSuite.ExtendedHelper.ShowProductCenter()

at ohM=.XRQ=.YhQ=(Boolean needToShowProductCenter)

at ThinkGeo.MapSuite.ValidatorHelper.CheckStatus()

at ThinkGeo.MapSuite.ValidatorHelper.CheckObjectIsNotNull(Object parameterObject, String parameterName)

at ThinkGeo.MapSuite.GeoCollection`1.set_Item(String key, T value)

at VideoOS.RemoteClient.Plugin.GisMap.ThinkGeoMap.ThinkGeoWpfMap..ctor()

… etc

************** System Info **************

Date and time: 8/3/2020 10:45:03 AM

Machine Name: MILESTONESERVER

Processors count: 6

OS version: Microsoft Windows NT 6.2.9200.0

64 bit OS: True

64 bit process: True

IP address: ****************

Current user: MILESTONESERVER\Administrator

is there some fix for this matter? how can i track the exception origin?

Thank you,

Or

The Smart Client Smart Map is using a functionality that requires a license when debugging.

To workaround this requirement please do one of two:

  1. Make sure you start the debug Smart Client with no Smart Map views open.

  2. Instead of starting the Smart Client directly use the “Attach to Process” option of Visual Studio Debug instead.

Thank you very much, that solved the problem :+1: