'Class' must be marked as Serializable or have a TypeConverter other than ReferenceConverter to be p

Y

Yogesh Parab

In our application we havr presentation layer and business laye. The
presentation layer interacts with business layer using webservice. We need
to store the object from the Business layer in the viewstate, but when we
add the object to the Viewstate, it throws exception "'Class' must be marked
as Serializable or have a TypeConverter other than ReferenceConverter to be
put in viewstate." at runtime. I have made the class of th eobject as
serializable but the problem persists. Please let me know how I can overcome
the same.
 
G

Guest

ViewState is not designed for complex types, so if you are getting this
exception you will either need to write your own converter or use Session or
Cache for it instead.
Peter
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,228
Members
46,818
Latest member
SapanaCarpetStudio

Latest Threads

Top