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)