How to get the RAS demo utility working with the Connection Manager?

Last post 03-11-2008 16:43 by neil. 3 replies.
Page 1 of 1 (4 items)
Sort Posts: Previous Next
  • 03-10-2008 13:38

    How to get the RAS demo utility working with the Connection Manager?

    Hello,

     I'm trying to test out the RAS utility demo and can't get it working with the connection manager defined (#define SDF_CONMGR).  I have SDF 2.2 installed (not sure where these files should go).  I manually added all of these DLLs as references in the RAS demo project.  It compiles and deploys to the emulator, but then gives me the following error when it begins to run:

     An unhandled exception of type 'System.MissingMethodException' occurred in OpenNETCF.Net.dll

    Additional information: Can't find an Entry Point 'ConnMgrRegisterForStatusChangeNotification' in a PInvoke DLL 'cellcore.dll'

    What would be causing this?  It might be important to note that I'm using CE 6 R2 evalutation copy.  I'm not sure if R2 eval includes cellcore?

    Thanks,

    Dwayne

    Filed under:
  • 03-11-2008 5:15 In reply to

    • neil
    • OpenNETCF Staff
    • Top 10 Contributor
    • Joined on 07-30-2007
    • North Wales
    • Posts 1,110

    Re: How to get the RAS demo utility working with the Connection Manager?

    From what you say, cellcore.dll is included in CE 6 R2 because we have a check in the ConnectionManager constructor that looks for cellcore and throws an exception if it is not found.

    Remember that the Connection Manager is a Windows Mobile only technology and that is why you are getting the MissingMethodException. I'm downloading CE 6 R2 now and will review how we detect supported platforms in the ConnectionManager constructor.
     

  • 03-11-2008 12:41 In reply to

    Re: How to get the RAS demo utility working with the Connection Manager?

    Neil,

    Thank you for your help.  So, basically I shouldn't think of using the Connection Manager on Win CE?  (according to what you're saying here: http://community.opennetcf.com/forums/t/10533.aspx)?

    On a side note, is it possible to run the RAS utility on a PC?  Or is it written for .Net CF only?  My target is headless and I think I'd better understand this program by using it on something with a screen. 

    Thanks,

    Dwayne 

  • 03-11-2008 16:43 In reply to

    • neil
    • OpenNETCF Staff
    • Top 10 Contributor
    • Joined on 07-30-2007
    • North Wales
    • Posts 1,110

    Re: How to get the RAS demo utility working with the Connection Manager?

    Under Windows CE, the Connection Manager does not exist, so considering using it for a CE-based project is a moot point.

    As for using the RAS library under Windows XP, Vista or any of the Server SKUs, that is not possible as the RAS library makes liberal use of P/Invoke to APIs that not available under the desktop Windows variants.  

Page 1 of 1 (4 items)