View Single Post

  #13 (permalink)  
Old 04-10-2008
faniemeiring faniemeiring is offline
Junior Member
White Belt
 
Join Date: Mar 2007
Posts: 3
Re: VS2008 b2 + Mappoint 2006

Quote:
Originally Posted by jovo View Post
Aha. Finally, some posts regarding the Visual Studio 2008, .NET Framework 3.5 and Mappoint 2006 issue. Where you are getting "Cross-threaded operation not permitted" or other failures when trying to load mappoint on a windows form on a Vista machine.

I have tried the solutions listed in these links and they work! Hooray, my application winforms which uses mappoint 2006 on the workstation now functions for my users.

Here are the links for everyone else

The Blog Entry
mappoint Re: Visual Studio 2008 And Mappoint problem

The Fix, due to NCOMPAT bit being set in the excutable
I'm just sayin' : NXCOMPAT and the C# compiler

Hope this helps everyone looking around.

Jovo
Thanks! The NXCOMPAT thing worked for us as well....
The commands to issue in a CMD prompt:
"C:\Program Files\Microsoft Visual Studio 9.0\VC\vcvarsall.bat"

"C:\Program Files\Microsoft Visual Studio 9.0\VC\bin\editbin.exe" /NXCOMPAT:NO "C:\development\myproject\bin\Release\*.dll"

"C:\Program Files\Microsoft Visual Studio 9.0\VC\bin\editbin.exe" /NXCOMPAT:NO "C:\development\myproject\bin\Release\*.exe"


Obviously it would be nice to just set this as an option in the IDE... Any ideas or suggestions from someone out there?

Thanks
Reply With Quote