During the mapping process you may encounter this error. In my situation the case was that I had the wrong namespace identified within the class attribute within a bag element containing a one-to-many element, like the below. <bag name=”Customer”> <key column=”CUST_ID” /> <one-to-many class=”CompanyName.SysName.Nhibernate.Common.Customer” /> </bag> Instead of Common I had another directory […]
Read More →Archive for May, 2013
NHibernate MappingException an association from the table refers to an unmapped class
When you are creating your mapping files for which NHibernate uses to know the data types and relationships of the data model, you are likely to receive this error message: An association from the table TABLENAME refers to an unmapped class: CLASS The is usually generated from the class.hbm.xml file within a many-to-one mapping where […]
Read More →NHibernate could not execute query[SQL: SQL not available] in C#
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 →