locked
Running a windows 8 app on windows 8.1 with visual studio 2013 throws an exception RRS feed

  • Question

  • I just migrated my windows 8 app to 8.1 and when i'm running it it throws an exception on each an every line that is using a static constructor (ObservableCollection,lists) =An exception of type 'System.TypeInitializationException' occurred in UNIFILE.exe but was not handled in user code  .

    how do i fix this problem because it works fine with windows 8.


    19karabo91

    Wednesday, October 16, 2013 12:10 PM

All replies

  • Can you please explain the problem more clearly? I'm not sure what exactly your code is that's failing.

    --Rob

    Wednesday, October 16, 2013 10:38 PM
    Moderator
  • public static List<uniFileStructure> uniFileObjects;
    this is my constructor everywhere i'm trying to use it it throws an exception (An exception of type 'System.TypeInitializationException' occurred in mscorlib.dll but was not handled in user code)

    19karabo91

    Thursday, October 17, 2013 6:24 AM
  • public static List<uniFileStructure> uniFileObjects;
    this is my constructor everywhere i'm trying to use it it throws an exception (An exception of type 'System.TypeInitializationException' occurred in mscorlib.dll but was not handled in user code)

    19karabo91


    And what the InnerException says ?
    Thursday, October 17, 2013 9:03 AM