Search found 2 matches

by sim
Fri 03 Jun 2011 08:52
Forum: dotConnect for PostgreSQL
Topic: Mobile version ArgumentException
Replies: 9
Views: 1780

It now works on my XP, but when I run it from the Windows Mobile 6.1 it gives me a "License not found" error when I click Connect.

As I mentioned, I'm using SharpDevelop (not VS) and I didn't see anywhere to add a license file.
by sim
Fri 03 Jun 2011 05:53
Forum: dotConnect for PostgreSQL
Topic: Mobile version ArgumentException
Replies: 9
Views: 1780

Mobile version ArgumentException

dotConnect for PostgreSQL 5.30 Mobile Trial
I compiled the DataReader sample using SharpDevelop. The application opened and when I changed the user name, I got the following error. This also happened when I changed the schema name. It allowed me to change the host without a problem.

I also could not find where the default arguments are stored.

System.ArgumentException: Connection parameter 'user id' is duplicated.
at Devart.Common.DbConnectionOptions.ParseConnectionString(Hashtable synonyms)
at Devart.Common.DbConnectionOptions..ctor(String connectionString, Hashtable synonyms, Boolean useFirstKeyValuePair)
at Devart.Data.PostgreSql.PgSqlConnectionOptions..ctor(String connectionString)
at Devart.Data.PostgreSql.z.m(String A_0, DbConnectionOptions A_1)
at Devart.Common.DbConnectionFactory.h(String A_0, DbConnectionOptions& A_1)
at Devart.Common.DbConnectionBase.set_ConnectionString(String value)
at Devart.Data.PostgreSql.PgSqlConnection.set_ConnectionString(String value)
at Devart.Data.PostgreSql.PgSqlConnection.aj(String A_0, Object A_1)
at Devart.Data.PostgreSql.PgSqlConnection.set_UserId(String value)
at Devart.Data.PostgreSql.ConnectForm.btConnect_Click(Object sender, EventArgs e) in c:\Program Files\Devart\dotConnect Mobile\PostgreSQL\Samples\Common\CS\ConnectForm.cs:line 201
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.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.
IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason, Int32 pvLoopData)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.RunDialog(Form form)
at System.Windows.Forms.Form.ShowDialog(IWin32Window owner)
at System.Windows.Forms.Form.ShowDialog()
at DataReader.MainForm.miConnect_Click(Object sender, EventArgs e) in c:\Program Files\Devart\dotConnect Mobile\PostgreSQL\Samples\DataReader\CS\MainForm.cs:line 239
at DataReader.MainForm.MainForm_Load(Object sender, EventArgs e) in c:\Program Files\Devart\dotConnect Mobile\PostgreSQL\Samples\DataReader\CS\MainForm.cs:line 175
at System.Windows.Forms.Form.OnLoad(EventArgs e)
at System.Windows.Forms.Form.OnCreateControl()
at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
at System.Windows.Forms.Control.CreateControl()
at System.Windows.Forms.Control.WmShowWindow(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.ContainerControl.WndProc(Message& m)
at System.Windows.Forms.Form.WmShowWindow(Message& m)
at System.Windows.Forms.Form.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.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
at System.Windows.Forms.SafeNativeMethods.ShowWindow(HandleRef hWnd, Int32 nCmdShow)
at System.Windows.Forms.Control.SetVisibleCore(Boolean value)
at System.Windows.Forms.Form.SetVisibleCore(Boolean value)
at System.Windows.Forms.Control.set_Visible(Boolean value)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.Run(Form mainForm)
at DataReader.MainForm.Main() in c:\Program Files\Devart\dotConnect Mobile\PostgreSQL\Samples\DataReader\CS\MainForm.cs:line 170