<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:pingback="http://madskills.com/public/xml/rss/module/pingback/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0">
  <channel>
    <title>Rénald's Blog - EnterpriseLibrary</title>
    <link>http://www.renaldnollet.com/blog/</link>
    <description />
    <language>en-us</language>
    <copyright>Rénald Nollet</copyright>
    <lastBuildDate>Sun, 02 May 2010 19:58:27 GMT</lastBuildDate>
    <generator>newtelligence dasBlog 2.3.9074.18820</generator>
    <managingEditor>rno.rno.rno@gmail.com</managingEditor>
    <webMaster>rno.rno.rno@gmail.com</webMaster>
    <item>
      <trackback:ping>http://www.renaldnollet.com/blog/Trackback.aspx?guid=35676706-0507-4bdb-8001-47be8ee36471</trackback:ping>
      <pingback:server>http://www.renaldnollet.com/blog/pingback.aspx</pingback:server>
      <pingback:target>http://www.renaldnollet.com/blog/PermaLink,guid,35676706-0507-4bdb-8001-47be8ee36471.aspx</pingback:target>
      <dc:creator>Rénald Nollet</dc:creator>
      <wfw:comment>http://www.renaldnollet.com/blog/CommentView,guid,35676706-0507-4bdb-8001-47be8ee36471.aspx</wfw:comment>
      <wfw:commentRss>http://www.renaldnollet.com/blog/SyndicationService.asmx/GetEntryCommentsRss?guid=35676706-0507-4bdb-8001-47be8ee36471</wfw:commentRss>
      <slash:comments>2</slash:comments>
      <body xmlns="http://www.w3.org/1999/xhtml">
        <p>
The new Enterprise Library 5.0 was launched a few days before and I decided to use
this new version in my projects. One of the main application block I'm using is the
Logging Application Block. 
</p>
        <p>
I went to use it in a WCF Service Library into Visual Studio 2010. Everything was
fine until I decided to use a Database Trace Listener. Of course, I referenced the <em>Microsoft.Practices.EnterpriseLibrary.Logging.Database</em> in
my project. But it always failed to run with this message: 
</p>
        <p>
          <em>"Invalid TraceListenerData type in configuration 'listenerDataType=\"Microsoft.Practices.EnterpriseLibrary.Logging.Database.Configuration.FormattedDatabaseTraceListenerData,
Microsoft.Practices.EnterpriseLibrary.Logging.Database, Version=5.0.414.0, Culture=neutral,
PublicKeyToken=31bf3856ad364e35\"'." </em>
        </p>
        <p>
Finally, I found that you need to work with the .NET 4.0 Full Framework and not only
the Client Profile. Some assemblies are needed by the Database Trace Listener that
are not present in the Client Profile (to learn more about the differences between
the Full Framework and the Client profile, go <a href="http://blogs.msdn.com/pmarcu/archive/2010/04/15/the-net-framework-4-installer-improvements.aspx">here</a>). 
</p>
        <p>
So, just target your project to the .NET Framework 4 and everything will be fine. 
</p>
        <p>
          <img src="http://www.renaldnollet.com/blog/content/binary/050210_1956_EnterpriseL1.png" alt="" />
        </p>
        <img width="0" height="0" src="http://www.renaldnollet.com/blog/aggbug.ashx?id=35676706-0507-4bdb-8001-47be8ee36471" />
      </body>
      <title>Enterprise Library 5.0 Logging Application Block Database Trace Listener and .NET 4 Client Profile</title>
      <guid isPermaLink="false">http://www.renaldnollet.com/blog/PermaLink,guid,35676706-0507-4bdb-8001-47be8ee36471.aspx</guid>
      <link>http://www.renaldnollet.com/blog/2010/05/02/EnterpriseLibrary50LoggingApplicationBlockDatabaseTraceListenerAndNET4ClientProfile.aspx</link>
      <pubDate>Sun, 02 May 2010 19:58:27 GMT</pubDate>
      <description>&lt;p&gt;
The new Enterprise Library 5.0 was launched a few days before and I decided to use
this new version in my projects. One of the main application block I'm using is the
Logging Application Block. 
&lt;/p&gt;
&lt;p&gt;
I went to use it in a WCF Service Library into Visual Studio 2010. Everything was
fine until I decided to use a Database Trace Listener. Of course, I referenced the &lt;em&gt;Microsoft.Practices.EnterpriseLibrary.Logging.Database&lt;/em&gt; in
my project. But it always failed to run with this message: 
&lt;/p&gt;
&lt;p&gt;
&lt;em&gt;"Invalid TraceListenerData type in configuration 'listenerDataType=\"Microsoft.Practices.EnterpriseLibrary.Logging.Database.Configuration.FormattedDatabaseTraceListenerData,
Microsoft.Practices.EnterpriseLibrary.Logging.Database, Version=5.0.414.0, Culture=neutral,
PublicKeyToken=31bf3856ad364e35\"'." &lt;/em&gt;
&lt;/p&gt;
&lt;p&gt;
Finally, I found that you need to work with the .NET 4.0 Full Framework and not only
the Client Profile. Some assemblies are needed by the Database Trace Listener that
are not present in the Client Profile (to learn more about the differences between
the Full Framework and the Client profile, go &lt;a href="http://blogs.msdn.com/pmarcu/archive/2010/04/15/the-net-framework-4-installer-improvements.aspx"&gt;here&lt;/a&gt;). 
&lt;/p&gt;
&lt;p&gt;
So, just target your project to the .NET Framework 4 and everything will be fine. 
&lt;/p&gt;
&lt;p&gt;
&lt;img src="http://www.renaldnollet.com/blog/content/binary/050210_1956_EnterpriseL1.png" alt=""&gt; 
&lt;/p&gt;
&lt;img width="0" height="0" src="http://www.renaldnollet.com/blog/aggbug.ashx?id=35676706-0507-4bdb-8001-47be8ee36471" /&gt;</description>
      <comments>http://www.renaldnollet.com/blog/CommentView,guid,35676706-0507-4bdb-8001-47be8ee36471.aspx</comments>
      <category>EnterpriseLibrary</category>
      <category>Visual Studio 2010</category>
    </item>
  </channel>
</rss>