activa / iridium

Iridium - Lightweight .NET ORM for mobile, desktop and server applications
MIT License
22 stars 8 forks source link

Postgre database #3

Closed kappesLab closed 6 years ago

kappesLab commented 6 years ago

When I execute the code

string connect = "Host = localhost; Persist Security Info = True; Username = user; Password = abcde; Database = DemoDB";`
var dbContext = new PostgresContext(connect);`

I receive the following error messages:

'IridiumApp.exe' (CLR v4.0.30319: DefaultDomain): caricamento di 'C:\WINDOWS\Microsoft.Ne\assembly\GAC_32\mscorlib\v4.0_4.0.0.0__b77a5c561934e089\mscorlib.dll' completato. Caricamento dei simboli ignorato. Il modulo è ottimizzato e l'opzione del debugger 'Solo codice utente' è abilitata.
'IridiumApp.exe' (CLR v4.0.30319: DefaultDomain): caricamento di 'C:\Users\User\source\repos\IridiumTutorial\IridiumApp\bin\Debug\IridiumApp.exe' completato. Simboli caricati.
'IridiumApp.exe' (CLR v4.0.30319: IridiumApp.exe): caricamento di 'C:\Users\User\source\repos\IridiumTutorial\IridiumApp\bin\Debug\Iridium.DB.Postgres.dll' completato. Caricamento dei simboli ignorato. Il modulo è ottimizzato e l'opzione del debugger 'Solo codice utente' è abilitata.
Eccezione non gestita di tipo 'System.IO.FileNotFoundException' in Modulo sconosciuto.
Non è stato possibile caricare il file o l'assembly 'Iridium, Version=2.1.0.30936, Culture=neutral, PublicKeyToken=null' o una delle relative dipendenze. Impossibile trovare il file specificato.

I installed the "iridium" packages via NuGET, you could help me. For the sake of completeness, I also attach my simple project.

IridiumTutorial.zip

activa commented 6 years ago

There was an assembly reference mismatch in the nuget package for the Postgres driver. Please update the Iridium Postgres nuget package to the latest release (2.2.0.221). That should fix your issue.

kappesLab commented 6 years ago

Thank you very much, now is everything OK.