RightHand's community place

RightHand's community place
Welcome to RightHand's community place Sign in | | Help
in Search

Execption for Typed DataSet

Last post 02-19-2007, 19:49 by Miha Markic. 1 replies.
Sort Posts: Previous Next
  •  02-13-2007, 12:19 3504

    Execption for Typed DataSet

    Hi Miha,

    The DataSet visualizer is great!

     

    We have one problem though:

    We use it on typed DataSets, but if the typed DataSet is not marked as serializable and does not have a constructor for Serialization we get an exception saying:

    Type MynameSpace.MyTypedDataSetClass in assembly ‘MyNameSpace.MyAssemblyName, version 1.1.0.0, Culture=neutral, PublicKeyToken=null’ is not marked as serializable.

    I have tried making my own visualizer and I get the same exception. This can be fixed by modifying the typed Dataset class, but it seems like Microsoft has a trick to get around this because the standard DataSet visualizer included with Visual Studio 2005 is able to visualize a typed DataSet  without any modifications.

     

     

     

  •  02-19-2007, 19:49 3554 in reply to 3504

    Re: Execption for Typed DataSet

    Hi Nils,

     You are right, I do use serialization and your class won't work unless marked as serializable. Can't you just decorate it with Serializable attribute?


    Miha Markič [MVP C#]
    RightHand .net consulting and software development
    www.rthand.com
    blog: http://cs.rthand.com/blogs/blog_with_righthand/default.aspx
    www.dxsquad.com
    www.codezone-si.info
View as RSS news feed in XML
Powered by Community Server, by Telligent Systems