Serializing PageSettings

L

Lorentz

Good day...

I'm part of a group that is developing an app and my current task is
to set and store PageSettings for our documents. I am hoping to
utilize our architecture in storing PageSettings information in our
model schema. Our schema heavily utilizes the serialization of
the .Net framework.

In my developing, I'm able to add properties/attributes to classes and
have the data stored into this serialization process. In my
documentation class, I've added a PageSettings attribute which i want
to capture margin settings and such. When I add the pagesetting
attribute and try to save, I get an "InvalidCaseException: Specified
cast is not valid" during the serialization of the PageSettings.

My question now, is what I'm trying to do possible? I've been
searching the Internet for any hints/suggestions to my issue. I
appreciate any/all replies to this post.

thank you in advance.

Lawrence Tsosie
Stratford, CT USA
 
P

Pavel Minaev

Lorentz said:
Good day...

I'm part of a group that is developing an app and my current task is
to set and store PageSettings for our documents. I am hoping to
utilize our architecture in storing PageSettings information in our
model schema. Our schema heavily utilizes the serialization of
the .Net framework.

In my developing, I'm able to add properties/attributes to classes and
have the data stored into this serialization process. In my
documentation class, I've added a PageSettings attribute which i want
to capture margin settings and such. When I add the pagesetting
attribute and try to save, I get an "InvalidCaseException: Specified
cast is not valid" during the serialization of the PageSettings.

My question now, is what I'm trying to do possible? I've been
searching the Internet for any hints/suggestions to my issue. I
appreciate any/all replies to this post.

Your description is too vague to say anything useful. We don't know what
kind of serialization you're using (binary? XML? DataContract?). Though the
kind of exception you're getting is unlikely to be thrown by any of the
stock serializers.

Try posting the code snippet where the exception is thrown, with some
surrounding context.
 

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

Top