[ MarkoBalkan @ 15.05.2008. 14:07 ] @
imam problem oko spajanja na postgresql.
port za bazu postgres je 1000.koristim Npgsql
string glasi
"Server=localhost;Port=1000;Database=postgres;Userid=marko;Password=mojpassword;"


meni javi grešku da ne može naći file.
evo cijelog izvještaja greške.
ovo radim u vb.netu.a baza je 8.3.

System.IO.FileNotFoundException: Could not load file or assembly 'Mono.Security, Version=2.0.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756' or one of its dependencies. The system cannot find the file specified.
File name: 'Mono.Security, Version=2.0.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756'
at Npgsql.NpgsqlConnection..ctor(String ConnectionString)
at WindowsApplication10.Form1.Button1_Click(Object sender, EventArgs e) in C:\Documents and Settings\Marko\Local Settings\Application Data\Temporary Projects\WindowsApplication10\Form1.vb:line 10
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ButtonBase.WndProc(Message& m)
at System.Windows.Forms.Button.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

[ jablan @ 15.05.2008. 14:35 ] @
Jesi li siguran da ti treba MONO varijanta teg npgsql?
[ MarkoBalkan @ 15.05.2008. 15:13 ] @
pa ubacio sam normalni driver za .net, a ne za mono.
Npgsql2.0beta3-bin-EntityFrameworkBeta3.zip

skinuo sam beta4 ubacio još i mono i sad radi.
[ Bojan Komazec @ 18.05.2008. 18:00 ] @
U Bin direktorijumu tvog projekta se mora uz Npgsql.dll nalaziti i Mono.Security.dll jer tvoj Npgsql.dll (iako kompajliran za Windows) koriti taj dll (koji bazicno pripada Mono Frameworku).

Skini i unzipuj Npgsql2.0beta3-src.zip.

Mono.Security.dll se moze naci u ..\Npgsql2.0beta3-src\Npgsql2\lib\ direktorijumu nakon raspakivanja.