It took me some time to find out that you cannot have periods “.” in the column name of dynamically created DataTables. I would run the query, created the columns and add the rows to the table, but nothing would show in the DataGrid when I bound it. I use the HQL interface from NHibernate […]
Read More →Archive for January, 2012
NHibernate – object with same identifier value was already associated
One of the awesome capabilities of NHibernate is its 1st and 2nd level caching functionality. Each time a query is submitted for execution NHibernate first looks in the cache for the entity before taking the query to the database and selecting the data. There is a lot of terminology you need to know before you […]
Read More →Installing Window 8 Beta on Hyper-V, Key Combinations
This is an old article I wrote some years ago. I am adding it here as I move all my articles to this location. Enjoy the historical event. I am very excited, to say the least, to start using the preview/beta releases of Windows 8 Server, Windows 8, IIS 8 and Visual Studio 11. I […]
Read More →Application Request Routing Error – 502.4 – Bad Gateway
I was setting up an Application Request Routing server and received the error shown in Figure 1 when I attempted to access the ARR URL. Figure 1, HTTP Error 502.4 – Bad Gateway The cause was due to the Health Status of the servers being set to “Unhealthy” as shown in Figure 2. They were […]
Read More →Using NuGet to install your ORM into Visual Studio
I have spent a lot of time Working with NHibernate 3.0 and now am also giving some attention to the Entity Framework. One of the road blocks for using NHibernate is the initial configuration requirements. There are a significant number of actions which must be taken to get NHibernate working, where as, the Entity Framework […]
Read More →LINQ generated NHibernate and Entity Framework SQL
One of my favorite aspects of ORMs is that I no longer have to write SQL. I like this because I was never really good at it once it exceeded the joining of 2 tables. The really complicated queries I left with the SQL people or a DBA. Nonetheless, I still wanted to look at […]
Read More →Creating a W3WP Memory dump on Windows Server 2008 R2
On a web server with multiple application pools, there most likely will be multiple W3WP processes. Therefore, the first action to take when creating a memory dump of a W3WP worker process is to find which W3WP process you need to get the dump of. To do this, open IIS 7 and select the web […]
Read More →Web Farm Framework Architecture
I am very excited about the Web Farm Framework (WFF). Having administered many web farms in my past, this technology resolves a lot of the activities which where a burden. This blog will show a standard architectural configuration of a WFF environment. Figure 1 shows the controller server, the primary server and the multiple secondary […]
Read More →Enable and Activate Failed Request Tracing Rules
There is a new troubleshooting capability available in IIS 7, it is called Failed Request Tracing Rules. It provides a lot of very useful information which can help pinpoint the cause of performance problem or error. At the moment it is not installed by default and you may see the setting as shown in Figure […]
Read More →NHibernate MappingException could not compile mapping document
This is a fairly common error message which a programmer will receive during the NHibernate mapping process. The inner exception was: {“persistent class NAMESPACE.CLASSNAME, NAMESPACE not found”} {“Could not compile the mapping document: NAMESPACE.CLASSNAME.hbm.xml”} The root cause of this error was that the class (class.cs) existed in the NAMESPACE.Common namespace and in my mapping file […]
Read More →