DataReader.GetFieldType returned null
In my db table Layout, there's one column whose type is hierarchyid (column index=4). When trying to set-up new environment (a virtual web-server, created from XEN server), then running the site, I've met with this issue: Exception message: DataReader.GetFieldType(4) returned null. Exception data: System.Collections.ListDictionaryInternal I've made some search and found out there are already some topic on it (such as on MSDN ). But even when I added the C:\Program Files\Microsoft SQL Server\100\SDK\Assemblies\Microsoft.SqlServer.Types.dll library, it seems like db type in structure