RavenDB embedded with ASP NET Core web API
This post describes how you can set up a simple ASP NET Core web API with Visual Studio 2017 to use an embedded RavenDB. This is a step by...
QueryStringPageViewer WebPart for Sharepoint
/// /// Mads Haugbø Nissen 2003(c) /// Objectware AS /// Norway /// /// http://weblogs.asp.net/mnissen /// /// The QueryStringPageViewer provides the same functionality as the regular...
Custom properties log4net
I had the need to add some custom properties in my log4net messages.
I used the log4net contexts like this:
log4net.ThreadContext.Properties = messageId;
And then updated my rolling file appender:
<!-- Rolling File...
Redirecting 2 domains from http to https and non-www to www
Recently I had to configure some redirections in a website that contains two different domains.
Both use https and I want the main site, which uses the primary domain, to...
Force Image Cache Refresh Programmatically
The best solution I found, to force the browser cache to refresh for an image, is to modify the image url in the html.
Example:
I have an image with this...
How to create a custom section for an application config file
First we need to create a custom ConfigurationElement. This configuration element only has a value attribute.
public class MyConfigurationElement : ConfigurationElement
{
/// <summary>
///...
Using Sandcastle to Generate Documentation
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,...
Adapting .netTiers for Enterprise Library v6.0 and .NET v4.5
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...
Integration Tests in .NET WebApi
In software development, testing is an essential aspect that ensures the stability and reliability of applications. Three primary types of tests are commonly used: unit tests, integration tests, and end-to-end tests. In this blog post, we will discuss these testing types in the context of a .NET WebAPI project and provide an example implementation of integration testing using an in-memory database.
Conditional Post-build event in Visual Studio 2008
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...

![[FIX] BizTalk Server 2010, 2013, 2013 R2 & 2016 errors “Class not registered (WinMgmt)” or “Access denied”](https://blogit.create.pt/wp-content/uploads/2018/07/access-black-and-white-blur-270514-218x150.jpg)


















