.NET Components for Mobility

Could not load type InTheHand.WindowsMobile.PocketOutlook.OutlookSession

Last post 06-13-2007 12:07 AM by PeterFoot. 11 replies.
Page 1 of 1 (12 items)
Sort Posts: Previous Next
  • 02-25-2007 11:46 PM

    Could not load type InTheHand.WindowsMobile.PocketOutlook.OutlookSession

    Hi,

    I'm getting the could not load type error with my Mobile 2003 application. I've searched the forums and tried the other solutions without any luck. Here is the exact error: 

    Additional information: Could not load type InTheHand.WindowsMobile.PocketOutlook.OutlookSession from assembly InTheHand.WindowsMobile.PocketOutlook, Version=2.1.60828.9, Culture=neutral, PublicKeyToken=EA38CAA273134499.

    Does anyone know why this would be happening? I have these three DLLs referenced in my project:

    • InTheHand
    • InTheHand.WindowsMobile
    • InTheHand.WindowsMobile.PocketOutlook

    This is happening in the Emulator with the Professional Edition of InTheHand.

    *EDIT: I opened a test project where it worked earlier today with the Community Edition. It no longer works with the Professional Edition (it gives me the same error). Also, I've tried hard resetting the Emulated phone.

    Thanks,
    Eric

     

     

    Filed under: ,
  • 02-27-2007 4:32 PM In reply to

    Re: Could not load type InTheHand.WindowsMobile.PocketOutlook.OutlookSession

    Is the .cab file correctly deployed to the device? You'll be able to tell by checking the Settings > Remove Programs list on the device. Also did you uninstall the Community Edition installer from your development computer before installing the Professional Edition package?

    Peter

    Peter Foot
    Microsoft Device Application Development MVP
    www.peterfoot.net | www.inthehand.com
  • 03-03-2007 4:53 AM In reply to

    Re: Could not load type InTheHand.WindowsMobile.PocketOutlook.OutlookSession

    Yes, the cab is deploying. I looked in the Remove Programs dialog and it says that nothing at all is installed. I did uninstall the Community Edition before installing the Professional Edition. Would reinstalling the Professional Edition help perhaps? Humm.

     

  • 03-04-2007 12:33 AM In reply to

    Re: Could not load type InTheHand.WindowsMobile.PocketOutlook.OutlookSession

    Removing and re-installing may help. You could also check if manually running the .cab file if it's installed to the device correctly installs it (and it shows up in the remove programs dialog).

    Peter

    Peter Foot
    Microsoft Device Application Development MVP
    www.peterfoot.net | www.inthehand.com
  • 03-10-2007 4:10 AM In reply to

    Re: Could not load type InTheHand.WindowsMobile.PocketOutlook.OutlookSession

    Hi Peter, I've tried all of those things. I'm still getting this error :-\

    An unhandled exception of type 'System.TypeLoadException' occurred in Test.exe

    Additional information: Could not load type InTheHand.Environment2 from assembly InTheHand, Version=2.1.60828.7, Culture=neutral, PublicKeyToken=EA38CAA273134499.

    It's very strange. I looked for a replacement image file to use for the emulator but couldn't find it through all of Microsoft's downloads.

    Thanks,
    Eric 

  • 03-10-2007 4:17 AM In reply to

    Re: Could not load type InTheHand.WindowsMobile.PocketOutlook.OutlookSession

    Whooohooo! I reset the phone a few times and we're ready to rock. My app can now find the correct version of InTheHand.dll.Thanks

    Thanks for your help and patience!

    Eric 

  • 03-10-2007 6:32 PM In reply to

    Re: Could not load type InTheHand.WindowsMobile.PocketOutlook.OutlookSession

    Cool, glad you have it working now!

     Peter

    Peter Foot
    Microsoft Device Application Development MVP
    www.peterfoot.net | www.inthehand.com
  • 06-06-2007 6:08 AM In reply to

    Re: Could not load type InTheHand.WindowsMobile.PocketOutlook.OutlookSession

    This problem is back to haunt me. Same as before, it can't load a type in the InTheHand library. I have tried everything that I can think of to fix this :\

    Additional information: Could not load type InTheHand.Environment2 from assembly InTheHand, Version=2.1.60828.7, Culture=neutral, PublicKeyToken=EA38CAA273134499.

    It's happening in all of my projects running on the 2003 SmartPhone emulator. I even created a brand new project with just one line of code in the Form_Load that used the InTheHand library with the same result. This does not happen in the 2003 CE emulator, only the 2003 SmartPhone emulator.

    • I reset (hard and soft) the phone OS.
    • I installed InTheHand to the phone directly (and it shows up in Remove Programs)
    • I reinstalled the .NET Compact Framework
    • I deleted the bin/obj folders, relinked DLLs, recompiled, redeployed, re-everything.
    • I have tried this: http://forums.microsoft.com/msdn/showpost.aspx?postid=113878&siteid=1 and all of the PublicKeyTokens are correct.

    It worked fine for a few weeks. I can't think of anything that I've changed, installed or messed with that would have caused this issue to come back.

    I'm using the Professional Edition. Help!

    Thanks!
    Eric

  • 06-06-2007 8:43 AM In reply to

    Re: Could not load type InTheHand.WindowsMobile.PocketOutlook.OutlookSession

    What specific version of the library do you have? is it the latest v2.1 SP3 release?

    Peter

    Peter Foot
    Microsoft Device Application Development MVP
    www.peterfoot.net | www.inthehand.com
  • 06-06-2007 9:32 PM In reply to

    Re: Could not load type InTheHand.WindowsMobile.PocketOutlook.OutlookSession

    Yes, the SP3 release. Here is the version number copied from the Properties dialog: 2.1.60828.7

    Eric 

  • 06-10-2007 10:09 PM In reply to

    Re: Could not load type InTheHand.WindowsMobile.PocketOutlook.OutlookSession

    Okay, after a little bit of emotional pain and suffering... I've figured it out.

    When Visual Studio deploys the application, it's deploying the .CAB file but .NET isn't finding the DLLs inside of there. I connected to the emulated device with ActiveSync and then browsed to the Windows directory. Then, I copied the DLLs from InTheHand in to there. Now, .NET can find everything.

    Shouldn't .NET be able to find DLLs that are inside of .CAB files? 

  • 06-13-2007 12:07 AM In reply to

    Re: Could not load type InTheHand.WindowsMobile.PocketOutlook.OutlookSession

    The dlls should have been installed into the GAC on the device. When the CAB installed did it place a file InTheHand. with the .GAC extension into the Windows folder on the device?

    Peter

    Peter Foot
    Microsoft Device Application Development MVP
    www.peterfoot.net | www.inthehand.com
Page 1 of 1 (12 items)
Copyright © 2001-2008 In The Hand Ltd. All rights reserved. Terms of Use and Privacy Policy.