Category .NET

Enterprise Library 6, Semantic Logging, Part 3, Getting into the details

This post continues on from part 2: Enterprise Library 6, Semantic Logging, Part 2, OUT-OF-PROCESS Keywords Keywords can be used if in the EventSource and later in the listener to defined groups. – Keywords must be a number to the power of 2, or 2^X because it is used as a bit array. – Custom […]

Enterprise Library 6, Semantic Logging, Part 2, OUT-OF-PROCESS

This blog demonstrates how to log to the database using semantic logging (SLAB) OUT-OF-PROCESS in a MVC4 application. Follow the instructions as shown in part 1 Enterprise Library 6, Semantic Logging, Part 1, database listener UPDATE: The service is now available as a NuGet package. Download and install the OUT-OF-PROCESS service: http://go.microsoft.com/fwlink/p/?LinkID=290903 Follow the instructions […]

Enterprise Library 6, Semantic Logging, Part 1, database listener

This is a simple MVC sample which shows how to set up a basic Enterprise Library Semantic Logging (SLAB) application which logs to the database. Create a simple MVC project Get the Semantic Logging from nuget: These nuget packages adds just 4 new assemblies as shown (No Unity): Install the scripts to your database: Scripts […]

How to create a nuget Server

Required – VS2012 – NuGet.server 2.5.0.1 Create a new empty web application Menu: File/new/Project Right click the created project and click Manage NuGet Packages… In the new project search for nuget. Install NuGet.Server Open the web config and delete the complilation node as shown below Run the application and you should see the following: Per […]

Entity Framework support for multiple domains

Discovered a cool feature in EF5. You can create multiple Edmx models in one .NET project. You can now create multiple domains with separate domain models within the same assembly. Up to now, I had one large Edmx file with all the required db objects for all my repositories and also only in one color. […]

Windows 8 Metro App deployment – Create Cert (pfx)

Creating the cert for Windows 8 Apps The following howto was taken from the following website: https://bytescout.com/support/index.php?_m=knowledgebase&_a=viewarticle&kbarticleid=296 Changes must be made to the makecert args, otherwise the Metro app won’t accept the pfx file! INFO: http://msdn.microsoft.com/en-us/library/windows/desktop/aa386968(v=vs.85).aspx .PFX file (Personal Information Exchange format) is the file containing both a public (.cer file) and a private (.pvk […]

TFS includes git support

I find it very exciting that TFS is starting to support git at last… Here’s some links. http://arstechnica.com/information-technology/2013/01/microsoft-embraces-git-with-new-tfs-support-visual-studio-integration/ http://blogs.msdn.com/b/bharry/archive/2013/01/30/git-init-vs.aspx http://blogs.msdn.com/b/visualstudioalm/archive/2013/01/30/getting-started-with-git-in-visual-studio-and-team-foundation-service.aspx

Enterprise Library 5.0 db logging

I was looking for a easy to understand example of EL 5.0 database logging and couldn’t find one, so here’s a simple example of Enterprise Library 5.0 .NET logging. It logs to the database. Just download from github. Have fun. code: https://github.com/damienbod/ELDBLogging Database Scripts \EntLib50Src\Blocks\Logging\Src\DatabaseTraceListener\Scripts The config tool is here: C:\Program Files (x86)\Microsoft Enterprise Library 5.0\Bin\EntLibConfig.exe to […]