[{"data":1,"prerenderedAt":188},["ShallowReactive",2],{"tag-enterpriselibrary":3},{"tag":4,"articles":24},{"id":5,"title":6,"body":7,"description":14,"extension":15,"img":16,"meta":17,"name":18,"navigation":19,"path":20,"seo":21,"stem":22,"__hash__":23},"tags\u002Ftags\u002Fenterpriselibrary.md","Enterpriselibrary",{"type":8,"value":9,"toc":10},"minimark",[],{"title":11,"searchDepth":12,"depth":12,"links":13},"",2,[],"Enterprise Library (not to be confused by Entity Framework)","md","https:\u002F\u002Fimages.unsplash.com\u002Fphoto-1598313183973-4effcded8d5e?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=675&q=80",{},"enterpriselibrary",true,"\u002Ftags\u002Fenterpriselibrary",{"description":14},"tags\u002Fenterpriselibrary","8K38ejjAJwlBSzEmuwI8cDmMUOLiuGbh7qKzUcvirIo",[25,102,141],{"id":26,"title":27,"author":28,"body":29,"createdAt":93,"description":94,"extension":15,"img":95,"meta":96,"navigation":19,"path":97,"seo":98,"stem":99,"tags":100,"updatedAt":93,"__hash__":101},"articles\u002Farticles\u002Fenterprise-library-components-4-1-contents-of-the-download.md","Enterprise Library Components 4.1 (Contents of the download)","[object Object]",{"type":8,"value":30,"toc":91},[31,35,42,45,56,59,80],[32,33,34],"p",{},"The default installation folder C:\\Program Files\\Microsoft Enterprise Library 4.1 - October 2008",[36,37,38],"ul",{},[39,40,41],"li",{},"Bin - contains the binaries you can use in the application. ",[32,43,44],{},"Also, the configuration editor EntLibConfig.exe which can be used to create and edit configuration files for EntLib",[36,46,47,50,53],{},[39,48,49],{},"Docs - documentation",[39,51,52],{},"Src - contains the installer file for the Enterprise Library source file",[39,54,55],{},"Visual Studio Integration - contains binaries that make the configuration Editor available in Visual Studio",[32,57,58],{},"The installer also puts the original source code in C:\\EntLib41Src",[36,60,61,64,71,74,77],{},[39,62,63],{},"bin - contains the same as the bin above",[39,65,66,67,70],{},"Blocks - contains a solution that houses all 42 Enterprise Library projects. There is also a second solution that additionally contains unit test projects,\nand the actual unit tests to verify correct working of Enterprise Library as you change it.",[68,69],"br",{},"This is a great value that allows you to feel comfortable editing this pile of code while being able to prove you have not broken anything",[39,72,73],{},"Lib - contains object builder and unity binaries that you can use in your application independent of EntLib",[39,75,76],{},"Quick Starts - contains sample code in both C# and VB.NET that you can use to see available functionality of EntLib and how to use it in your own applications.",[39,78,79],{},"Scripts - contains batch files to amongst others compile EntLib from the source, register assemblies and to install Northwind database for the quick starts",[32,81,82,83,87],{},"Enteprise Library 4.1 can be found ",[84,85],"a",{"title":86,"href":86},"http:\u002F\u002Fmsdn.microsoft.com\u002Fen-us\u002Flibrary\u002Fdd203099.aspx",[84,88,86],{"href":86,"rel":89},[90],"nofollow",{"title":11,"searchDepth":12,"depth":12,"links":92},[],"2015-04-20T08:07:17.5500000-04:00","Learn about Microsoft Enterprise Library","\u002Farticles\u002Fimages\u002FwnzEaKNdyZ.png",{},"\u002Farticles\u002Fenterprise-library-components-4-1-contents-of-the-download",{"title":27,"description":94},"articles\u002Fenterprise-library-components-4-1-contents-of-the-download",[18],"VPzkUCTzFlbTNRdwVqnyU6p2PWmCgYjJgbGSKWQNA1E",{"id":103,"title":104,"author":28,"body":105,"createdAt":133,"description":134,"extension":15,"img":95,"meta":135,"navigation":19,"path":136,"seo":137,"stem":138,"tags":139,"updatedAt":133,"__hash__":140},"articles\u002Farticles\u002Fenterprise-library-configuration-and-visual-studio.md","Enterprise Library Configuration and Visual Studio",{"type":8,"value":106,"toc":131},[107,113,122,125,128],[32,108,109,110,112],{},"If your company decides to sign their Enterprise Library files with their public and private keys the default Ent LIb Configuration tool that is integrated with Visual Studio will not by default use the newly signed assemblies.  The following is a brief description on how to update your system so that the appropriate assemblies are used.",[68,111],{},"\n1.) Add the following registry key and values to the registry",[114,115,116,117,121],"blockquote",{},"  \nHKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\VisualStudio\\9.0\\Packages\\{488366a4-630c-4a0e-a6a2-b019cee13bea}\\",[118,119,120],"strong",{},"{ConfigurationSets}","  \nYou need to add an additional configuration set.  By default you will see the Microsoft Signed set.  Below is how the new key will be set up.   In the following example you will need to change the paths for ConfigurationUIAssemblyPath and ConfigurationUIPluginDirectory to point to where your company signed assemblies are located.  \n",[114,123,124],{},"  \n{Your Set Name}     \n     (Default) REG_SZ (Value not set)      \n     (ConfigurationUIAdapterClass) REG_SZ Microsoft.Practices.EnterpriseLibrary.Configuration.Design.UI.SingleHierarchyConfigurationUIHostAdapter      \n     (ConfigurationUIAssemblyPath) REG_SZ C:\\CompanySigned\\GAC\\EnterpriseLibrary\\Microsoft.Practices.EnterpriseLibrary.Configuration.Design.UI.dll      \n     (ConfigurationUIPluginDirectory) REG_SZ C:\\CompanySigned\\GAC\\EnterpriseLibrary  \n",[84,126,127],{"href":127},"http:\u002F\u002Fentlib.codeplex.com\u002FThread\u002FView.aspx?ThreadId=30986",[84,129,130],{"href":130},"http:\u002F\u002Fblogs.msdn.com\u002Fb\u002Ftomholl\u002Farchive\u002F2007\u002F04\u002F19\u002Favoiding-configuration-pitfalls-with-incompatible-copies-of-enterprise-library.aspx",{"title":11,"searchDepth":12,"depth":12,"links":132},[],"2015-04-20T08:07:15.4300000-04:00","Standardizing on Enterprise Library",{},"\u002Farticles\u002Fenterprise-library-configuration-and-visual-studio",{"title":104,"description":134},"articles\u002Fenterprise-library-configuration-and-visual-studio",[18],"GATgvYdV4wmFRXY_FOdmfrE217by8SBpnuLvn1rFils",{"id":142,"title":143,"author":28,"body":144,"createdAt":178,"description":179,"extension":15,"img":180,"meta":181,"navigation":19,"path":182,"seo":183,"stem":184,"tags":185,"updatedAt":178,"__hash__":187},"articles\u002Farticles\u002Fnet-4-new-gac-locations-gacutil.md",".NET 4 New GAC Locations\u002FGacUtil",{"type":8,"value":145,"toc":176},[146,149,152,155,158,161,164,167,170,173],[32,147,148],{}," This is what I know, let me know if you know otherwise.  There are now 2 distinct GAC locations that you have to manage as of the .NET 4 Framework release.",[32,150,151],{},"The GAC was split into two, one for each CLR (2.0, 3.5 AND 4.0).  The CLR version used for both .NET Framework 2.0 and .NET Framework 3.5 is CLR 2.0. To avoid issues between CLR 2.0 and CLR 4.0 , the GAC is now split into private GAC’s for each runtime.  The main change is that CLR v2.0 applications now cannot see CLR v4.0 assemblies in the GAC.",[32,153,154],{},"In previous .NET versions, when I installed a .NET assembly into the GAC (using gacutil.exe or even drag and drop to the c:\\windows\\assembly directory), I could find it in the ‘C:\\Windows\\assembly’ path.",[32,156,157],{},"With .NET 4.0, GAC is now located in the 'C:\\Windows\\Microsoft.NET\\assembly’ path.",[32,159,160],{},"In order to install a dll to the .NET 4 GAC it is necessary to use the gacutil found C:\\Program Files (x86)\\Microsoft SDKs\\Windows\\v7.0A\\Bin\\GacUtil.exe  In addition, you can no longer use the drag n' drop (in reality the drag n' drop really executed the gacutil via a windows explorer extension).",[32,162,163],{},"After you use the gacutil.exe -i {path to dll} you can view that it is indeed in the gac via gacutil -l (which will list all dlls in the gac).  I used this command and piped the results to a text file via > out.txt which made it easier to find the recently added component.",[32,165,166],{},"I was not able to see my gac object in the directory for .net 4 (i.e. c:\\windows\\microsoft.net\\assembly path).  I am not sure why just yet.  Ideas?",[32,168,169],{},"At this point, the object is in the local gac however if you are using vs.net 2010 it will still not show up in the list of references. To get the component to show up in the VS.NET list of references can add a registry entry to HKLM\\SOFTWARE\\WOW6432Node\\Microsoft.NETFramework\\v4.0.30319\\AssemblyFoldersEx  At this point, the component is in the local GAC and is in the list of references to be used by vs.net.",[32,171,172],{},"Note, I did find that if I just added the path to the registry without adding it to the gac it was available to vs.net.  So, because the component is listed via vs.net add references it does not necessarily mean it is in the gac.",[32,174,175],{},"What still confuses me is that I am still unable to view my recently added component in the .NET 4 directories above.  Ideas?",{"title":11,"searchDepth":12,"depth":12,"links":177},[],"2015-04-20T08:07:14.0800000-04:00","There are now 2 distinct GAC locations that you have to manage as of the .NET 4 Framework release...","\u002Farticles\u002Fimages\u002Fggb4dMDcZM.png",{},"\u002Farticles\u002Fnet-4-new-gac-locations-gacutil",{"title":143,"description":179},"articles\u002Fnet-4-new-gac-locations-gacutil",[186,18],"aspnet","2K_K7LqZ6HZ_OhbA_zCui0-ixHdV9XtLRHPoIkAcdss",1781574759023]