Microsoft Patterns and Practices EntLibhttp://forums.asp.net/122.aspx/1?Microsoft+Patterns+and+Practices+EntLibDiscuss the various Patterns & Practices Application Blocks and the Enterprise LibrarySat, 04 May 2013 09:54:28 -0400urn:uuid:00000000-0000-0000-0000-000000000122urn:uuid:00000000-0000-0000-0000-000005409136http://forums.asp.net/p/1910445/5409136.aspx/1?regarding+web+client+software+factoryregarding web client software factory <p>Hi,</p> <p>I need an example to retrieve data from database and generate report(RDLC) using web client software factory.</p> <p>any urls or examples sent will be appreciated.</p> <p>thanks,</p> <p>steve</p> 2013-05-30T06:52:33-04:002013-05-30T06:52:33.827-04:00urn:uuid:00000000-0000-0000-0000-000005381634http://forums.asp.net/p/1903157/5381634.aspx/1?Factory+pattern+and+Nested+interfacesFactory pattern and Nested interfaces <p>I am trying to create a generic implementation of the factory pattern <strong> where all concrete classes are handled using a reference to the base interface</strong>. However, some classes may have special requirements. Let us see the following example:</p> <pre class="prettyprint">public interface ICurrencyBase { string sell(); string buy(); }</pre> <p>The following concrete classes implement the above interface:</p> <pre class="prettyprint">public class ConcreteRupee : ICurrencyBase { public ConcreteRupee() {} public string buy() { return "buy rupee"; } public string sell() { return "sell rupee"; } }</pre> <pre class="prettyprint">public class ConcreteDollar : ICurrencyBase { public ConcreteDollar() {} public string buy() { return "buy dollar"; } public string sell() { return "sell dollar"; } }</pre> <p>However, I have another concrete class with an additional method requirement. <strong>For this I define an additional interface which implements the base interface</strong>. The concrete class then implements this new interface:</p> <pre class="prettyprint">public interface ISpecialCurrency : ICurrencyBase <strong>//inherit from the base interface</strong> { string convert (); }</pre> <p></p> <pre class="prettyprint">public class ConcreteSpecial : ISpecialCurrency <strong>//implement the new child interface </strong>{ public ConcreteSpecial() { } public string buy() { return "buy special"; } public string sell() { return "sell special"; } public string convert() //new method added { return "convert special"; } }</pre> <p>Then I have the factory class which creates objects of the concrete classes:</p> <pre class="prettyprint">public class CurrencyFactory { public CurrencyFactory() {} public static <strong>ICurrencyBase</strong> GetFactory (string type) { if (type == "Rupee") return new ConcreteRupee(); if (type == "Dollar") return new ConcreteDollar(); if (type == "Special") return new ConcreteSpecial(); throw new Exception ("No such currency found"); } }</pre> <p>Using the currency factory above, I can now create instances of the concrete classes and have them referenced through <strong>ICurrencyBase</strong>. However, the problem is that ICurrencyBase cannot reference the <strong>convert()</strong> method defined through the child interface:</p> <pre class="prettyprint">//ICurrencyBase icurrencyBase = CurrencyFactory.GetFactory("Rupee"); //ICurrencyBase icurrencyBase = CurrencyFactory.GetFactory("Dollar"); ICurrencyBase icurrencyBase = CurrencyFactory.GetFactory("Special"); string buy = icurrencyBase.buy (); string sell = icurrencyBase.sell (); <strong>string deal = icurrencyBase.convert (); // Problem: ICurrencyBase CANNOT reference the convert() method</strong></pre> <p>How do I solve the above problem where we can use a reference of the base interface to handle requests to all concrete classes.</p> <p>Thanks.<br> &nbsp;</p> <p>&nbsp;</p> <p><br> <br> &nbsp;</p> 2013-05-02T05:35:17-04:002013-05-02T05:35:17.517-04:00urn:uuid:00000000-0000-0000-0000-000005399496http://forums.asp.net/p/1908164/5399496.aspx/1?Which+Pattern+it+is+Which Pattern it is? <p><span style="text-decoration:line-through"></span>Hi Guys,</p> <p>I have an ASP application which has the following arechitecture.</p> <p>UI layer (all ASP pages will resides here)</p> <p>Classes [All bus logic will reside here with various class files)</p> <p>Single entry point&nbsp; for all bus logic ASP files (like direct.asp which will direct the control to appropriate ASP bus logic files to carryout required actions baed on the certain parameters that are coming from UI pages)</p> <p>the output also will go back in the same way back to the font end UI pages.</p> <p>Is it something can be developed using Factory Pattern in ASP.NET if we need re-write this ASP app? I just wanted to see if my co-relation pattenrs from ASP architecture is correct or not.</p> <p>&nbsp;</p> <p>any thoughts?</p> 2013-05-20T09:25:56-04:002013-05-20T09:25:56.937-04:00urn:uuid:00000000-0000-0000-0000-000005398819http://forums.asp.net/p/1907998/5398819.aspx/1?Error+trying+to+launch+the+configuration+console+on+VS2012+EntLib+6Error trying to launch the configuration console on VS2012 + EntLib 6 <ol> <li>&nbsp;I create a new blank Web Application Solution in VS2012 </li><li>&nbsp;I download Enterprise Library 6 common infrastructure &#43; Data Access Block using nuget </li><li>Try to launch the configuration module in VS2012, right clicking the web.config file </li></ol> <p>error:</p> <p><em>Error launching the configuration console</em></p> <p><em>Could not locate the Enterprise Library binaries required to launch the configuration console. Either use NuGet to add references to the Enterprise Library blocks or set a value for the 'Enterprise Library binaries path' property on the solution to indicate the location of the binaries</em></p> <p><strong>web.config :</strong></p> <p>&nbsp;</p> <pre class="prettyprint">&lt;configuration&gt; &lt;system.web&gt; &lt;compilation debug=&quot;true&quot; targetFramework=&quot;4.5&quot; /&gt; &lt;httpRuntime targetFramework=&quot;4.5&quot; /&gt; &lt;/system.web&gt; &lt;/configuration&gt;</pre> <p>&nbsp;</p> <p><strong>packages.config :</strong></p> <pre class="prettyprint">&lt;packages&gt; &lt;package id="EnterpriseLibrary.Common" version="6.0.1304.0" targetFramework="net45" /&gt; &lt;package id="EnterpriseLibrary.Data" version="6.0.1304.0" targetFramework="net45" /&gt; &lt;/packages&gt;</pre> <p>&nbsp;</p> <p><strong>Global section on the solution file :</strong></p> <pre class="prettyprint">Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU Release|Any CPU = Release|Any CPU EndGlobalSection GlobalSection(ProjectConfigurationPlatforms) = postSolution {19AC498E-9D71-439E-8565-583AAF6531B1}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {19AC498E-9D71-439E-8565-583AAF6531B1}.Debug|Any CPU.Build.0 = Debug|Any CPU {19AC498E-9D71-439E-8565-583AAF6531B1}.Release|Any CPU.ActiveCfg = Release|Any CPU {19AC498E-9D71-439E-8565-583AAF6531B1}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE EndGlobalSection GlobalSection(ExtensibilityGlobals) = postSolution EnterpriseLibraryConfigurationToolBinariesPathV6 = packages\EnterpriseLibrary.Common.6.0.1304.0\lib\NET45;packages\EnterpriseLibrary.Data.6.0.1304.0\lib\NET45;packages\EnterpriseLibrary.Logging.6.0.1304.0\lib\NET45;packages\EnterpriseLibrary.ExceptionHandling.6.0.1304.0\lib\NET45;packages\EnterpriseLibrary.ExceptionHandling.Logging.6.0.1304.0\lib\NET45;packages\EnterpriseLibrary.Validation.6.0.1304.0\lib\NET45 EndGlobalSection EndGlobal</pre> <p></p> 2013-05-19T01:05:07-04:002013-05-19T01:05:07.023-04:00urn:uuid:00000000-0000-0000-0000-000005315413http://forums.asp.net/p/1885713/5315413.aspx/1?Microsoft+Enterprise+library+Vs+Spring+NETMicrosoft Enterprise library Vs Spring.NET <p>Has anyone worked on both Microsoft Enterprise Library and Spring.NET??</p> <p>We are planning to develop our next phase of application using Microsoft Enterprise Library coz i am getting really good feedback from other projects.</p> <p>If wud be great if you share ur personal experiences.</p> <p></p> <p>Thanks</p> 2013-02-27T04:26:09-05:002013-02-27T04:26:09.97-05:00urn:uuid:00000000-0000-0000-0000-000005324407http://forums.asp.net/p/1887858/5324407.aspx/1?free+tools+for+enterprise+application+free tools for enterprise application?? <p>Hi,</p> <p>are there any free tools for managing enterprise application such as below?</p> <p>1. Atlassian Bamboo [Continous Integration Server]</p> <p>2. JIRA - [Agile Methodology]</p> <p>3. Crucible [Code Rreview]</p> <p></p> <p>Thanks</p> 2013-03-07T07:09:54-05:002013-03-07T07:09:54.597-05:00urn:uuid:00000000-0000-0000-0000-000003099036http://forums.asp.net/p/1412224/3099036.aspx/1?How+to+use+Microsoft+Practices+EnterpriseLibrary+Data+app+configHow to use Microsoft.Practices.EnterpriseLibrary.Data + app.config <p>Hi all,</p> <p>&nbsp;</p> <p>I am a new bie to&nbsp; Microsoft.Practices.EnterpriseLibrary.</p> <p>Can some one help me or provide some useful links or code that will help me to start a simple way of accessing data using Microsoft enterprise library.</p> <p>Thanks</p> 2009-04-17T20:28:04-04:002009-04-17T20:28:04.583-04:00urn:uuid:00000000-0000-0000-0000-000005383728http://forums.asp.net/p/1903616/5383728.aspx/1?Message+Procedure+or+function+WriteLog+expects+parameter+corporateId+which+was+not+supplied+Message: Procedure or function 'WriteLog' expects parameter '@corporateId', which was not supplied. <p>I have converted WebSite from Asp.net 2.0 to Asp.Net 4.0&nbsp; as well updated the Enterprise library from v2.0.. to 5.0....</p> <p>but now it failing while writing the exception log in db getting error as <span color="#0000ff" size="2" style="color:#0000ff; font-size:small"> <span color="#0000ff" size="2" style="color:#0000ff; font-size:small"><span color="#0000ff" size="2" style="color:#0000ff; font-size:small"><span color="#0000ff" size="2" style="color:#0000ff; font-size:small"></span></span></span></span></p> <p>Message</p> <p><span color="#808080" size="2" style="color:#808080; font-size:small"><span color="#808080" size="2" style="color:#808080; font-size:small">:</span></span><span size="2" style="font-size:small"> </span><span color="#0000ff" size="2" style="color:#0000ff; font-size:small"><span color="#0000ff" size="2" style="color:#0000ff; font-size:small">Procedure</span></span><span size="2" style="font-size:small"> </span><span color="#808080" size="2" style="color:#808080; font-size:small"><span color="#808080" size="2" style="color:#808080; font-size:small">or</span></span><span size="2" style="font-size:small"> </span><span color="#0000ff" size="2" style="color:#0000ff; font-size:small"><span color="#0000ff" size="2" style="color:#0000ff; font-size:small">function</span></span><span size="2" style="font-size:small"> </span><span color="#ff0000" size="2" style="color:#ff0000; font-size:small"><span color="#ff0000" size="2" style="color:#ff0000; font-size:small">'WriteLog'</span></span><span size="2" style="font-size:small"> expects parameter </span><span color="#ff0000" size="2" style="color:#ff0000; font-size:small"><span color="#ff0000" size="2" style="color:#ff0000; font-size:small">'@corporateId'</span></span><span color="#808080" size="2" style="color:#808080; font-size:small"><span color="#808080" size="2" style="color:#808080; font-size:small">,</span></span><span size="2" style="font-size:small"> which was </span><span color="#808080" size="2" style="color:#808080; font-size:small"><span color="#808080" size="2" style="color:#808080; font-size:small">not</span></span><span size="2" style="font-size:small"> supplied</span><span color="#808080" size="2" style="color:#808080; font-size:small"></span></p> <p></p> <p><span color="#808080" size="2" style="color:#808080; font-size:small">&nbsp;<span size="2" style="font-size:small"><span size="2" style="font-size:small"><span size="2" style="font-size:small"></span></span></span></span></p> <p>Category</p> <p><span color="#808080" size="2" style="color:#808080; font-size:small"><span size="2" style="font-size:small"><span size="2" style="font-size:small"></span><span color="#808080" size="2" style="color:#808080; font-size:small"><span color="#808080" size="2" style="color:#808080; font-size:small">:</span></span><span size="2" style="font-size:small"> DatabaseLogging</span></span><span size="2" style="font-size:small"><span size="2" style="font-size:small"><span size="2" style="font-size:small"></span></span></span></span></p> <p>Priority</p> <p><span color="#808080" size="2" style="color:#808080; font-size:small"><span size="2" style="font-size:small"><span size="2" style="font-size:small"></span><span color="#808080" size="2" style="color:#808080; font-size:small"><span color="#808080" size="2" style="color:#808080; font-size:small">:</span></span><span size="2" style="font-size:small"> 0</span></span><span size="2" style="font-size:small"><span size="2" style="font-size:small"><span size="2" style="font-size:small"></span></span></span></span></p> <p>EventId</p> <p><span color="#808080" size="2" style="color:#808080; font-size:small"><span size="2" style="font-size:small"><span size="2" style="font-size:small"></span><span color="#808080" size="2" style="color:#808080; font-size:small"><span color="#808080" size="2" style="color:#808080; font-size:small">:</span></span><span size="2" style="font-size:small"> 100</span></span><span size="2" style="font-size:small"><span size="2" style="font-size:small"><span size="2" style="font-size:small"></span></span></span></span></p> <p>Severity</p> <p><span color="#808080" size="2" style="color:#808080; font-size:small"><span size="2" style="font-size:small"><span size="2" style="font-size:small"></span><span color="#808080" size="2" style="color:#808080; font-size:small"><span color="#808080" size="2" style="color:#808080; font-size:small">:</span></span><span size="2" style="font-size:small"> Error</span></span><span size="2" style="font-size:small"><span size="2" style="font-size:small"><span size="2" style="font-size:small"></span></span></span></span></p> <p>Title</p> <p><span color="#808080" size="2" style="color:#808080; font-size:small"><span size="2" style="font-size:small"><span size="2" style="font-size:small"></span><span color="#808080" size="2" style="color:#808080; font-size:small"><span color="#808080" size="2" style="color:#808080; font-size:small">:</span></span><span size="2" style="font-size:small">Enterprise Library Exception Handling</span></span><span size="2" style="font-size:small"><span size="2" style="font-size:small"><span size="2" style="font-size:small"></span></span></span></span></p> <p>Machine</p> <p><span color="#808080" size="2" style="color:#808080; font-size:small"><span size="2" style="font-size:small"><span size="2" style="font-size:small"></span><span color="#808080" size="2" style="color:#808080; font-size:small"><span color="#808080" size="2" style="color:#808080; font-size:small">:</span></span><span size="2" style="font-size:small"> DTCJDF6V7BM1</span></span><span size="2" style="font-size:small"><span size="2" style="font-size:small"><span size="2" style="font-size:small"></span></span></span></span></p> <p>App Domain</p> <p><span color="#808080" size="2" style="color:#808080; font-size:small"><span size="2" style="font-size:small"><span size="2" style="font-size:small"></span><span color="#808080" size="2" style="color:#808080; font-size:small"><span color="#808080" size="2" style="color:#808080; font-size:small">:</span></span><span size="2" style="font-size:small"> bbfa66ff</span><span color="#808080" size="2" style="color:#808080; font-size:small"><span color="#808080" size="2" style="color:#808080; font-size:small">-</span></span><span size="2" style="font-size:small">1</span><span color="#808080" size="2" style="color:#808080; font-size:small"><span color="#808080" size="2" style="color:#808080; font-size:small">-</span></span><span size="2" style="font-size:small">130120770422527923</span></span><span size="2" style="font-size:small"><span size="2" style="font-size:small"><span size="2" style="font-size:small"></span></span></span></span></p> <p>ProcessId</p> <p><span color="#808080" size="2" style="color:#808080; font-size:small"><span size="2" style="font-size:small"><span size="2" style="font-size:small"></span><span color="#808080" size="2" style="color:#808080; font-size:small"><span color="#808080" size="2" style="color:#808080; font-size:small">:</span></span><span size="2" style="font-size:small"> 8268</span></span><span size="2" style="font-size:small"><span size="2" style="font-size:small"><span size="2" style="font-size:small"></span></span></span></span></p> <p>Process</p> <p><span color="#808080" size="2" style="color:#808080; font-size:small"><span size="2" style="font-size:small"><span size="2" style="font-size:small"></span><span color="#0000ff" size="2" style="color:#0000ff; font-size:small"><span color="#0000ff" size="2" style="color:#0000ff; font-size:small">Name</span></span><span color="#808080" size="2" style="color:#808080; font-size:small"><span color="#808080" size="2" style="color:#808080; font-size:small">:</span></span><span size="2" style="font-size:small"> C</span><span color="#808080" size="2" style="color:#808080; font-size:small"><span color="#808080" size="2" style="color:#808080; font-size:small">:</span></span><span size="2" style="font-size:small">\Program Files\Common Files\Microsoft Shared\DevServer\10.0\WebDev</span><span color="#808080" size="2" style="color:#808080; font-size:small"><span color="#808080" size="2" style="color:#808080; font-size:small">.</span></span><span size="2" style="font-size:small">WebServer40</span><span color="#808080" size="2" style="color:#808080; font-size:small"><span color="#808080" size="2" style="color:#808080; font-size:small">.</span></span><span size="2" style="font-size:small">exe</span></span><span size="2" style="font-size:small"><span size="2" style="font-size:small"><span size="2" style="font-size:small"></span></span></span></span></p> <p>Thread</p> <p><span color="#808080" size="2" style="color:#808080; font-size:small"><span size="2" style="font-size:small"><span size="2" style="font-size:small"></span><span color="#0000ff" size="2" style="color:#0000ff; font-size:small"><span color="#0000ff" size="2" style="color:#0000ff; font-size:small">Name</span></span><span color="#808080" size="2" style="color:#808080; font-size:small"><span color="#808080" size="2" style="color:#808080; font-size:small">:</span></span><span size="2" style="font-size:small"> </span></span><span size="2" style="font-size:small"><span size="2" style="font-size:small"><span size="2" style="font-size:small"></span></span></span></span></p> <p>Win32 ThreadId</p> <p><span color="#808080" size="2" style="color:#808080; font-size:small"><span size="2" style="font-size:small"><span size="2" style="font-size:small"></span><span color="#808080" size="2" style="color:#808080; font-size:small"><span color="#808080" size="2" style="color:#808080; font-size:small">:</span></span><span size="2" style="font-size:small">6988</span></span><span size="2" style="font-size:small"><span size="2" style="font-size:small"><span size="2" style="font-size:small"></span></span></span></span></p> <p>Extended Properties</p> <p><span color="#808080" size="2" style="color:#808080; font-size:small"><span size="2" style="font-size:small"><span size="2" style="font-size:small"></span><span color="#808080" size="2" style="color:#808080; font-size:small"><span color="#808080" size="2" style="color:#808080; font-size:small">:</span></span><span size="2" style="font-size:small"> </span></span><span size="2" style="font-size:small"></span><span color="#008000" size="2" style="color:#008000; font-size:small"><span color="#008000" size="2" style="color:#008000; font-size:small"><span color="#008000" size="2" style="color:#008000; font-size:small"></span></span></span></span></p> <p>--&gt; MachineName: DTCJDF6V7BM1</p> <p><span color="#808080" size="2" style="color:#808080; font-size:small"><span color="#008000" size="2" style="color:#008000; font-size:small"><span color="#008000" size="2" style="color:#008000; font-size:small"><span color="#008000" size="2" style="color:#008000; font-size:small"></span></span></span></span></p> <p>--&gt; TimeStamp: 5/3/2013 5:51:14 PM</p> <p><span color="#808080" size="2" style="color:#808080; font-size:small"><span color="#008000" size="2" style="color:#008000; font-size:small"><span color="#008000" size="2" style="color:#008000; font-size:small"><span color="#008000" size="2" style="color:#008000; font-size:small"></span></span></span></span></p> <p>--&gt; FullName: Microsoft.Practices.EnterpriseLibrary.Logging, Version=5.0.414.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35</p> <p><span color="#808080" size="2" style="color:#808080; font-size:small"><span color="#008000" size="2" style="color:#008000; font-size:small"><span color="#008000" size="2" style="color:#008000; font-size:small"><span color="#008000" size="2" style="color:#008000; font-size:small"></span></span></span></span></p> <p>--&gt; AppDomainName: bbfa66ff-1-130120770422527923</p> <p><span color="#808080" size="2" style="color:#808080; font-size:small"><span color="#008000" size="2" style="color:#008000; font-size:small"><span color="#008000" size="2" style="color:#008000; font-size:small"><span color="#008000" size="2" style="color:#008000; font-size:small"></span></span></span></span></p> <p>--&gt; WindowsIdentity: AD-ENT\u189694</p> <p><span color="#808080" size="2" style="color:#808080; font-size:small"><span color="#008000" size="2" style="color:#008000; font-size:small"><span color="#008000" size="2" style="color:#008000; font-size:small"></span></span><span size="2" style="font-size:small"><span size="2" style="font-size:small"><span size="2" style="font-size:small"></span></span></span></span></p> <p>Exception Information Details</p> <p><span color="#808080" size="2" style="color:#808080; font-size:small"><span size="2" style="font-size:small"><span size="2" style="font-size:small"></span><span color="#808080" size="2" style="color:#808080; font-size:small"><span color="#808080" size="2" style="color:#808080; font-size:small">:</span></span></span><span color="#808080" size="2" style="color:#808080; font-size:small"><span color="#808080" size="2" style="color:#808080; font-size:small"><span color="#808080" size="2" style="color:#808080; font-size:small"></span></span></span></span></p> <p>======================================</p> <p><span color="#808080" size="2" style="color:#808080; font-size:small"><span color="#808080" size="2" style="color:#808080; font-size:small"><span color="#808080" size="2" style="color:#808080; font-size:small"></span></span><span size="2" style="font-size:small"><span size="2" style="font-size:small"><span size="2" style="font-size:small"></span></span></span></span></p> <p>Exception</p> <p><span color="#808080" size="2" style="color:#808080; font-size:small"><span size="2" style="font-size:small"><span size="2" style="font-size:small"></span><span color="#0000ff" size="2" style="color:#0000ff; font-size:small"><span color="#0000ff" size="2" style="color:#0000ff; font-size:small">Type</span></span><span color="#808080" size="2" style="color:#808080; font-size:small"><span color="#808080" size="2" style="color:#808080; font-size:small">:</span></span><span size="2" style="font-size:small"> System</span><span color="#808080" size="2" style="color:#808080; font-size:small"><span color="#808080" size="2" style="color:#808080; font-size:small">.</span></span><span size="2" style="font-size:small">Data</span><span color="#808080" size="2" style="color:#808080; font-size:small"><span color="#808080" size="2" style="color:#808080; font-size:small">.</span></span><span size="2" style="font-size:small">SqlClient</span><span color="#808080" size="2" style="color:#808080; font-size:small"><span color="#808080" size="2" style="color:#808080; font-size:small">.</span></span><span size="2" style="font-size:small">SqlException</span></span><span size="2" style="font-size:small"><span size="2" style="font-size:small"><span size="2" style="font-size:small"></span></span></span></span></p> <p>Errors</p> <p><span color="#808080" size="2" style="color:#808080; font-size:small"><span size="2" style="font-size:small"><span size="2" style="font-size:small"></span><span color="#808080" size="2" style="color:#808080; font-size:small"><span color="#808080" size="2" style="color:#808080; font-size:small">:</span></span><span size="2" style="font-size:small"> System</span><span color="#808080" size="2" style="color:#808080; font-size:small"><span color="#808080" size="2" style="color:#808080; font-size:small">.</span></span><span size="2" style="font-size:small">Data</span><span color="#808080" size="2" style="color:#808080; font-size:small"><span color="#808080" size="2" style="color:#808080; font-size:small">.</span></span><span size="2" style="font-size:small">SqlClient</span><span color="#808080" size="2" style="color:#808080; font-size:small"><span color="#808080" size="2" style="color:#808080; font-size:small">.</span></span><span size="2" style="font-size:small">SqlErrorCollection</span></span><span size="2" style="font-size:small"><span size="2" style="font-size:small"><span size="2" style="font-size:small"></span></span></span></span></p> <p>Class</p> <p><span color="#808080" size="2" style="color:#808080; font-size:small"><span size="2" style="font-size:small"><span size="2" style="font-size:small"></span><span color="#808080" size="2" style="color:#808080; font-size:small"><span color="#808080" size="2" style="color:#808080; font-size:small">:</span></span><span size="2" style="font-size:small"> 16</span></span><span size="2" style="font-size:small"><span size="2" style="font-size:small"><span size="2" style="font-size:small"></span></span></span></span></p> <p>LineNumber</p> <p><span color="#808080" size="2" style="color:#808080; font-size:small"><span size="2" style="font-size:small"><span size="2" style="font-size:small"></span><span color="#808080" size="2" style="color:#808080; font-size:small"><span color="#808080" size="2" style="color:#808080; font-size:small">:</span></span><span size="2" style="font-size:small"> 0</span></span><span size="2" style="font-size:small"><span size="2" style="font-size:small"><span size="2" style="font-size:small"></span></span></span></span></p> <p>Number</p> <p><span color="#808080" size="2" style="color:#808080; font-size:small"><span size="2" style="font-size:small"><span size="2" style="font-size:small"></span><span color="#808080" size="2" style="color:#808080; font-size:small"><span color="#808080" size="2" style="color:#808080; font-size:small">:</span></span><span size="2" style="font-size:small"> 201</span></span><span size="2" style="font-size:small"></span><span color="#0000ff" size="2" style="color:#0000ff; font-size:small"><span color="#0000ff" size="2" style="color:#0000ff; font-size:small"><span color="#0000ff" size="2" style="color:#0000ff; font-size:small"><span color="#0000ff" size="2" style="color:#0000ff; font-size:small"></span></span></span></span></span></p> <p>Procedure</p> <p><span color="#808080" size="2" style="color:#808080; font-size:small"><span color="#0000ff" size="2" style="color:#0000ff; font-size:small"><span color="#0000ff" size="2" style="color:#0000ff; font-size:small"><span color="#0000ff" size="2" style="color:#0000ff; font-size:small"></span></span></span></span></p> <p><span color="#808080" size="2" style="color:#808080; font-size:small"><span color="#808080" size="2" style="color:#808080; font-size:small">:</span></span><span size="2" style="font-size:small"> WriteLog</span></p> <p><span color="#808080" size="2" style="color:#808080; font-size:small"><span color="#0000ff" size="2" style="color:#0000ff; font-size:small"><span color="#0000ff" size="2" style="color:#0000ff; font-size:small"><span color="#0000ff" size="2" style="color:#0000ff; font-size:small"><span color="#0000ff" size="2" style="color:#0000ff; font-size:small"></span></span></span></span></span></p> <p>Server</p> <p><span color="#808080" size="2" style="color:#808080; font-size:small"><span color="#0000ff" size="2" style="color:#0000ff; font-size:small"><span color="#0000ff" size="2" style="color:#0000ff; font-size:small"><span color="#0000ff" size="2" style="color:#0000ff; font-size:small"></span></span></span></span></p> <p><span color="#808080" size="2" style="color:#808080; font-size:small"><span color="#808080" size="2" style="color:#808080; font-size:small">:</span></span><span size="2" style="font-size:small"> MWEC9D0057\IBT2K5DEV</span><span color="#808080" size="2" style="color:#808080; font-size:small"><span color="#808080" size="2" style="color:#808080; font-size:small">,</span></span><span size="2" style="font-size:small">11003</span></p> <p><span color="#808080" size="2" style="color:#808080; font-size:small"><span color="#0000ff" size="2" style="color:#0000ff; font-size:small"><span color="#0000ff" size="2" style="color:#0000ff; font-size:small"><span color="#0000ff" size="2" style="color:#0000ff; font-size:small"><span color="#0000ff" size="2" style="color:#0000ff; font-size:small"></span></span></span></span></span></p> <p>State</p> <p><span color="#808080" size="2" style="color:#808080; font-size:small"><span color="#0000ff" size="2" style="color:#0000ff; font-size:small"><span color="#0000ff" size="2" style="color:#0000ff; font-size:small"><span color="#0000ff" size="2" style="color:#0000ff; font-size:small"></span></span></span></span></p> <p><span color="#808080" size="2" style="color:#808080; font-size:small"><span color="#808080" size="2" style="color:#808080; font-size:small">:</span></span><span size="2" style="font-size:small"> 4<span size="2" style="font-size:small"></span></span></p> <p><span color="#808080" size="2" style="color:#808080; font-size:small"></span></p> <p>Source</p> <p><span color="#808080" size="2" style="color:#808080; font-size:small"></span></p> <p><span size="2" style="font-size:small"><span size="2" style="font-size:small"></span><span color="#808080" size="2" style="color:#808080; font-size:small"><span color="#808080" size="2" style="color:#808080; font-size:small">:</span></span><span size="2" style="font-size:small"> </span><span color="#808080" size="2" style="color:#808080; font-size:small"><span color="#808080" size="2" style="color:#808080; font-size:small">.</span></span><span size="2" style="font-size:small">Net SqlClient Data Provider</span></span></p> <p><span color="#808080" size="2" style="color:#808080; font-size:small"><span size="2" style="font-size:small"><span size="2" style="font-size:small"><span size="2" style="font-size:small"></span></span></span></span></p> <p>ErrorCode</p> <p><span color="#808080" size="2" style="color:#808080; font-size:small"><span size="2" style="font-size:small"><span size="2" style="font-size:small"></span><span color="#808080" size="2" style="color:#808080; font-size:small"><span color="#808080" size="2" style="color:#808080; font-size:small">:</span></span><span size="2" style="font-size:small"> </span><span color="#808080" size="2" style="color:#808080; font-size:small"><span color="#808080" size="2" style="color:#808080; font-size:small">-</span></span><span size="2" style="font-size:small">2146232060</span></span><span size="2" style="font-size:small"></span><span color="#0000ff" size="2" style="color:#0000ff; font-size:small"><span color="#0000ff" size="2" style="color:#0000ff; font-size:small"><span color="#0000ff" size="2" style="color:#0000ff; font-size:small"><span color="#0000ff" size="2" style="color:#0000ff; font-size:small"></span></span></span></span></span></p> <p>Message</p> <p><span color="#808080" size="2" style="color:#808080; font-size:small"><span color="#0000ff" size="2" style="color:#0000ff; font-size:small"><span color="#0000ff" size="2" style="color:#0000ff; font-size:small"><span color="#0000ff" size="2" style="color:#0000ff; font-size:small"></span></span></span></span></p> <p><span color="#808080" size="2" style="color:#808080; font-size:small"><span color="#808080" size="2" style="color:#808080; font-size:small">:</span></span><span size="2" style="font-size:small"> </span><span color="#0000ff" size="2" style="color:#0000ff; font-size:small"><span color="#0000ff" size="2" style="color:#0000ff; font-size:small">Procedure</span></span><span size="2" style="font-size:small"> </span><span color="#808080" size="2" style="color:#808080; font-size:small"><span color="#808080" size="2" style="color:#808080; font-size:small">or</span></span><span size="2" style="font-size:small"> </span><span color="#0000ff" size="2" style="color:#0000ff; font-size:small"><span color="#0000ff" size="2" style="color:#0000ff; font-size:small">function</span></span><span size="2" style="font-size:small"> </span><span color="#ff0000" size="2" style="color:#ff0000; font-size:small"><span color="#ff0000" size="2" style="color:#ff0000; font-size:small">'WriteLog'</span></span><span size="2" style="font-size:small"> expects parameter </span><span color="#ff0000" size="2" style="color:#ff0000; font-size:small"><span color="#ff0000" size="2" style="color:#ff0000; font-size:small">'@corporateId'</span></span><span color="#808080" size="2" style="color:#808080; font-size:small"><span color="#808080" size="2" style="color:#808080; font-size:small">,</span></span><span size="2" style="font-size:small"> which was </span><span color="#808080" size="2" style="color:#808080; font-size:small"><span color="#808080" size="2" style="color:#808080; font-size:small">not</span></span><span size="2" style="font-size:small"> supplied</span><span color="#808080" size="2" style="color:#808080; font-size:small"></span></p> <p><span color="#808080" size="2" style="color:#808080; font-size:small"></span></p> <p><span color="#808080" size="2" style="color:#808080; font-size:small">What could be the problem&nbsp; ?</span></p> 2013-05-03T18:54:36-04:002013-05-03T18:54:36.76-04:00urn:uuid:00000000-0000-0000-0000-000005383703http://forums.asp.net/p/1903606/5383703.aspx/1?Enterprise+Library+6+0+RELEASED+Enterprise Library 6.0 RELEASED! <p><a href="http://microsoft.com/practices">Microsoft patterns &amp; practices</a> team released the new version of EntLib, with a new block (Semantic Logging Application Block) and lots of other goodness. Check out the <a href="http://aka.ms/el6">official announcement</a>&nbsp;and <a href="http://aka.ms/el6announce"> Soma's post</a>.</p> 2013-05-03T17:57:45-04:002013-05-03T17:57:45.187-04:00urn:uuid:00000000-0000-0000-0000-000005323168http://forums.asp.net/p/1887582/5323168.aspx/1?Enterprise+Library+5+0+support+MySQLEnterprise Library 5.0 support MySQL <p>Hi,</p> <p>Please let me know how to implement enterprise library for MySQL database.<br> <br> Regards,<br> Senthil</p> 2013-03-06T05:51:36-05:002013-03-06T05:51:36.56-05:00urn:uuid:00000000-0000-0000-0000-000005382779http://forums.asp.net/p/1903410/5382779.aspx/1?Enterprise+library+advantages+over+own+custom+data+connection+classesEnterprise library advantages over own custom data connection classes <p>Hello, can any one help me with the exact advantages of enterprise library manager (Data Application Block). Is it possible to switch the database easily using data application block (eg. from sql server to Oracle) with out changing any code</p> <p>Please help</p> 2013-05-03T02:38:30-04:002013-05-03T02:38:30.767-04:00urn:uuid:00000000-0000-0000-0000-000005356939http://forums.asp.net/p/1896608/5356939.aspx/1?Pass+Data+Table+to+SQL+Sever+From+ASP+NEt+using+Enterprise+LibraryPass (Data Table) to SQL Sever From ASP.NEt using Enterprise Library <p>Using enterprise library to pass xml type parmeter is quite good experience but sometime it is hard to catch errors,may be while casting types in sql server.</p> <p>It is good idea to create data type (table) in sql server and pass data table to stored procedure.</p> <p>&nbsp;</p> <p>Regards</p> <p>Khuram Shehzad&nbsp;</p> 2013-04-09T04:43:47-04:002013-04-09T04:43:47.413-04:00urn:uuid:00000000-0000-0000-0000-000005349879http://forums.asp.net/p/1894773/5349879.aspx/1?Functionality+of+Logger+Write+Functionality of Logger.Write("...") <p>Hi all,</p> <p>&nbsp; I'm using Enterprise Library to log the exception. When i execute the following code,</p> <p>&nbsp; Logger.Write(&quot;Exception occured&quot;);</p> <p>Where this exception message will be logged? Where can i see this message?</p> <p>&nbsp;</p> <p>Thanks</p> 2013-04-02T09:22:28-04:002013-04-02T09:22:28.443-04:00urn:uuid:00000000-0000-0000-0000-000005336892http://forums.asp.net/p/1891638/5336892.aspx/1?Have+EnterpriseLibrary+Logging+create+a+file+in+UTF+8+HOW+Have EnterpriseLibrary.Logging create a file in UTF-8, HOW? <p>Hi there,</p> <p>I have been spamming google for some time about this now, but i cannot seem to find the solution.</p> <p>I have set up a LogListener with a corresponding Formatter and it is working just fine:</p> <pre class="prettyprint">&lt;add name=&quot;NormalLogListener&quot; type=&quot;Microsoft.Practices.EnterpriseLibrary.Logging.TraceListeners.RollingFlatFileTraceListener, Microsoft.Practices.EnterpriseLibrary.Logging&quot; listenerDataType=&quot;Microsoft.Practices.EnterpriseLibrary.Logging.Configuration.RollingFlatFileTraceListenerData, Microsoft.Practices.EnterpriseLibrary.Logging&quot; fileName=&quot;logs/MVC22.log&quot; footer=&quot;&quot; formatter=&quot;ShortLogFormatter&quot; header=&quot;&quot; rollInterval=&quot;Day&quot; timeStampPattern=&quot;yyyy-MM-dd&quot; maxArchivedFiles=&quot;14&quot; /&gt;</pre> <p>...</p> <pre class="prettyprint">&lt;add type="Microsoft.Practices.EnterpriseLibrary.Logging.Formatters.TextFormatter, Microsoft.Practices.EnterpriseLibrary.Logging" template="{timestamp(local)} - {severity} - {category} - {message}" name="ShortLogFormatter" /&gt;</pre> <p>I only have one small issue: How can I influence the file encoding of the log file that is created?</p> <p>I see the file is created with ANSI encoding, but i really want it to be UTF-8, because i want to log some string parameters that can contain umlauts and all that good stuff.</p> <p>Can someone point me to the location where i can configure this?</p> 2013-03-19T09:57:42-04:002013-03-19T09:57:42.367-04:00urn:uuid:00000000-0000-0000-0000-000001128292http://forums.asp.net/p/941983/1128292.aspx/1?what+is+sqlhelperwhat is sqlhelper Hi friends<br> whats sqlhelper ? these days am keep reading abt this class .looks like its a class related to DAAB.<br> am using patterns &amp; practices june edition application block but i did not see any sqlhelper class in it !!<br> this sqlhelper class is in old version of DAAB ,is it?<br> Thanks for your input<br> 2005-11-30T19:55:37-05:002005-11-30T19:55:37.777-05:00urn:uuid:00000000-0000-0000-0000-000005344416http://forums.asp.net/p/1893476/5344416.aspx/1?Patterns+and+Practices+for+Mobile+apps+Patterns and Practices for Mobile apps? <p>I am looking for patterns and practices for developing mobile apps in .Net / C# - specifically for help design..</p> <p>I cannot find any - can someone point me in the right direction?</p> 2013-03-26T17:55:18-04:002013-03-26T17:55:18.05-04:00urn:uuid:00000000-0000-0000-0000-000005326100http://forums.asp.net/p/1888290/5326100.aspx/1?Data+Access+Application+Block+adviceData Access Application Block advice <p>hi all,</p> <p>i want to start working with design pattern and i have a project has a database about 6 tables.</p> <p>Is Data Access Application Block for .NET suitable for small kind of projects or it designed for only entrprise one.</p> <p>I need you advice before go on design pattern.</p> <p><a href="http://www.microsoft.com/en-us/download/details.aspx?id=435" title="Data Access Application Block for .NET v2">http://www.microsoft.com/en-us/download/details.aspx?id=435</a></p> <p>thanks so much.</p> <p></p> 2013-03-08T15:50:54-05:002013-03-08T15:50:54.23-05:00urn:uuid:00000000-0000-0000-0000-000005308866http://forums.asp.net/p/1884255/5308866.aspx/1?Connection+errorConnection error <p>Hi, im using the Enterprise Library to insert and update data to an sql database.<br> <br> c# code:</p> <pre class="prettyprint">Database db = DatabaseFactory.CreateDatabase(); IDbConnection connection = db.GetConnection(); connection.Open(); IDbTransaction transaction = connection.BeginTransaction(); DBCommandWrapper command; try { //insert part command = db.GetStoredProcCommandWrapper(&quot;stored_procedure1&quot;); command.CommandTimeout = 900; command.AddInParameter(&quot;@parameter1&quot;, DbType.Int32, 3); db.ExecuteNonQuery(command, transaction); //update part command = db.GetStoredProcCommandWrapper(&quot;stored_procedure2&quot;); command.CommandTimeout = 900; command.AddInParameter(&quot;@param1&quot;, DbType.Int32, 5); db.ExecuteNonQuery(command, transaction); transaction.Commit(); } finally { connection.Close(); }</pre> <p><br> the code is on a method.<br> The method is executed many times and sometimes im getting error:<br> &quot;Timeout expired. The timeout period elapsed prior to obtaining a connection from the pool. This may have occurred because all pooled connections were in use and max pool size was reached.&quot;<br> <br> My question is: Is it ok to have the insert and update part together as it is above?<br> <br> Thanks.</p> 2013-02-20T20:24:40-05:002013-02-20T20:24:40.777-05:00urn:uuid:00000000-0000-0000-0000-000005310329http://forums.asp.net/p/1884554/5310329.aspx/1?Check+open+connections+toolCheck open connections tool <p>Hi, im using the Enterprise Library to insert and update data to an sql database.</p> <p>Im getting error:</p> <p>&quot;Timeout expired. The timeout period elapsed prior to obtaining a connection from the pool. This may have occurred because all pooled connections were in use and max pool size was reached.&quot;</p> <p>I want to check how many open connections I have while the application is running.</p> <p>Which tool can I use to do that?</p> <p>Thanks.</p> 2013-02-21T20:56:57-05:002013-02-21T20:56:57.137-05:00urn:uuid:00000000-0000-0000-0000-000005318693http://forums.asp.net/p/1886489/5318693.aspx/1?Wants+to+know+when+should+i+use+singleton+patternWants to know when should i use singleton pattern <p>Please provide me practical example.</p> 2013-03-01T11:07:30-05:002013-03-01T11:07:30.273-05:00