David na

David na

  • 1.5k
  • 202
  • 322

XamlParseException after changing mysql DB to postgres

Jan 21 2024 6:46 PM

Hello,

In my WPF prism MVVM project im using dapper and after migrating  DB from mysql to postgres, I started getting after login:
System.Windows.Markup.XamlParseException
with inner exception :
rgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection. Arg_ParamName_Name

However i found out that if I change couple of my data connection methods from async to sync, the program runs correctly.

Any suggestion what may be causing this exception? with mysql it worked fine async and with postgres it only works when i change it to sync.


Thanks :)


Answers (1)