Click here to Skip to main content
15,901,426 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
Hi All,

Am using XMLRpc Serializer and deserializer for post a article in wordpress blog using c#. But in my whole project objStream.Length, objStream.Position, objStream.ReadTimeout, objStream.WriteTimeout throws system unhandled exception.

objStream ==> Stream objStream = new MemoryStream()

How to solve this... All replies are welcome.

Thanks

Dhinesh V
Posted
Comments
Rob Philpott 6-Oct-15 5:47am    
Can you be more precise about the exception thrown. Quite a few streams won't allow you to access to Length and Position (or to seek for instance) as it just doesn't make sense with those. A NetworkStream for instance, well you can't go back to the beginning. Should be ok with a MemoryStream.

Read/Write Timeout doesn't make much sense on a MemoryStream as they should never block.

I think there's something going on which isn't covered in your description!
Sergey Alexandrovich Kryukov 6-Oct-15 11:42am    
What is "Lengh"? What is "Postion"?
—SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900