A
Amr_Aly
Guest
Hello Everyone,
I faced this error not in a regular sequence , In client PC "Not a valid password" appears as a message box then press OK every thing is OK , But it is annoying i did not know what is the reason. And on my PC it occurs in random way also
The error in details
##
at System.Data.OleDb.OleDbConnection.Open()
at KMAStock.CustomerForm11.Button1_Click(Object sender, EventArgs e) in E:\Zain_Glass\KMAStock\CustomerForm11.vb:line 215
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(IntPtr 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 KMAStock.Form1.ToolStripMenuItem10_Click(Object sender, EventArgs e) in E:\Zain_Glass\KMAStock\Form1.vb:line 295
at System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)
at System.Windows.Forms.ToolStripMenuItem.OnClick(EventArgs e)
at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
at System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)
at System.Windows.Forms.ToolStripItem.FireEventInteractive(EventArgs e, ToolStripItemEventType met)
at System.Windows.Forms.ToolStripItem.FireEvent(EventArgs e, ToolStripItemEventType met)
at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.ToolStrip.WndProc(Message& m)
at System.Windows.Forms.MenuStrip.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(IntPtr 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 Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.OnRun()
at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.DoApplicationModel()
at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.Run(String[] commandLine)
at KMAStock.My.MyApplication.Main(String[] Args) in :line 81
at System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args)
at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()</ExceptionString></Exception></TraceRecord>
##
My connection String in a separate class called(Classes.vb)
Imports System.Data.OleDb
Module Classes
Public conn As OleDbConnection = Nothing
Public cmd, cmd1 As OleDbCommand
Public rdr As OleDbDataReader = Nothing
Public ds As DataSet
Public ds1 As DataSet
Public ds2 As DataSet
Public ds3 As DataSet
Public ds4 As DataSet
Public ds5 As DataSet
Public da As OleDbDataAdapter
Public da1 As OleDbDataAdapter
Public da2 As OleDbDataAdapter
Public da3 As OleDbDataAdapter
Public da4 As OleDbDataAdapter
Public da5 As OleDbDataAdapter
Public dt As DataTable
Public dt1 As DataTable
Public dt2 As DataTable
Public dt3 As DataTable
Public dt4 As DataTable
Public dt5 As DataTable
Public dtSource As DataTable
Public PageCount As Integer
Public maxRec As Integer
Public pageSize As Integer
Public currentPage As Integer
Public recNo As Integer
'Public cs As String =
"Provider=Microsoft.ACE.OLEDB.12.0;Data Source=|DataDirectory|\DataBaseFile\Stock.accdb;Persist Security Info=False;"
'for my pc
Public cs As String = "Provider=Microsoft.ACE.OLEDB.12.0;Data Source=\\KMA18214\Share\Stock.accdb;Persist Security Info=True;jet oledb:database password=*******"
'Public cs As String = "Provider=Microsoft.ACE.OLEDB.12.0;Data Source=\\KMA18214\Share\Stock.accdb;jet oledb:database password=*****"
'For build the project on client pc
'Public cs As String = "Provider=Microsoft.ACE.OLEDB.12.0;Data Source=\\192.168.1.5\Share\Stock.accdb;jet oledb:database password=*****"
End Module
I think the Connection String makes this error message occurs but my Application is already running well all the time , But suddenly this message appears i don't know why ?
any suggestions
Thanks in advance ..........................
Regards From Amr_Aly
Continue reading...
I faced this error not in a regular sequence , In client PC "Not a valid password" appears as a message box then press OK every thing is OK , But it is annoying i did not know what is the reason. And on my PC it occurs in random way also
The error in details
##
at System.Data.OleDb.OleDbConnection.Open()
at KMAStock.CustomerForm11.Button1_Click(Object sender, EventArgs e) in E:\Zain_Glass\KMAStock\CustomerForm11.vb:line 215
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&amp; m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message&amp; m)
at System.Windows.Forms.ButtonBase.WndProc(Message&amp; m)
at System.Windows.Forms.Button.WndProc(Message&amp; m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message&amp; m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message&amp; m)
at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG&amp; msg)
at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr 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 KMAStock.Form1.ToolStripMenuItem10_Click(Object sender, EventArgs e) in E:\Zain_Glass\KMAStock\Form1.vb:line 295
at System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)
at System.Windows.Forms.ToolStripMenuItem.OnClick(EventArgs e)
at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
at System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)
at System.Windows.Forms.ToolStripItem.FireEventInteractive(EventArgs e, ToolStripItemEventType met)
at System.Windows.Forms.ToolStripItem.FireEvent(EventArgs e, ToolStripItemEventType met)
at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)
at System.Windows.Forms.Control.WmMouseUp(Message&amp; m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message&amp; m)
at System.Windows.Forms.ScrollableControl.WndProc(Message&amp; m)
at System.Windows.Forms.ToolStrip.WndProc(Message&amp; m)
at System.Windows.Forms.MenuStrip.WndProc(Message&amp; m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message&amp; m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message&amp; m)
at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG&amp; msg)
at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr 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 Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.OnRun()
at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.DoApplicationModel()
at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.Run(String[] commandLine)
at KMAStock.My.MyApplication.Main(String[] Args) in :line 81
at System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args)
at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()</ExceptionString></Exception></TraceRecord>
##
My connection String in a separate class called(Classes.vb)
Imports System.Data.OleDb
Module Classes
Public conn As OleDbConnection = Nothing
Public cmd, cmd1 As OleDbCommand
Public rdr As OleDbDataReader = Nothing
Public ds As DataSet
Public ds1 As DataSet
Public ds2 As DataSet
Public ds3 As DataSet
Public ds4 As DataSet
Public ds5 As DataSet
Public da As OleDbDataAdapter
Public da1 As OleDbDataAdapter
Public da2 As OleDbDataAdapter
Public da3 As OleDbDataAdapter
Public da4 As OleDbDataAdapter
Public da5 As OleDbDataAdapter
Public dt As DataTable
Public dt1 As DataTable
Public dt2 As DataTable
Public dt3 As DataTable
Public dt4 As DataTable
Public dt5 As DataTable
Public dtSource As DataTable
Public PageCount As Integer
Public maxRec As Integer
Public pageSize As Integer
Public currentPage As Integer
Public recNo As Integer
'Public cs As String =
"Provider=Microsoft.ACE.OLEDB.12.0;Data Source=|DataDirectory|\DataBaseFile\Stock.accdb;Persist Security Info=False;"
'for my pc
Public cs As String = "Provider=Microsoft.ACE.OLEDB.12.0;Data Source=\\KMA18214\Share\Stock.accdb;Persist Security Info=True;jet oledb:database password=*******"
'Public cs As String = "Provider=Microsoft.ACE.OLEDB.12.0;Data Source=\\KMA18214\Share\Stock.accdb;jet oledb:database password=*****"
'For build the project on client pc
'Public cs As String = "Provider=Microsoft.ACE.OLEDB.12.0;Data Source=\\192.168.1.5\Share\Stock.accdb;jet oledb:database password=*****"
End Module
I think the Connection String makes this error message occurs but my Application is already running well all the time , But suddenly this message appears i don't know why ?
any suggestions
Thanks in advance ..........................
Regards From Amr_Aly
Continue reading...