TypeLoadException while "New ConnectionManager()"

Last post 12-08-2008 9:15 by neil. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 12-08-2008 8:31

    • raphk
    • Not Ranked
    • Joined on 12-08-2008
    • Posts 1

    TypeLoadException while "New ConnectionManager()"

     Hello everybody

     I am using the OpenNETCF to open a VPN connection on my handheld. I am using a LXE MX8 device with an application written in VB.Net. I use the SDF 2.3 and Compact Framework 2.0.

     While I try to initialize the connectionManager class i get a "TypeLoadeException":

     Private connMgr As ConnectionManager = New ConnectionManager()

     At this line the error appears.

     The error message i catch in my try block just says "TypeLoadException". I have the OpenNETCF.Net.dll bound to the solution and its installed on the handheld too. I even installed the SDF on the pocket PC.

    I already searched the web and the forum in here too, but didnt really got an answer. Does anyone of you know what I am doing wrong or what I forgot to do before using the ConnectionManager?

     

    Thank you for your help

     

     

  • 12-08-2008 9:15 In reply to

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

    Re: TypeLoadException while "New ConnectionManager()"

    The Connection Manager is a Windows Mobile-only API and relies on cellcore.dll being present on the device. We actually check for that in the constructor, so I'm not sure why it's throwing a TypeLoadException. Log a bug with as much detail as you can provide.

    Neil Cowburn
    OpenNETCF Consulting

      
Page 1 of 1 (2 items)