
December 15th, 2001, 08:49 AM
|
|
Contributing User
|
|
Join Date: Dec 2002
Posts: 14,578
  
Time spent in forums: < 1 sec
Reputation Power: 22
|
|
|
Can ASP.NET handle event from remote object?
Originally posted by : jibin Pan (panjibin@aol.com)Hi everybody, The code is work in windowForm:CltObj = (RemotingClient)Activator.GetObject( typeof(WRemoteClient.RemotingClient), url);CltObj.InvokeFormMethod += new CFormEventHandler(OnMsgHandler);But It generate exception In ASP.NET, when execute:CltObj.InvokeFormMethod += new CFormEventHandler(OnMsgHandler);System.Runtime.Ser ialization.SerializationException: The type ASP.WebForm1_aspx in Assembly urjutlac, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null is not marked as serializable. ServerStackTrace: at System.Runtime.Serialization.FormatterServices.Int ernalGetSerializableMembers(RuntimeType type, Boolean excludeNonSerializable) at System.Runtime.Serialization.FormatterServices.Get SerializableMembers(Type type, StreamingContext context) at .....It seems the ASP.Form is not serializable?What is the problem? How to make it work?ThanksJibin Pan
|