Hi,
using jremote to connect to dot net web application.

values from jbase are returned and stored in jdynarray variable which
is to be stored in  viewstate  for later use.

i.e
example:

con = dcf.getConnection();
JSubroutineParameters returnParams3 = new JSubroutineParameters();
returnParams3 = con.call("C.PR.TEST", params3);

YVAR1 = returnParams3.get(0);
....
ViewState["YVAR"] =
(JDynArray)YVAR1;                                          {not able
to use ViewState with JDynArray as not serialized)
......
....
JDynArray YTHY = (JDynArray)ViewState["YVAR1"];
.....

The values are getting stored but returning error page as stating
com.jbase.jremote.JDynArray not serialized.






Screenshot

Server Error in '/Webapp' Application.
--------------------------------------------------------------------------------

Type 'com.jbase.jremote.JDynArray' in Assembly 'jremote,
Version=5.1.0.0, Culture=neutral, PublicKeyToken=c0409b584f86b2d6' is
not marked as serializable.
Description: An unhandled exception occurred during the execution of
the current web request. Please review the stack trace for more
information about the error and where it originated in the code.

Exception Details:
System.Runtime.Serialization.SerializationException: Type
'com.jbase.jremote.JDynArray' in Assembly 'jremote, Version=5.1.0.0,
Culture=neutral, PublicKeyToken=c0409b584f86b2d6' is not marked as
serializable.

Source Error:

An unhandled exception was generated during the execution of the
current web request. Information regarding the origin and location of
the exception can be identified using the exception stack trace
below.

Stack Trace:


[SerializationException: Type 'com.jbase.jremote.JDynArray' in
Assembly 'jremote, Version=5.1.0.0, Culture=neutral,
PublicKeyToken=c0409b584f86b2d6' is not marked as serializable.]
 
System.Runtime.Serialization.FormatterServices.InternalGetSerializableMembers(RuntimeType
type) +7733643
 
System.Runtime.Serialization.FormatterServices.GetSerializableMembers(Type
type, StreamingContext context) +258
 
System.Runtime.Serialization.Formatters.Binary.WriteObjectInfo.InitMemberInfo()
+111
 
System.Runtime.Serialization.Formatters.Binary.WriteObjectInfo.InitSerialize(Object
obj, ISurrogateSelector surrogateSelector, StreamingContext context,
SerObjectInfoInit serObjectInfoInit, IFormatterConverter converter,
ObjectWriter objectWriter) +161
 
System.Runtime.Serialization.Formatters.Binary.WriteObjectInfo.Serialize(Object
obj, ISurrogateSelector surrogateSelector, StreamingContext context,
SerObjectInfoInit serObjectInfoInit, IFormatterConverter converter,
ObjectWriter objectWriter) +51
 
System.Runtime.Serialization.Formatters.Binary.ObjectWriter.Serialize(Object
graph, Header[] inHeaders, __BinaryWriter serWriter, Boolean fCheck)
+410
 
System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Serialize(Stream
serializationStream, Object graph, Header[] headers, Boolean fCheck)
+134
 
System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Serialize(Stream
serializationStream, Object graph) +13
 
System.Web.UI.ObjectStateFormatter.SerializeValue(SerializerBinaryWriter
writer, Object value) +845

[ArgumentException: Error serializing value
'<1><1,1><1,2>0<1,3>256<1,4><1,5>0<2><2,1><2,2>0<2,3>' of type
'com.jbase.jremote.JDynArray.']
 
System.Web.UI.ObjectStateFormatter.SerializeValue(SerializerBinaryWriter
writer, Object value) +3395
   System.Web.UI.ObjectStateFormatter.Serialize(Stream outputStream,
Object stateGraph) +110
   System.Web.UI.ObjectStateFormatter.Serialize(Object stateGraph) +57
 
System.Web.UI.ObjectStateFormatter.System.Web.UI.IStateFormatter.Serialize(Object
state) +4
   System.Web.UI.Util.SerializeWithAssert(IStateFormatter formatter,
Object stateGraph) +37
   System.Web.UI.HiddenFieldPageStatePersister.Save() +79
   System.Web.UI.Page.SavePageStateToPersistenceMedium(Object state)
+105
   System.Web.UI.Page.SaveAllState() +236
   System.Web.UI.Page.ProcessRequestMain(Boolean
includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
+1099




what is the solution for this .


Thanks and Regards,
Harry.

-- 
Please read the posting guidelines at: 
http://groups.google.com/group/jBASE/web/Posting%20Guidelines

IMPORTANT: Type T24: at the start of the subject line for questions specific to 
Globus/T24

To post, send email to [email protected]
To unsubscribe, send email to [email protected]
For more options, visit this group at http://groups.google.com/group/jBASE?hl=en

Reply via email to