yangchongze00 / google-gdata

Automatically exported from code.google.com/p/google-gdata
0 stars 0 forks source link

Class not marked Serializable causes error when SessionState=StateServer #419

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. set session state in web.config to stateServer from InProc
2. call Most Popular or Most Commented
3. receive error
4. change Session in web.config to InProc and it works

What is the expected output? What do you see instead?
Expected output is list of most popular or commented

What is seen: 
SerializationException: Type 'Google.YouTube.YouTubeRequest' in Assembly 
'Google.GData.YouTube, Version=1.4.2.30022, Culture=neutral, 
PublicKeyToken=af04a32718ae8833' is not marked as serializable.] 

Please use labels and text to provide additional information.

Original issue reported on code.google.com by ad...@inphoenet.com on 27 Aug 2010 at 7:56

GoogleCodeExporter commented 8 years ago
This won't get fixed. If you need to do cross process calls taht require a 
serializable class, you need to add you layer around it. Making things 
serializable (and meaningful) is a lot of work, and not a target of this 
library. It is pretty straightforward to create a thing layer around the code 
to serialze just the info you need. 

Original comment by frank%ma...@gtempaccount.com on 7 Sep 2010 at 11:00

GoogleCodeExporter commented 8 years ago

Original comment by ccherub...@google.com on 7 Dec 2010 at 8:55