Home All Groups Group Topic Archive Search About

Any hints on how to use the MvpSerializerFormatter with EntLib?

Author
10 Mar 2005 1:37 PM
Inge

Hi,

We have been using Mvp.Xml.XGen in our own projects, and it's great.
It gets rid of all the standard XmlSerializer problems because of
runtime code generation / compilation.  We would also like to use it
in compination with the EntLib.

I noticed that there is an MvpSerializerTransformer in the latest
patch file, and I have spent most of today trying to configure it.  No
luck, however.  There was a post on GDN on how to do it, but it didn't
have all the details.  I tried everything mentioned there, but the
config tool keeps throwing errors at me.

The first thing we would like to use the MvpSerializerTransformer for,
is to speed up data access config.  So I ran the custom tool on the
DatabaseSettings class and copied the generated code into my own
project.  I also downloaded and compiled the EntLib patches, and
copied the assemblies to the bin directory that the config tool uses.
I then tried to replace the standard XmlSerializerFormatter with the
Mvp one, but it keeps throwing errors about a missing type attribute
on the xmlSerializerSetting tag.  I checked the
dataConfiguration.config file, and the attribute is there.  So I tried
modifying the config files by hand and attempted several different
settings, but to no avail.  I don't know enough about which settings
are needed where to get this to work manually, and either the tool is
not working with this formatter, or I didn't know how to use it.

I posted a reply on GDN, but that took me 36 attempts.  Other people
might not be able to post replies either because the site is not
working properly.  If anyone knows how to set up the
MvpSerializerFormatter, your help would be greatly appreciated.

Inge

Bookmark and Share