[Resolved]please help this poor boy....
I hve done a program that has created a exe file itself. wanted to run on my other computer without vb.net but with .net framework. However the moment i run this exe file, those that i have a database in the form with show me errors... can anyone help me on hw to make sure that those form with database is able to run under exe file condition? Thanks in advance :)
Re: please help this poor boy....
uuh whats the error
youre not copying your database to the other computer?
Re: please help this poor boy....
Error: An Unhandled exception has occurred in your application.
These are the details shown:
System.Data.OleDb.OleDbException: 'C:\CSS Mini Project\XYZ Resorts\bin\XYZ.mdb' is not a valid path. Make sure that the path name is spelled correctly and that you are connected to the server on which the file resides.
at System.Data.OleDb.OleDbConnection.ProcessResults(Int32 hr)
at System.Data.OleDb.OleDbConnection.InitializeProvider()
at System.Data.OleDb.OleDbConnection.Open()
at System.Data.Common.DbDataAdapter.QuietOpen(IDbConnection connection, ConnectionState& originalState)
at System.Data.Common.DbDataAdapter.FillFromCommand(Object data, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior)
at System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior)
at System.Data.Common.DbDataAdapter.Fill(DataSet dataSet)
at XYZ_Resorts.RoomList.RoomList_Load(Object sender, EventArgs e) in C:\CSS Mini Project\XYZ Resorts\RoomList.vb:line 176
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.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
Re: please help this poor boy....
From where are you starting the EXE ?
From a Network Drive or from a local drive ?
Re: please help this poor boy....
Re: please help this poor boy....
The error say that ADO did'nt find the file 'C:\CSS Mini Project\XYZ Resorts\bin\XYZ.mdb',
Is the file is realy on the Comptuter that you are trying to run the App ?
or is the Path is written correctly ?
Re: please help this poor boy....
ya the path is written correctly... all i need to do now is to do the connection of database to my program in vb.net then i'll hve no problem runn'n the exe file.. However i wanted to run the exe file straight away without compile'n it in vb.net.. Is it possible?
Re: please help this poor boy....
Quote:
Originally Posted by jtVNB
ya the path is written correctly... all i need to do now is to do the connection of database to my program in vb.net then i'll hve no problem runn'n the exe file.. However i wanted to run the exe file straight away without compile'n it in vb.net.. Is it possible?
You just have to pick the Exe from the Bin folder of your project, and Any other file such as Dll, and copy them where you want.
Re: please help this poor boy....
Zakary, thanks a lot! My problem is solved!