<?xml version="1.0"?><?xml-stylesheet type="text/xsl" href="http://www.codeplex.com/rss.xsl"?><rss version="2.0"><channel><title>entlib Forum Rss Feed</title><link>http://www.codeplex.com/entlib/Project/ListForums.aspx</link><description>entlib Forum Rss Description</description><item><title>New Post: Use environment variable in filePath in File Configuration Source</title><link>http://entlib.codeplex.com/Thread/View.aspx?ThreadId=75646</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;Thanks for your reply. &amp;nbsp;This is a huge deal, as being a good UAC citizen and using EntLib means placing the configuration outside of app.config. &amp;nbsp; If you can't point to a known location using an standard environment variable you're left with having to write code to assign the location and modify the app.config during installation. &amp;nbsp;Either I'm missing something or there are way too many programmers writing desktop apps not testing as a standard user with UAC turned on, AND testing with XP.&lt;/p&gt;
&lt;p&gt;I've looked into the EntLib source and I think I see where it's calling&lt;/p&gt;
&lt;div style="color:Black;background-color:White"&gt;
&lt;pre&gt;Environment.ExpandEnvironmentVariables

&lt;/pre&gt;
&lt;/div&gt;
&lt;p&gt;On the file trace listeners, and where it might be appropriate to call the same on the file configuration source, but the source for EntLib it daunting and making sure you're in the appropriate place isn't a no-brainer.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;div id="_mcePaste" style="left:-10000px;top:0px;width:1px;height:1px;overflow-x:hidden;overflow-y:hidden"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Environment.ExpandEnvironmentVariable&lt;/div&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;/div&gt;</description><author>esaulsberry</author><pubDate>Fri, 20 Nov 2009 16:55:55 GMT</pubDate><guid isPermaLink="false">New Post: Use environment variable in filePath in File Configuration Source 20091120045555P</guid></item><item><title>New Post: Use environment variable in filePath in File Configuration Source</title><link>http://entlib.codeplex.com/Thread/View.aspx?ThreadId=75646</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;As far as I know, using environment variable on the file configuration source thru config is not supported.&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&lt;strong&gt;Valiant Dudan&lt;/strong&gt;&lt;/em&gt;&lt;br&gt;Global Technology and Solutions&lt;br&gt;Avanade, Inc.&lt;br&gt;entlib.support@avanade.com&lt;/p&gt;&lt;/div&gt;</description><author>AvanadeSupport</author><pubDate>Fri, 20 Nov 2009 10:03:22 GMT</pubDate><guid isPermaLink="false">New Post: Use environment variable in filePath in File Configuration Source 20091120100322A</guid></item><item><title>New Post: data access application error for app.config only Database db = DatabaseFactory.CreateDatabase(); is null</title><link>http://entlib.codeplex.com/Thread/View.aspx?ThreadId=75689</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Do you do this with remoting?&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&lt;strong&gt;Valiant Dudan&lt;/strong&gt;&lt;/em&gt;&lt;br&gt;Global Technology and Solutions&lt;br&gt;Avanade, Inc.&lt;br&gt;entlib.support@avanade.com&lt;/p&gt;&lt;/div&gt;</description><author>AvanadeSupport</author><pubDate>Fri, 20 Nov 2009 09:02:20 GMT</pubDate><guid isPermaLink="false">New Post: data access application error for app.config only Database db = DatabaseFactory.CreateDatabase(); is null 20091120090220A</guid></item><item><title>New Post: ObjectValidatorAttribute with TargetRuleSet</title><link>http://entlib.codeplex.com/Thread/View.aspx?ThreadId=75658</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Actually it is exposed on the ObjectValidatorAttribute. There is a overload of the ObjectValidatorAttribute which accepts a string targetRuleSet. You could do something like this:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;
&lt;div style="color:Black;background-color:White"&gt;
&lt;pre&gt;    &lt;span style="color:Blue"&gt;public&lt;/span&gt; &lt;span style="color:Blue"&gt;class&lt;/span&gt; MockClass
    {
        [ObjectValidator(&lt;span style="color:#A31515"&gt;&amp;quot;A&amp;quot;&lt;/span&gt;)]
        &lt;span style="color:Blue"&gt;public&lt;/span&gt; SubClass SubClass { &lt;span style="color:Blue"&gt;get&lt;/span&gt;; &lt;span style="color:Blue"&gt;set&lt;/span&gt;; }

        &lt;span style="color:Blue"&gt;public&lt;/span&gt; MockClass()
        {
            SubClass = &lt;span style="color:Blue"&gt;new&lt;/span&gt; SubClass();
        }
    }
&lt;/pre&gt;
&lt;/div&gt;
&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&lt;strong&gt;Valiant Dudan&lt;/strong&gt;&lt;/em&gt;&lt;br&gt;Global Technology and Solutions&lt;br&gt;Avanade, Inc.&lt;br&gt;entlib.support@avanade.com&lt;/p&gt;&lt;/div&gt;</description><author>AvanadeSupport</author><pubDate>Fri, 20 Nov 2009 08:24:04 GMT</pubDate><guid isPermaLink="false">New Post: ObjectValidatorAttribute with TargetRuleSet 20091120082404A</guid></item><item><title>New Post: data access application error for app.config only Database db = DatabaseFactory.CreateDatabase(); is null</title><link>http://entlib.codeplex.com/Thread/View.aspx?ThreadId=75689</link><description>&lt;div style="line-height: normal;"&gt;&lt;div&gt;Hi&lt;br&gt;I created a library for accessing SQL Server and i reference the &lt;span style="font-size:x-small"&gt;Microsoft.Practices.EnterpriseLibrary.Data&lt;br&gt;&lt;/span&gt;dll that is not from GAC. I deleted the strong naming part like bellow. I fille the app.config with Ent Lib Tool&lt;br&gt;usually it works for web.config but not for app.config I have an asp.net application and using the DAL library&lt;br&gt;with app.config. It fails like bellow I do not get it why&lt;/div&gt;
&lt;div&gt;at line Database db = DatabaseFactory.CreateDatabase();&lt;br&gt;&lt;br&gt;&lt;/div&gt;
&lt;p&gt;
&lt;p&gt;&lt;span style="color:#0000ff;font-size:x-small"&gt;&lt;span style="color:#0000ff;font-size:x-small"&gt;&lt;span style="color:#0000ff;font-size:x-small"&gt;&lt;span style="color:#0000ff;font-size:x-small"&gt;
&lt;p&gt;&amp;lt;configuration&amp;gt;&lt;br&gt;&amp;nbsp; &amp;lt;configSections&amp;gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;section name=&amp;quot;dataConfiguration&amp;quot; type=&amp;quot;Microsoft.Practices.EnterpriseLibrary.Data.Configuration.DatabaseSettings, Microsoft.Practices.EnterpriseLibrary.Data&amp;quot; /&amp;gt;&lt;br&gt;&amp;nbsp; &amp;lt;/configSections&amp;gt;&lt;br&gt;&amp;nbsp; &amp;lt;connectionStrings&amp;gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;add name=&amp;quot;Hallo&amp;quot; connectionString=&amp;quot;Data Source=(local)\SQLEXPRESS;Initial Catalog=Halloween;Integrated Security=True&amp;quot;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; providerName=&amp;quot;System.Data.SqlClient&amp;quot; /&amp;gt;&lt;br&gt;&amp;nbsp; &amp;lt;/connectionStrings&amp;gt;&lt;br&gt;&amp;nbsp; &amp;lt;dataConfiguration defaultDatabase=&amp;quot;Hallo&amp;quot; /&amp;gt;&lt;br&gt;&amp;lt;/configuration&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;br&gt;System.NullReferenceException was unhandled by user code&lt;br&gt;&amp;nbsp; Message=&amp;quot;Object reference not set to an instance of an object.&amp;quot;&lt;br&gt;&amp;nbsp; Source=&amp;quot;Microsoft.Practices.EnterpriseLibrary.Data&amp;quot;&lt;br&gt;&amp;nbsp; StackTrace:&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at Microsoft.Practices.EnterpriseLibrary.Data.DatabaseMapper.MapName(String name, IConfigurationSource configSource)&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at Microsoft.Practices.EnterpriseLibrary.Common.Configuration.ObjectBuilder.ConfigurationNameMappingStrategy.BuildUp(IBuilderContext context, Type t, Object existing, String id)&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at Microsoft.Practices.ObjectBuilder.BuilderBase`1.DoBuildUp(IReadWriteLocator locator, Type typeToBuild, String idToBuild, Object existing, PolicyList[] transientPolicies)&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at Microsoft.Practices.ObjectBuilder.BuilderBase`1.BuildUp(IReadWriteLocator locator, Type typeToBuild, String idToBuild, Object existing, PolicyList[] transientPolicies)&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at Microsoft.Practices.ObjectBuilder.BuilderBase`1.BuildUp[TTypeToBuild](IReadWriteLocator locator, String idToBuild, Object existing, PolicyList[] transientPolicies)&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at Microsoft.Practices.EnterpriseLibrary.Common.Configuration.ObjectBuilder.EnterpriseLibraryFactory.BuildUp[T](IReadWriteLocator locator, IConfigurationSource configurationSource)&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at Microsoft.Practices.EnterpriseLibrary.Common.Configuration.ObjectBuilder.EnterpriseLibraryFactory.BuildUp[T](IConfigurationSource configurationSource)&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at Microsoft.Practices.EnterpriseLibrary.Common.Configuration.ObjectBuilder.NameTypeFactoryBase`1.CreateDefault()&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at Microsoft.Practices.EnterpriseLibrary.Data.DatabaseFactory.CreateDatabase()&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at DataLayer.CategoriesDAL..ctor() in C:\Documents and Settings\geo\My Documents\Visual Studio 2005\Projects\FunStore\DataLayer\CategoriesDAL.cs:line 17&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at Server.ServerRemote.GetCategories() in C:\Documents and Settings\geo\My Documents\Visual Studio 2005\Projects\FunStore\Server\ServerRemote.cs:line 21&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr md, Object[] args, Object server, Int32 methodPtr, Boolean fExecuteInContext, Object[]&amp;amp; outArgs)&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at System.Runtime.Remoting.Messaging.StackBuilderSink.PrivateProcessMessage(RuntimeMethodHandle md, Object[] args, Object server, Int32 methodPtr, Boolean fExecuteInContext, Object[]&amp;amp; outArgs)&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at System.Runtime.Remoting.Messaging.StackBuilderSink.SyncProcessMessage(IMessage msg, Int32 methodPtr, Boolean fExecuteInContext)&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;/p&gt;
&lt;div&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a title=Quote rel=nofollow name=quote href="http://login.live.com/login.srf?wa=wsignin1.0&amp;rpsnv=11&amp;ct=1258704887&amp;rver=5.0.3265.0&amp;wp=MCLBI&amp;wlcxt=Msdn$Msdn$Msdn&amp;wreply=http://social.msdn.microsoft.com:80/Forums/en-US/netfxbcl/thread/01f447b2-6f3c-4cc8-a6fa-56c2d2202eff/?prof%3Drequired&amp;lc=1033&amp;cb=wizid%3D4d1382e7-4d42-401b-8f9d-1b1da57e9cc0%26returnurl%3Dhttp%253a%252f%252fsocial.msdn.microsoft.com%253a80%252fForums%252fen-US%252fnetfxbcl%252fthread%252f01f447b2-6f3c-4cc8-a6fa-56c2d2202eff%252f%253fprof%253drequired%26wp%3DMCLBI%26lcid%3D1033&amp;id=254354"&gt;&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;div&gt;&amp;nbsp;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;h3&gt;All Replies&lt;/h3&gt;
&lt;/div&gt;&lt;/div&gt;</description><author>acasha</author><pubDate>Fri, 20 Nov 2009 08:20:27 GMT</pubDate><guid isPermaLink="false">New Post: data access application error for app.config only Database db = DatabaseFactory.CreateDatabase(); is null 20091120082027A</guid></item><item><title>New Post: DAAB without registering DB driver</title><link>http://entlib.codeplex.com/Thread/View.aspx?ThreadId=75568</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I'm not sure what do you mean by embedded in the solution, do you mean you have the oledb dll will be deployed together with your binaries? Do you use a custom provider? just like in these posts:&lt;/p&gt;
&lt;p&gt;&lt;a href="http://entlib.codeplex.com/Thread/View.aspx?ThreadId=51064"&gt;http://entlib.codeplex.com/Thread/View.aspx?ThreadId=51064&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="http://entlib.codeplex.com/Thread/View.aspx?ThreadId=75568"&gt;http://entlib.codeplex.com/Thread/View.aspx?ThreadId=75568&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&lt;strong&gt;Valiant Dudan&lt;/strong&gt;&lt;/em&gt;&lt;br&gt;Global Technology and Solutions&lt;br&gt;Avanade, Inc.&lt;br&gt;entlib.support@avanade.com&lt;/p&gt;&lt;/div&gt;</description><author>AvanadeSupport</author><pubDate>Fri, 20 Nov 2009 06:57:34 GMT</pubDate><guid isPermaLink="false">New Post: DAAB without registering DB driver 20091120065734A</guid></item><item><title>New Post: Is Entlib4 compatible with Windows7</title><link>http://entlib.codeplex.com/Thread/View.aspx?ThreadId=75597</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;We'll ask the ent lib team for their offical statement regarding this matter and get back to you.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;em&gt;Valiant Dudan&lt;br&gt;&lt;/em&gt;&lt;/strong&gt;Global Technology and Solutions&lt;br&gt;Avanade, Inc.&lt;br&gt;&lt;a href="mailto:entlib.support@avanade.com"&gt;entlib.support@avanade.com&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;</description><author>AvanadeSupport</author><pubDate>Fri, 20 Nov 2009 05:48:42 GMT</pubDate><guid isPermaLink="false">New Post: Is Entlib4 compatible with Windows7 20091120054842A</guid></item><item><title>New Post: JITOptimization</title><link>http://entlib.codeplex.com/Thread/View.aspx?ThreadId=75461</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;[Duplicate post]: refer to &lt;a href="http://entlib.codeplex.com/Thread/View.aspx?ThreadId=75462"&gt;http://entlib.codeplex.com/Thread/View.aspx?ThreadId=75462&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;</description><author>AvanadeSupport</author><pubDate>Fri, 20 Nov 2009 03:29:28 GMT</pubDate><guid isPermaLink="false">New Post: JITOptimization 20091120032928A</guid></item><item><title>New Post: ObjectValidatorAttribute with TargetRuleSet</title><link>http://entlib.codeplex.com/Thread/View.aspx?ThreadId=75658</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;Ive been struggling with using the ObjectValidators with rulesets when using the attributes as &lt;a href="http://stackoverflow.com/questions/1759875/validation-application-block-object-validator-not-working-with-rulesets"&gt;per this stackoverflow question&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I now see why the ObjectValidator doesnt work, and thats because when defining the validators in a config file, the objectvalidator needs a targetRuleset attribute.&lt;/p&gt;
&lt;p&gt;Is there a reason this field isnt exposed in the ObjectValidatorAttribute?&lt;/p&gt;&lt;/div&gt;</description><author>meboz</author><pubDate>Thu, 19 Nov 2009 23:04:08 GMT</pubDate><guid isPermaLink="false">New Post: ObjectValidatorAttribute with TargetRuleSet 20091119110408P</guid></item><item><title>New Post: Use environment variable in filePath in File Configuration Source</title><link>http://entlib.codeplex.com/Thread/View.aspx?ThreadId=75646</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;In order to allow a standard user under UAC to modify the EntLib Logging configuration, I've moved the location of the logs and the logging configuration to the \programData\MyCompany\MyApp folder. &amp;nbsp;In the logging configuration, I can use an environment variable in the file path, like this:&lt;/p&gt;
&lt;p&gt;&amp;lt;listeners&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;lt;add fileName=&amp;quot;%ALLUSERSPROFILE%\mycompany\myapp\myapp.log&amp;quot;&lt;/p&gt;
&lt;p&gt;I'm using %ALLUSERSPROFILE% instead of c:\programData because of course you can't guarantee c:\programData is correct. &amp;nbsp;Fortunately, using the environment variable here works. &amp;nbsp;Unfortunately, it does not work in the app.config to point the EntLib to the configuration, and I've had to resort to using the hard-coded path. &amp;nbsp;Is there a way to tell the File Configuration Source to use a well known system folder (Environment.SpecialFolder.CommonApplicationData)?&lt;/p&gt;
&lt;p&gt;&amp;lt;enterpriseLibrary.ConfigurationSource selectedSource=&amp;quot;File Configuration Source&amp;quot;&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;lt;sources&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;lt;add name=&amp;quot;File Configuration Source&amp;quot; type=&amp;quot;Microsoft.Practices.EnterpriseLibrary.Common.Configuration.FileConfigurationSource, Microsoft.Practices.EnterpriseLibrary.Common, Version=4.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35&amp;quot;&lt;/p&gt;
&lt;p&gt;filePath=&amp;quot;c:\ProgramData\MyCompany\MyApp\MyApp.Logging.config&amp;quot; /&amp;gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color:#000080"&gt;Would like this to be something like:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="color:#000080"&gt;filePath=&amp;quot;%ProgramData%\MyCompany\MyApp\MyApp.Logging.config&amp;quot; /&amp;gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;/div&gt;</description><author>esaulsberry</author><pubDate>Thu, 19 Nov 2009 20:27:51 GMT</pubDate><guid isPermaLink="false">New Post: Use environment variable in filePath in File Configuration Source 20091119082751P</guid></item><item><title>New Post: &lt;system.serviceModel&gt; in Separate Config file</title><link>http://entlib.codeplex.com/Thread/View.aspx?ThreadId=75471</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;I'm looking for something similar - a way to put the &amp;lt;system.servicemodel&amp;gt; configuration for a *win* app (or win service) that hosts a WCF service in a separate file configuration file. &amp;nbsp;If it's left in app.config, and the application is installed under the \program files tree (where it's supposed to be), the configuration cannot be edited if UAC is turned on. &amp;nbsp;I need a way to point WCF to it's configuration in \programData\mycompany\myapp\myapp.wcf.config&lt;/p&gt;
&lt;p&gt;Lot of things we used to configure in the app.config break under UAC &amp;amp; standard users.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;/div&gt;</description><author>esaulsberry</author><pubDate>Thu, 19 Nov 2009 20:04:07 GMT</pubDate><guid isPermaLink="false">New Post: &lt;system.serviceModel&gt; in Separate Config file 20091119080407P</guid></item><item><title>New Post: Is Entlib4 compatible with Windows7</title><link>http://entlib.codeplex.com/Thread/View.aspx?ThreadId=75597</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;Hi title says it all. Any official statement/test results?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Yours,&lt;/p&gt;
&lt;p&gt;&amp;nbsp; Alois Kraus&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;/div&gt;</description><author>Alois</author><pubDate>Thu, 19 Nov 2009 13:22:44 GMT</pubDate><guid isPermaLink="false">New Post: Is Entlib4 compatible with Windows7 20091119012244P</guid></item><item><title>New Post: DAAB without registering DB driver</title><link>http://entlib.codeplex.com/Thread/View.aspx?ThreadId=75568</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I'm&amp;nbsp;using the DAAB to connect to a Sybase DB with OLEDB provider, my connectionstring looks like that&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:x-small;color:#0000ff"&gt;&lt;span style="font-size:x-small;color:#0000ff"&gt;&amp;lt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:x-small;color:#a31515"&gt;&lt;span style="font-size:x-small;color:#a31515"&gt;add&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:x-small;color:#0000ff"&gt;&lt;span style="font-size:x-small;color:#0000ff"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:x-small;color:#ff0000"&gt;&lt;span style="font-size:x-small;color:#ff0000"&gt;name&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:x-small;color:#0000ff"&gt;&lt;span style="font-size:x-small;color:#0000ff"&gt;=&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:x-small"&gt;&amp;quot;&lt;/span&gt;&lt;span style="font-size:x-small;color:#0000ff"&gt;&lt;span style="font-size:x-small;color:#0000ff"&gt;ASE_PROD&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:x-small"&gt;&amp;quot;&lt;/span&gt;&lt;span style="font-size:x-small;color:#0000ff"&gt;&lt;span style="font-size:x-small;color:#0000ff"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:x-small;color:#ff0000"&gt;&lt;span style="font-size:x-small;color:#ff0000"&gt;connectionString&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:x-small;color:#0000ff"&gt;&lt;span style="font-size:x-small;color:#0000ff"&gt;=&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:x-small"&gt;&amp;quot;&lt;/span&gt;&lt;span style="font-size:x-small;color:#0000ff"&gt;&lt;span style="font-size:x-small;color:#0000ff"&gt;Provider=Sybase.ASEOLEDBProvider.2;Server Name=ServeurName.smt.cm.net;Server Port Address=1050;Initial Catalog=FMTB;User ID=APP_APPLI;Password=test;Application Name=Name;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:x-small"&gt;&amp;quot;&lt;/span&gt;&lt;span style="font-size:x-small;color:#0000ff"&gt;&lt;span style="font-size:x-small;color:#0000ff"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:x-small;color:#ff0000"&gt;&lt;span style="font-size:x-small;color:#ff0000"&gt;providerName&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:x-small;color:#0000ff"&gt;&lt;span style="font-size:x-small;color:#0000ff"&gt;=&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:x-small"&gt;&amp;quot;&lt;/span&gt;&lt;span style="font-size:x-small;color:#0000ff"&gt;&lt;span style="font-size:x-small;color:#0000ff"&gt;System.Data.OleDb&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:x-small"&gt;&amp;quot;&lt;/span&gt;&lt;span style="font-size:x-small;color:#0000ff"&gt;&lt;span style="font-size:x-small;color:#0000ff"&gt; /&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;and the OLEDB driver is registered on the local machine. But I need to deploy my application on computers which don't have the oledb provider registered. Is there a way to tell DAAB to use a driver embedded in the solution ?&lt;/p&gt;
&lt;p&gt;Thank you.&lt;/p&gt;
&lt;p&gt;Laurent&lt;/p&gt;&lt;/div&gt;</description><author>lpoinsot</author><pubDate>Thu, 19 Nov 2009 09:03:19 GMT</pubDate><guid isPermaLink="false">New Post: DAAB without registering DB driver 20091119090319A</guid></item><item><title>New Post: JITOptimization</title><link>http://entlib.codeplex.com/Thread/View.aspx?ThreadId=75462</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;We'll confirm this with the Entlib team.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Sarah Urmeneta&lt;/strong&gt;&lt;br&gt;&lt;em&gt;Global Technology &amp;amp; Solutions&lt;br&gt;Avanade, Inc&lt;br&gt;&lt;a href="mailto:entlib.support@avanade.com"&gt;entlib.support@avanade.com&lt;/a&gt;&lt;br&gt;&lt;/em&gt;&lt;/p&gt;&lt;/div&gt;</description><author>AvanadeSupport</author><pubDate>Thu, 19 Nov 2009 06:00:26 GMT</pubDate><guid isPermaLink="false">New Post: JITOptimization 20091119060026A</guid></item><item><title>New Post: Startup Performance</title><link>http://entlib.codeplex.com/Thread/View.aspx?ThreadId=75510</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;I believe the suggestions you made are ok.&amp;nbsp; You can do away with most of the configuration and design dlls, just include those which you actually referenced in your project.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Deploying assemblies to GAC also improves the load performance as they are already verified but it would cause issues if there are other applications in your machine which uses a different version of entlib.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;em&gt;Sarah Urmeneta&lt;/em&gt;&lt;/strong&gt;&lt;br&gt;Global Technology and Solutions&lt;br&gt;Avanade, Inc.&lt;br&gt;&lt;a href="mailto:entlib.support@avanade.com"&gt;entlib.support@avanade.com&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;/div&gt;</description><author>AvanadeSupport</author><pubDate>Thu, 19 Nov 2009 05:04:55 GMT</pubDate><guid isPermaLink="false">New Post: Startup Performance 20091119050455A</guid></item><item><title>New Post: &lt;system.serviceModel&gt; in Separate Config file</title><link>http://entlib.codeplex.com/Thread/View.aspx?ThreadId=75471</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Thanks for your reply.&lt;/p&gt;
&lt;p&gt;I cant edit the web.config to specify the configSource. And one more thing the other team have their own &amp;lt;system.serviceModel&amp;gt; entries in web.config. And i have to maintain my &amp;lt;system.serviceModel&amp;gt; entries in my separate config file. So the application can load the web.config file(tat stuff is default), and my&amp;nbsp;config's&amp;nbsp;&amp;lt;system.serviceModel&amp;gt; entries too.&lt;/p&gt;
&lt;p&gt;Is there is any custom way of doing this?&lt;/p&gt;
&lt;p&gt;Thanks in advance!&lt;/p&gt;&lt;/div&gt;</description><author>baskar_ram</author><pubDate>Thu, 19 Nov 2009 05:00:37 GMT</pubDate><guid isPermaLink="false">New Post: &lt;system.serviceModel&gt; in Separate Config file 20091119050037A</guid></item><item><title>New Post: &lt;system.serviceModel&gt; in Separate Config file</title><link>http://entlib.codeplex.com/Thread/View.aspx?ThreadId=75471</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;You can use the configSource attribute in the web.config file and point it to the file containing the system.servicemodel section only.&amp;nbsp; Is this an acceptable solution for you? (Note that the configSource attribute only works for a relative path)&lt;/p&gt;
&lt;p&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/ms228167.aspx"&gt;http://msdn.microsoft.com/en-us/library/ms228167.aspx&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="http://weblogs.asp.net/cibrax/archive/2007/07/24/configsource-attribute-on-system-servicemodel-section.aspx"&gt;http://weblogs.asp.net/cibrax/archive/2007/07/24/configsource-attribute-on-system-servicemodel-section.aspx&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;em&gt;Sarah Urmeneta&lt;/em&gt;&lt;/strong&gt;&lt;br&gt;Global Technology and Solutions&lt;br&gt;Avanade, Inc.&lt;br&gt;&lt;a href="mailto:entlib.support@avanade.com"&gt;entlib.support@avanade.com&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;</description><author>AvanadeSupport</author><pubDate>Thu, 19 Nov 2009 02:33:32 GMT</pubDate><guid isPermaLink="false">New Post: &lt;system.serviceModel&gt; in Separate Config file 20091119023332A</guid></item><item><title>New Post: using transactionscope in business layer   </title><link>http://entlib.codeplex.com/Thread/View.aspx?ThreadId=75484</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;Do you know what the exception meant?&amp;nbsp; Anyway, here is a related thread on using TransactionScope...&lt;/p&gt;
&lt;p&gt;&lt;a href="http://entlib.codeplex.com/Thread/View.aspx?ThreadId=32592"&gt;http://entlib.codeplex.com/Thread/View.aspx?ThreadId=32592&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;em&gt;Sarah Urmeneta&lt;/em&gt;&lt;/strong&gt;&lt;br&gt;Global Technology and Solutions&lt;br&gt;Avanade, Inc.&lt;br&gt;&lt;a href="mailto:entlib.support@avanade.com"&gt;entlib.support@avanade.com&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;</description><author>AvanadeSupport</author><pubDate>Thu, 19 Nov 2009 02:23:21 GMT</pubDate><guid isPermaLink="false">New Post: using transactionscope in business layer    20091119022321A</guid></item><item><title>New Post: Extending the Eventlog part of the Logging Application Block </title><link>http://entlib.codeplex.com/Thread/View.aspx?ThreadId=75491</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;You may want to read these first:&lt;/p&gt;
&lt;p&gt;&lt;a href="http://stackoverflow.com/questions/147307/net-how-to-set-user-information-in-an-eventlog-entry"&gt;http://stackoverflow.com/questions/147307/net-how-to-set-user-information-in-an-eventlog-entry&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="http://bytes.com/topic/asp-net/answers/474644-windows-eventlog-populating-user-field"&gt;http://bytes.com/topic/asp-net/answers/474644-windows-eventlog-populating-user-field&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;em&gt;Sarah Urmeneta&lt;/em&gt;&lt;/strong&gt;&lt;br&gt;Global Technology and Solutions&lt;br&gt;Avanade, Inc.&lt;br&gt;&lt;a href="mailto:entlib.support@avanade.com"&gt;entlib.support@avanade.com&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;</description><author>AvanadeSupport</author><pubDate>Thu, 19 Nov 2009 01:57:09 GMT</pubDate><guid isPermaLink="false">New Post: Extending the Eventlog part of the Logging Application Block  20091119015709A</guid></item><item><title>New Post: Startup Performance</title><link>http://entlib.codeplex.com/Thread/View.aspx?ThreadId=75510</link><description>&lt;div style="line-height: normal;"&gt;&lt;p&gt;I have a small web site (1.5 meg) that is now using the Data Access Blocks, Exception Access Block and Logging Access blocks which is&amp;nbsp;2.3meg&amp;nbsp;in the following DLL's:&lt;/p&gt;
&lt;p&gt;Microsoft.Practices.EnterpriseLibrary.Common.dll&lt;br&gt;Microsoft.Practices.EnterpriseLibrary.Common.xml&lt;br&gt;Microsoft.Practices.EnterpriseLibrary.Configuration.Design.dll&lt;br&gt;Microsoft.Practices.EnterpriseLibrary.Configuration.Design.HostAdapter.dll&lt;br&gt;Microsoft.Practices.EnterpriseLibrary.Configuration.Design.UI.dll&lt;br&gt;Microsoft.Practices.EnterpriseLibrary.Data.Configuration.Design.dll&lt;br&gt;Microsoft.Practices.EnterpriseLibrary.Data.dll&lt;br&gt;Microsoft.Practices.EnterpriseLibrary.Data.xml&lt;br&gt;Microsoft.Practices.EnterpriseLibrary.ExceptionHandling.Configuration.Design.dll&lt;br&gt;Microsoft.Practices.EnterpriseLibrary.ExceptionHandling.dll&lt;br&gt;Microsoft.Practices.EnterpriseLibrary.ExceptionHandling.Logging.Configuration.Design.dll&lt;br&gt;Microsoft.Practices.EnterpriseLibrary.ExceptionHandling.Logging.dll&lt;br&gt;Microsoft.Practices.EnterpriseLibrary.Logging.Configuration.Design.dll&lt;br&gt;Microsoft.Practices.EnterpriseLibrary.Logging.dll&lt;br&gt;Microsoft.Practices.ObjectBuilder2.dll&lt;br&gt;Microsoft.Practices.Unity.Configuration.dll&lt;br&gt;Microsoft.Practices.Unity.dll&lt;br&gt;Microsoft.Practices.Unity.Interception.Configuration.dll&lt;br&gt;Microsoft.Practices.Unity.Interception.dll&lt;/p&gt;
&lt;p&gt;The first time the site is used, there is atleast a 10 to 15 second delay that wasn't there before the Enterprise Blocks were introduced.&lt;/p&gt;
&lt;p&gt;Is there anyware of increasing the startup performance?&amp;nbsp; Like using the GAC, not including all the DLL's etc?&lt;/p&gt;
&lt;p&gt;Thanks ... Douglas&lt;/p&gt;&lt;/div&gt;</description><author>zoisite</author><pubDate>Wed, 18 Nov 2009 18:49:20 GMT</pubDate><guid isPermaLink="false">New Post: Startup Performance 20091118064920P</guid></item></channel></rss>