Add WCF Message Id in every log4net message

0
I needed to have the WCF message identifier in every log message because I needed to correlate the log messages from a particular WCF call. The best way to achieve...

Setting the original file name when using Response.BinaryWrite()

0
Imagine you have file saved in a database. Then you have an aspx page that gets that page and sends it back to the user. If you just simply use Response.BinaryWrite you...

How to Handle known Exceptions?

0
This post will describe several ways to handle known Exceptions in a project. For each possible implementation, we will do an overview of the flow that the exception does to...

Adapting .netTiers for Enterprise Library v6.0 and .NET v4.5

1
Code generation is now more than ever a core activity in software development. With the growing complexity of systems and the need to meet deadlines, getting your database access...

Conditional Post-build event in Visual Studio 2008

0
I have a class library project where I want to add the assembly to the GAC but only when the configuration is Debug. The solution is: if...

Raven.Studio.zip Index.html not available

0
I had RavenDb embedded in a aspnet.core web api and I was getting this error when I tried to reach Raven Studio: The following file was not available: index.html....

SharePoint 2007 – Checking if a Workflow Instance is Completed

0
Introduction This blog post will show you how to check if a certain workflow instance is completed in a SharePoint list. In this example, let's assume that the default "Documents"...

Add a custom section to web.config

0
If you have created a custom section like this, and if you want to add it programmatically to web.config then you have to: Use the WebConfigurationManager class and open the...

Using Sandcastle to Generate Documentation

0
Sandcastle is Microsoft's documentation compiler. It uses reflection of source assemblies and integrates the XML comments placed in the code by the developer to generate comprehensive MSDN-like documentation. Actually,...

The Controls collection cannot be modified because the control contains code blocks (i.e. )

0
Because I have pages with the markup <%= someVariable%> like <script type="text/javascript"> function ConfirmCallBack(arg) ...