ThinkGeo.com    |     Documentation    |     Premium Support

ZoomLevelSet and .NET V4.8

MapSuite Team,

I have a few .NET V4.7.2 Projects that use WmsServer.dll as show below:
image

These projects all reference ZoomLevelSet of MapConfiguration.

I am attempting to convert these projects to .NET V4.8. However, ZoomLevelSet is not a member of MapConfiguration under .NET V4.8 as shown below:
image

Below are the Details for WmsServer.dll that the projects use.

Is there another reference that has to be added to the projects? Below are the using statements.

Appreciate any advise you provide.

Regards,
Dennis Berry
OriStarMapping, Inc.

using ThinkGeo.MapSuite;
using ThinkGeo.MapSuite.Drawing;
using ThinkGeo.MapSuite.Layers;
using ThinkGeo.MapSuite.Shapes;
using ThinkGeo.MapSuite.Styles;
using ThinkGeo.MapSuite.Wpf;

using ThinkGeo.MapSuite.WmsServer;

Here is the Visual Studio compile error:

MapConfiguration’ does not contain a definition for ‘ZoomLevelSet’ and no accessible extension method ‘ZoomLevelSet’ accepting a first argument of type ‘MapConfiguration’ could be found (are you missing a using directive or an assembly reference?)

Hi @Dennis,

This is a strange issue and I don’t have any explanation for it. the .NET version should not affect the properties you see. I assume you’re referencing the same WmsServer.dll in each screenshot, correct?

If so, can you email the dll to support@thinkgeo.com and we can dig into it a little bit and see if we can find out what’s going on.

Thanks,
John

hi John,

You asked exactly the right question. No, the two projects are not referencing the same version of WmsServer.dll.

The .NET V4.8 project referenced the following, which is out-of-date:

Changing the reference to the latest WmsServer.dll resolved the issue.

Stupid mistakes that have a simple resolution are the best.

Thanks,
Dennis

Thanks @Dennis, glad we got it figured out. Good luck!

John

Everything compiled and it works just fine.

Thanks again,
Dennis

Great! Glad everything is up and running.