# Problems on Map control

**URL:** <https://mapwindow.discourse.group/t/problems-on-map-control/1291>\
**Category:** MapWinGIS\
**Created:** [March 28, 2022, 3:59pm UTC](https://mapwindow.discourse.group/t/problems-on-map-control/1291 "2022-03-28T15:59:48Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Green-bms](https://avatars.discourse-cdn.com/v4/letter/g/35a633/32.png) [@Green-bms](https://mapwindow.discourse.group/u/Green-bms)\
**Post date:** [March 28, 2022, 3:59pm UTC](https://mapwindow.discourse.group/t/problems-on-map-control/1291/1 "2022-03-28T15:59:49Z")

</div>

Hello,  
hi I’m developing a c # application in Visual Studio Community 2022 (Framework 4.8)  
I’d like to add a Map.  
I installed the last version of MapWinGis (5.3) 64 bit and I added Map Control.  
When I drag the map Control into Form, a popup windows with this error appears  
 ![error](https://global.discourse-cdn.com/free1/uploads/mapwindow1/original/1X/b986b98022710d526d923e26f86bfe4039eac173.png)  
Can you help me?  
Maybe It depends on VS2022 version?

---

<div class="post-metadata">

**Author:** ![jerryfaust](https://yyz2.discourse-cdn.com/free1/user_avatar/mapwindow.discourse.group/jerryfaust/32/378_2.png) [@jerryfaust](https://mapwindow.discourse.group/u/jerryfaust)\
**Post date:** [March 28, 2022, 5:05pm UTC](https://mapwindow.discourse.group/t/problems-on-map-control/1291/2 "2022-03-28T17:05:05Z")

</div>

Hello @Green-bms, and welcome.

At least historically, the Visual Studio IDE cannot host a 64-bit OCX. I’m not certain, but what I think you have to do (perhaps others know more detail, or you can search online) is to develop the application using the 32-bit OCX, then when you’re ready, build the 64-bit version. And to run the 64-bit version, you would have to unregister the 32-bit OCX and register the 64-bit OCX. You could optionally use a separate machine for your testing (one that has the 64-bit OCX registered) so that you don’t have to repeatedly swap between the two OCX’s.

I hope that helps.

Regards,  
Jerry.
