Remoting to a database

colin.darby

New member
Joined
Oct 10, 2005
Messages
4
Programming Experience
Beginner
We are trying to use remoting to retrieve a list of users from a database stored on a server machine. We know we have communication between the client application and the server application, but we receive the following exception message for any attempts to access the database. (All data should be returned in dataset form).

************** Exception Text **************
System.Runtime.Remoting.RemotingException: Server encountered an internal error. For more information, turn on customErrors in the server's .config file.
Server stack trace:

Exception rethrown at [0]:
at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
at Interface.ClientSideFunctions.GetUserList()
at UserMaintainApp.UserList.LoadList() in C:\RemotingDev\AppFolder\UserList.vb:line 273
at UserMaintainApp.UserList.UserList_Load(Object sender, EventArgs e) in C:\RemotingDev\AppFolder\UserList.vb:line 258
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)



We are absolute beginners to the remoting lark, so any help would be much appreciated.
 
perhaps u should paste the server/client & application code. only then some guesses can be made. Becoz above it says "internal error". Why don't u turn on the CustomErrors in the server config file.
also u could put all ur code in try-catch blocks & trap the errors thown & display them in a messagebox or a label field. You can get more details.
 
Back
Top