2
Vote

IDccMan.AutoconnectEnable() not implemented on Win 7/x64

description

I am working on a Mobile Mobile app MDM.exe which was created in 2007 using visual Studio 2005 (c# and has been running on XP 32 bit during that time.

the app needs to be converted to Windows 7 64 bit the source code was not available however I was able to use justComplie to decode the MDM.exe file and now have access to the code using VS2008 .

The source code had a version a 2006 version of OpenNETCF.Desktop.Communication.dll so I removed this reference from the project and added the current version on the site but am still getting the following error when trying to connect to a device.

System.NotImplementedException: The method or operation is not implemented.
at OpenNETCF.Desktop.Communication.IDccMan.ConnectNow()
at OpenNETCF.Desktop.Communication.ActiveSync.ConnectNow()
at MDM.Form1.bnConnect_Click(Object sender, EventArgs e)
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ButtonBase.WndProc(Message& m)
at System.Windows.Forms.Button.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
************* Loaded Assemblies **************
mscorlib
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.5420 (Win7SP1.050727-5400)

CodeBase: file:///C:/Windows/Microsoft.NET/Framework64/v2.0.50727/mscorlib.dll

MDM
Assembly Version: 2.2.2.0
Win32 Version: 2.2.2

CodeBase: file:///C:/Program%20Files%20(x86)/JLP/MDM/MDM.exe

System
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.5420 (Win7SP1.050727-5400)

CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll

System.Windows.Forms
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.5420 (Win7SP1.050727-5400)

CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll

System.Drawing
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.5458 (Win7SP1GDR.050727-5400)

CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll

OpenNETCF.Desktop.Communication
Assembly Version: 2.9.5160.36757
Win32 Version: 2.9.5160.36757

CodeBase: file:///C:/Program%20Files%20(x86)/JLP/MDM/OpenNETCF.Desktop.Communication.DLL

System.DirectoryServices
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.5420 (Win7SP1.050727-5400)

CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.DirectoryServices/2.0.0.0__b03f5f7f11d50a3a/System.DirectoryServices.dll

System.Configuration
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.5420 (Win7SP1.050727-5400)

CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll

System.Xml
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.5420 (Win7SP1.050727-5400)

CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll

Accessibility
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/Accessibility/2.0.0.0__b03f5f7f11d50a3a/Accessibility.dll

Within the source code FORM1 (where you connect to a mobile Motorola device this is the code which generates the error . It should still work on W7 but I am baffled as to why it is not working so I would really appreciate some advice





public Form1()
    {
        this.InitializeComponent();
        try
        {
            this.m_rapi = new RAPI();
            this.m_rapi.ActiveSync.ConnectAsGuestOnly = true;
            this.m_rapi.ActiveSync.AutoConnect = false;
            this.m_rapi.ActiveSync.Active += new ActiveHandler(this.ActiveSync_Active);
            this.m_rapi.ActiveSync.Disconnect += new DisconnectHandler(this.ActiveSync_Disconnect);
            this.m_rapi.ActiveSync.Listen += new ListenHandler(this.ActiveSync_Listen);
            this.m_rapi.ActiveSync.Answer += new AnswerHandler(this.ActiveSync_Answer);
            this.m_rapi.RAPIConnected += new RAPIConnectedHandler(this.m_rapi_RAPIConnected);

this.m_rapi.RAPIDisconnected += new RAPIConnectedHandler(this.m_rapi_RAPIDisconnected);

file attachments

comments

RichardJLP wrote Feb 17, 2014 at 10:49 AM

I've attached the FORM1.cs file if that helps

wrote Nov 20, 2014 at 2:58 PM

Horazius wrote Nov 20, 2014 at 3:01 PM

We have exactly the same issue here. Do you have a solution now?