I was writing some new code that would use NHibernate a few days back and while I was testing it I received thie error: Could not execute query[SQL: SQL not available] The value xxx is not of type xxx.xxx.xxx and cannot be used in this generic collection. Parameter name: value de-DE: xxx ist kein Wert […]
Read More →Foreign Key constraint conflict Parent Child using NHibernate

This was a tough one. I got everything working just fine with the mappings and my classes, I even wrote some test code to check if the Parent Child data was being inserted ok. What I failed to do was create the FOREIGN KEY relationship between the Parent table and the Child table. Once I […]
Read More →Foreign Key is always 0 (zero) when inserting Parent Child using NHibernate

This one was a toughy. I searched for some time looking for examples about HOW TO: INSERT PARENT / CHILD RELATIONSHIPS using NHIBERNATE. What I found were these really cool looking object oriented AddChild methods, many-to-one and one-to-many mapping relationships. The thing about those examples is that they do not take into account legacy database […]
Read More →Disable navigation buttons and navigation history within a WPF Navigation Page program

The Navigation functionality of WPF is pretty cool. It lets the developer create a wizard like program which walks the user through a number of consecutive steps from start to finish. All of which happens within a single window, similar to a web browser, but it’s a desktop program. When implementing the WPF Navigation program […]
Read More →Setting up WebDAV on IIS using Windows Authentication and a UNC, mapped drive or file share

I have spent some hours setting up a solution defined in the title of this article. I want to make clear that there are numerous ways of configuring this and there are numerous Kerberos/Windows Authentication configuration possibilities based on different SPNs, IE Zones, Application Pool identities, etc… This article is intended to provide 1 possible, […]
Read More →Enabling Failed Request Logging on a Windows Azure Web Site

I am moving all my articles to one location. This article is a bit old, and is here for historical purpose. If you end up here please read this updated article here (Enable Failed Request Tracing for an Azure App Service Web App) Using Failed Request Tracing is a very useful tool for troubleshooting performance […]
Read More →Changes made to one web site are applied to another

I was working on an issue some months ago where changes being made to a single web site were being applied to another web site on the server. I found that strange because that should not happen, I mean, making a change to a web site should be specific to that web site and those […]
Read More →What’s new in IIS 8.5 – Microsoft Internet Information Services 8.5 New Features

With the release of the new version of Windows Server 2012 R2 comes a new version of IIS, IIS 8.5. The new features can be broken into 2 categories, Scalability and Manageability: Manageability – Logging Enhancements Manageability – ETW Events Scalability – Dynamic site activation Scalability – Idle Worker Process Page-out Certificate Rebind – see […]
Read More →Using Web Platform Installer on a server without internet access

I was trying to setup a WebDAV installation that mapped to a UNC share and used Windows Authentication. I had to create a test domain with numerous servers in order to grant all the required permissions to get this setup to work. I had some problem with the initial step of this project because the […]
Read More →Create a memory dump when the W3WP process terminates using Procdump

There are times when you need to capture a W3WP memory dump when the process stops responding. However, the process might stop responding in the middle of the night or early morning which is not the best time to manually take a memory dump. You can configure Procdump to execute and capture a memory dump […]
Read More →