开发者

Error when launching MapPoint 2006/2011 from C# .NET application on Windows Server 2008

I am running into an issue when attempting to use MapPoint libraries within our C# .NET application from a published app on a Windows Server 2008 machine. When instantiating the MapPoint.MapClass, I get the error:

"Your registry settings for this application were not copied correctly. To correct these settings, run Setup again for this application from the location where you originally installed it."

I am able to launch MapPoint just fine by itself outside of the app, the error only comes up when running the published app. We have multiple servers that clients run the app on, and the server 开发者_开发技巧running Server 2003 is able to launch MapPoint just fine. In addition, XP and Win7 machines also work fine. We also have a Foxpro application that also utilizes MapPoint's API installed on the 2008 server, and it doesn't have any issues.

MapPoint is included as a COM reference in the VS project referring to "Microsoft MapPoint 13.0 Object Library (North America) 8.3".

Looking online, I found a bunch of possible solutions, but nothing worked. I have tried:

  1. Uninstalling MapPoint 2006 entirely and manually removing all entries from the registry, then reinstalling
  2. Doing the same as 1 but then installing the trial of MapPoint 2011, resulting in the exact same error message
  3. Disabling UAC
  4. Setting MapPoint.exe's compatibility mode to Server 2003 and XP

Please let me know if anyone has any other suggestions.


it does sound like something is partially installing / being blocked. Is this a user issue? Ie. Can you install for all users?

it doesn't explain the MP2006 issue, but I would avoid the trial version for API work - the trial nag screen can be a problem. Eg. If you start the app hidden, the user cannot always see the nag screen to dismiss it.

You say you are instantiating a Map class. What about the Application (or _Application) class: you must have one of these to create the Map.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜