System.InvalidCastException was unhandled
Message="Unable to cast object of type 'System.Data.OleDb.OleDbException' to type 'System.Data.OleDb.OleDbDataReader'."
Source="Hotel Reservation System"
StackTrace:
at Hotel_Reservation_System.frRoomWindow.FillList() in Reservation System\My Forms\frRoomView.vb:line 73
at Hotel_Reservation_System.frRoomWindow.frRoomView_Load(Object sender, EventArgs e) in Reservation System\Hotel Reservation System\My Forms\frRoomView.vb:line 10
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.UnsafeNativeMethods.IntCreateWindowEx(Int32 dwExStyle, String lpszClassName, String lpszWindowName, Int32 style, Int32 x, Int32 y, Int32 width, Int32 height, HandleRef hWndParent, HandleRef hMenu, HandleRef hInst, Object pvParam)
at System.Windows.Forms.UnsafeNativeMethods.CreateWindowEx(Int32 dwExStyle, String lpszClassName, String lpszWindowName, Int32 style, Int32 x, Int32 y, Int32 width, Int32 height, HandleRef hWndParent, HandleRef hMenu, HandleRef hInst, Object pvParam)
at System.Windows.Forms.NativeWindow.CreateHandle(CreateParams cp)
at System.Windows.Forms.Control.CreateHandle()
at System.Windows.Forms.Form.CreateHandle()
at System.Windows.Forms.Control.get_Handle()
at System.Windows.Forms.Form.SetVisibleCore(Boolean value)
at System.Windows.Forms.Control.Show()
at Hotel_Reservation_System.frain.mdiMain_Load(Object sender, EventArgs e) in Reservation System\My Forms\frMain.vb:line 144
at System.EventHandler.Invoke(Object sender, EventArgs e)
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.UnsafeNativeMethods.SendMessage(HandleRef hWnd, Int32 msg, Int32 wParam, Int32 lParam)
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(ApplicationContext context)
at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.OnRun()
at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.DoApplicationModel()
at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.Run(String[] commandLine)
at Hotel_Reservation_System.My.MyApplication.Main(String[] Args) in 17d14f5c-a337-4978-8281-53493378c1071.vb:line 81
at System.AppDomain._nExecuteAssembly(Assembly 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.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()
Thank you for allowing us to use your free hotel management system it was a helpful to us. But the problem is how can I change in print billing area to our company name or how can I edit that? I cannot not see "Business Ifo" please help me.
I was tried to change companyname via company table, but the final print out still same as default, should i change the crystal report form? Thank you.
The software is working very well but the problem is with the permissions. When i login as the admin and deny permissions for an ordinary user it works ok but the ordinary user can still access the system->Manage users where he can still change his/her permissions. how can i block someone from accessing the 'manage users'.
Just add the name of the form to the "form" table in data.mdb database. Then add permission in "user permission" table in the same database.
example: If you'd like to add Manage users in permission table add "frmUsersList" in "form" table the add users with the name of the form in "user permission" table.
Comments
Anonymous (not verified)
Mon, 04/13/2009 - 15:30
Permalink
system - manage users
ooo ic sorry. i thought you had finished. yes i talking about VB.net version.
Thanks.
Anonymous (not verified)
Mon, 04/13/2009 - 00:46
Permalink
I used your example in VS 2005
System.InvalidCastException was unhandled
Message="Unable to cast object of type 'System.Data.OleDb.OleDbException' to type 'System.Data.OleDb.OleDbDataReader'."
Source="Hotel Reservation System"
StackTrace:
at Hotel_Reservation_System.frRoomWindow.FillList() in Reservation System\My Forms\frRoomView.vb:line 73
at Hotel_Reservation_System.frRoomWindow.frRoomView_Load(Object sender, EventArgs e) in Reservation System\Hotel Reservation System\My Forms\frRoomView.vb:line 10
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.UnsafeNativeMethods.IntCreateWindowEx(Int32 dwExStyle, String lpszClassName, String lpszWindowName, Int32 style, Int32 x, Int32 y, Int32 width, Int32 height, HandleRef hWndParent, HandleRef hMenu, HandleRef hInst, Object pvParam)
at System.Windows.Forms.UnsafeNativeMethods.CreateWindowEx(Int32 dwExStyle, String lpszClassName, String lpszWindowName, Int32 style, Int32 x, Int32 y, Int32 width, Int32 height, HandleRef hWndParent, HandleRef hMenu, HandleRef hInst, Object pvParam)
at System.Windows.Forms.NativeWindow.CreateHandle(CreateParams cp)
at System.Windows.Forms.Control.CreateHandle()
at System.Windows.Forms.Form.CreateHandle()
at System.Windows.Forms.Control.get_Handle()
at System.Windows.Forms.Form.SetVisibleCore(Boolean value)
at System.Windows.Forms.Control.Show()
at Hotel_Reservation_System.frain.mdiMain_Load(Object sender, EventArgs e) in Reservation System\My Forms\frMain.vb:line 144
at System.EventHandler.Invoke(Object sender, EventArgs e)
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.UnsafeNativeMethods.SendMessage(HandleRef hWnd, Int32 msg, Int32 wParam, Int32 lParam)
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(ApplicationContext context)
at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.OnRun()
at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.DoApplicationModel()
at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.Run(String[] commandLine)
at Hotel_Reservation_System.My.MyApplication.Main(String[] Args) in 17d14f5c-a337-4978-8281-53493378c1071.vb:line 81
at System.AppDomain._nExecuteAssembly(Assembly 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.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()
admin
Mon, 04/13/2009 - 08:29
Permalink
re: I used your example in VS 2005
I don't use VS 2005. I use 2008.
Anonymous (not verified)
Thu, 04/09/2009 - 15:17
Permalink
project on hotel management system
hi,
can plzz send me the project in java. It's very very urgent.
thanks
sandeep kumar s (not verified)
Fri, 05/25/2012 - 15:40
Permalink
hotel management systems in java
I to need same project in java its Urgent. if can u send it to below email id
ID: [email protected]
thanks and regards
sandeep
Anonymous (not verified)
Wed, 04/08/2009 - 22:20
Permalink
For synopsis
can you have the synopsis of this project .If u have plz sent me at [email protected]
Anonymous (not verified)
Tue, 04/07/2009 - 12:37
Permalink
project
hello sir plz send me complete vb project (with coding) on hotel management using access .plz plzzzzzzzz my email id is
[email protected]
aara (not verified)
Tue, 01/03/2012 - 18:21
Permalink
hotelmanagement projects
sir please forward us that project on hotel management system in vb.net
admin
Tue, 04/07/2009 - 13:35
Permalink
re: project
LOL.
You have the link above.
Anonymous (not verified)
Tue, 04/07/2009 - 10:31
Permalink
hello!!!!!!!!!!!!!!!!!!!!
hello i'm empress in your program. you are using vb 6.0. i am using too. cze i med some programm. or system.
[email protected]
Thu, 04/02/2009 - 11:30
Permalink
hotel management
i m not able to use ur code bcoz ms access need password and it is not open in visual basic
plz help me
ii is very urgent
admin
Thu, 04/02/2009 - 13:39
Permalink
re: hotel management
Read the FAQ on how to get the database password.
Anonymous (not verified)
Thu, 04/02/2009 - 10:17
Permalink
HOTEL MANAGEMENT SYSTEM WITH ACCESS AND VB 6.0
PLEASE I NEED HELP FROM YOU SIR , JUST SEND ME A COMPLETE PROJECT ON HOTEL MANAGEMENT SYSTEM USING . HERE IS MY E-MAIL:[email protected]
i will be very much thankfull if u send reply to my request
admin
Thu, 04/02/2009 - 13:38
Permalink
re: HOTEL MANAGEMENT SYSTEM WITH ACCESS AND VB 6.0
Follow the link above.
felixbeyond
Tue, 03/31/2009 - 07:25
Permalink
database password can be seen
database password can be seen in his connection string he is using.. but users password cannot..
its is encrypted... great work!
felixbeyond
Anonymous (not verified)
Thu, 03/26/2009 - 03:30
Permalink
HOTEL MANAGEMENT SYSTEM WITH ACCESS AND VB 6.0
PLEASE I NEED HELP FROM YOU SIR , JUST SEND ME A COMPLETE PROJECT ON HOTEL MANAGEMENT SYSTEM USING . HERE IS MY E-MAIL:[email protected]
thanks a lot sir for your kindness
Anonymous (not verified)
Thu, 03/26/2009 - 03:19
Permalink
mobile billing system using VB 6.0 AND ACCESS
PLEASE SIR , I NEED ANY PROJECT ON MOBILE BILLING SYSTEM.
I WILL BE PROUD OF YOU IF YOU FULFILL MY REQUEST.
Anonymous (not verified)
Thu, 03/26/2009 - 03:02
Permalink
airlines reservation system using VB AND ACCESS
CAN YOU SUPPLY ME ANY PROJECT ON AIRLINE RESERVATION SYSTEM? THANK YOU IN ADVANCE
Anonymous (not verified)
Wed, 03/25/2009 - 01:26
Permalink
REPORT PROBLEM
when I try to open any report it shows me an error message "server has not yet been opened"
please help
admin
Wed, 03/25/2009 - 08:15
Permalink
re: REPORT PROBLEM
This is because you did not install all the necessary components. Do you have crystal reports 8.5 installed?
Anonymous (not verified)
Wed, 03/18/2009 - 22:42
Permalink
can u help me in Hotel managment systems
I have installed the hotel managment system, but when runned the .exe file it is like displaying a message unrecognized database format..
admin
Thu, 03/19/2009 - 08:29
Permalink
re: can u help me in Hotel managment systems
May be you have a corrupt file. Download the source code again.
Anonymous (not verified)
Fri, 04/10/2009 - 22:10
Permalink
Urgent
Sir
cud u please help me out...sir cud u please forward me VB.Net project on "Airline Reservation System"?
admin
Sat, 04/11/2009 - 12:42
Permalink
re: Urgent
Sorry but I don't have that kind of program.
Anonymous (not verified)
Mon, 03/09/2009 - 04:19
Permalink
Source Codes
Hey, Are we not able to view your programs source codes?...because i can't seem to open it in visual studios 2005 ???
admin
Mon, 03/09/2009 - 08:26
Permalink
re: Source Codes
For the vb.net version please follow this link: Hotel Reservation System (VB.NET). It is not yet finish. I'm still working on it.
Anonymous (not verified)
Fri, 02/27/2009 - 17:57
Permalink
How can I put my Company name in printing bill area?
Hi! Sir,
Thank you for allowing us to use your free hotel management system it was a helpful to us. But the problem is how can I change in print billing area to our company name or how can I edit that? I cannot not see "Business Ifo" please help me.
admin
Sat, 02/28/2009 - 10:37
Permalink
re: How can I put my Company name in printing bill area?
Edit it under the data.mdb using "Business Info" table.
Anonymous (not verified)
Tue, 03/10/2009 - 14:55
Permalink
Database Password
...what is the password?
admin
Tue, 03/10/2009 - 18:16
Permalink
re: Database Password
Please read FAQ.
Anonymous (not verified)
Sat, 01/24/2009 - 14:06
Permalink
editing the company name in the final print statement?
is it possible to edit the company name in the final print page?
admin
Sun, 01/25/2009 - 16:19
Permalink
re: editing the company name in the final print statement?
Yes. Just replace the value under the company table.
Anonymous (not verified)
Thu, 02/19/2009 - 07:54
Permalink
can not change company name
Dear Sir,
I was tried to change companyname via company table, but the final print out still same as default, should i change the crystal report form? Thank you.
Best Regards,
Otto
admin
Thu, 02/19/2009 - 09:12
Permalink
re: can not change company name
Sorry it's not the company table that you need to change. It's the Business Info table.
Anonymous (not verified)
Thu, 02/19/2009 - 12:08
Permalink
ok, thank you very much.
ok, thank you very much.
wilson
Mon, 12/15/2008 - 23:01
Permalink
Permissions
The software is working very well but the problem is with the permissions. When i login as the admin and deny permissions for an ordinary user it works ok but the ordinary user can still access the system->Manage users where he can still change his/her permissions. how can i block someone from accessing the 'manage users'.
admin
Tue, 12/16/2008 - 12:18
Permalink
re: Permissions
Just add the name of the form to the "form" table in data.mdb database. Then
add permission in "user permission" table in the same database.
example:
If you'd like to add Manage users in permission table add "frmUsersList" in
"form" table the add users with the name of the form in "user permission" table.
Anonymous (not verified)
Tue, 04/27/2010 - 05:59
Permalink
My ID [email protected]
My ID [email protected]
Pages
Add new comment