Locked new PosExplorer exception

  • Friday, July 13, 2012 10:55 AM
     
     

    Hi,

    I'm at the very beginning of developing in Pos.Net.

    I bought the Professional Guide to Pos.Net (a very good book) and I started with the first exercise.

    When I try to instantiate the PosExplorer class I receive a general exception...

    My example is the very simple. My Form, after the InitializeCmponent(), has

    myExplorer = new PosExplorer(this);

    and there is an exception.

    In my machine (WIN 7 64 BIT) I have VS2010 and only the 1.12 SDK installed.

    Someone can help me??
    Thanks in advance



All Replies

  • Friday, July 13, 2012 12:24 PM
    Answerer
     
     

    This is the POSReady forum. There is a POS for .NET forum available so you can get the most feedback - http://social.msdn.microsoft.com/Forums/en-US/posfordotnet/threads

    Do you have .NET 2.0 installed on the system?

    -Sean


    www.sjjmicro.com / www.seanliming.com / www.annabooks.com, Book Author - Pro Guide to WES 7, XP Embedded Advanced, Pro Guide to POS for .NET

  • Friday, July 13, 2012 12:42 PM
     
     Answered

    Thank you.

    In the meanwhile I found the problem.

    My Program Setting was on Framework 4.0. Downgrade to 3.5 it works....

    Thank you


  • Friday, July 13, 2012 6:54 PM
    Answerer
     
     

    Excellent. POS for .NET  requires .NET 2.0, thus applications cannot be created higher than 3.51.

    -Sean


    www.sjjmicro.com / www.seanliming.com / www.annabooks.com, Book Author - Pro Guide to WES 7, XP Embedded Advanced, Pro Guide to POS for .NET

  • Friday, July 13, 2012 10:32 PM
    Owner
     
     

    You can use POS for .NET with .NET 4.0 but need to set the security model in the config file of .NET 4.0.  POS for .NET uses a security model that has been disabled in .NET 4.0, but otherwise it should work just fine.

    Terry Warwick
    Microsoft