Si è verificata l'eccezione RemObjects.SDK.Exceptions.SessionNotFoundException
HResult=0x80131500
Messaggio=An exception occurred on the server: Session could not be found.
Origine=<Non è possibile valutare l'origine dell'eccezione>
Analisi dello stack:
in RemObjects.SDK.Message.ProcessException()
in RemObjects.SDK.BinMessage.InternalReadFromStream(Stream stream)
in RemObjects.SDK.Message.ReadFromStream(Stream stream)
in RemObjects.SDK.IpHttpClientChannel.IntDispatch(Stream request, IMessage response)
in RemObjects.SDK.ClientChannel.Dispatch(IMessage message)
in RemObjects.SDK.DynamicRequest.InternalMakeRequest()
in RemObjects.SDK.DynamicRequest.MakeRequest()
in RemObjects.DataAbstract.Linq.LinqRemoteDataAdapter.FetchData(TableRequestInfo[] tableRequest, String[] tableNames, Action`3 fillMethod)
in RemObjects.DataAbstract.Linq.RemoteTable`1.Execute(Expression expression, DataParameter[] parameters)
in RemObjects.DataAbstract.Linq.RemoteTable`1.Execute(Expression expression)
in RemObjects.DataAbstract.Linq.RemoteTableQuery`1.GetEnumerator()
in System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
in System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
in WinFormsApplication36.MainForm.MainForm_Load(Object sender, EventArgs e) in C:\Users\Davide\Documents\Visual Studio 2017\Projects\WinFormsApplication36\WinFormsApplication36Error\MainForm.cs: riga 25
in System.Windows.Forms.Form.OnLoad(EventArgs e)
in System.Windows.Forms.Form.OnCreateControl()
in System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
in System.Windows.Forms.Control.CreateControl()
in System.Windows.Forms.Control.WmShowWindow(Message& m)
in System.Windows.Forms.Control.WndProc(Message& m)
in System.Windows.Forms.ScrollableControl.WndProc(Message& m)
in System.Windows.Forms.Form.WmShowWindow(Message& m)
in System.Windows.Forms.Form.WndProc(Message& m)
in System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
in System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
in System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
In attachment a simple NET solution with:
custom server
custom client
copy of custom client with the error (this is the same project, the only change i have done is to modify channel targeturl from localhost to 127.0.0.1)
This is a sample to reproduce this error, but it will occour also in other way, randomly in project when i update entities or configuration.
Thanks for the testcase. IT seems like a some kind on WinForms designer bug in VS 2017. We’’ need to investigate this deeper.
Please reattach the OnLoginNeeded event handler to the client channel and this exception will be resolved. It means that one tries to access data w/o loggin in first.