473,320 Members | 1,965 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Custom TransformerProvider in Configuration Application Block

Hello,

How can we create a custom TransformerProvider (deriving from XmlSerializerTransformer with some minor changes) and make it work with the Enterprise Library Configuration Application Block?

Thank you!
Best wishes,
Alex.

--
Address email to user "response" at domain "alexoren" with suffix "com"
Nov 17 '05 #1
1 1165
Hi Alex,

Regarding this issue, I would like to tell you that it is simple to create a
custom TransformerProvider deriving from XmlSerializerTransformer, you only
need to override its methods properties, like Deserialize, Serialize and
ConfigurationName. The tough one is to use it in Application blocks. To use
your customized XmlSerializerTransformer, you need to create your own
XmlSerializerTransformerData class or modify the source code of
XmlSerializerTransformerData. The dataTransformer is set in app.config file:

<dataTransformer xsi:type="XmlSerializerTransfo*rmerData" name="Xml
Serializer Transformer">
<includeTypes />
</dataTransformer>

If you created customized XmlSerializerTransformerData, you should change
value here.

If you don't want to create a customized XmlSerializerTransformerData, you
can modify its source code so that it will load your own.
XML SerializerTransformer:

XmlSerializerTransformerData.c*s:

[XmlIgnore]
public override string TypeName
{
get { return
typeof(XmlSerializerTransforme*r).AssemblyQualifie dName; }
set
{
}
}

Replace " XmlSerializerTransformer " with your own XmlSerializerTransformer
here.

Hope this helps.

Best Regards,

Mona [Grapecity]

"Alex" <in******@online.nospam> wrote in message
news:Os***************@TK2MSFTNGP11.phx.gbl...
Hello,

How can we create a custom TransformerProvider (deriving from
XmlSerializerTransformer with some minor changes) and make it work with the
Enterprise Library Configuration Application Block?

Thank you!
Best wishes,
Alex.

--
Address email to user "response" at domain "alexoren" with suffix "com"
Nov 17 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Todd Beaulieu | last post by:
Hello, I'm using the configuration block to store user settings in the app.config file. As this exe will reside on a network drive, I can't have users trying to update the master app.config...
1
by: Ollie Riches | last post by:
I have written a custom logging sink for the enterprise library logging application block (June 2005). I have been able to configure it as expected from the UI config tool (EntLibConfig.exe). I...
1
by: Alex | last post by:
Hello, How can we create a custom TransformerProvider (deriving from XmlSerializerTransformer with some minor changes) and make it work with the Enterprise Library Configuration Application Block?...
5
by: DSISupport | last post by:
Hi, I'm planing to use the enterprise library in a new web project, and I was looking at the Security application block which came by defaul with one provider called database authentication...
7
by: Ken Allen | last post by:
I have a .net client/server application using remoting, and I cannot get the custom exception class to pass from the server to the client. The custom exception is derived from ApplicationException...
3
by: Damian | last post by:
Hi everyone I'm having an issue with one of our applications. I'm getting the following error when attempting to log in to the site: Server Error in 'xxxxxxxxxxxxxxxx' Application....
6
by: dee | last post by:
Hi In web.config I have to the following: <configuration> <system.web> <customErrors defaultRedirect="error.htm" mode="On" /> </system.web> </configuration>
5
by: Graham | last post by:
I have created a custom MembershipProvider called "LassieMembershipProvider" that derives from "MembershipProvider". This providor is located in a Businesslogic layer dll called...
0
by: Brian Young | last post by:
My department is responsible for creating custom internal applications for many of our departments. Our strategy has always been to develop our applications as ActiveX controls (VB6) that get...
2
by: Smithers | last post by:
I have a Windows Forms application that implements a plug-in architecture whereby required assemblies are identified and loaded dynamically. Here are the relevant classes: A = application =...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.