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 SqlHierarchyId
doesn't get recognized.
"Exception at DataReader.GetFieldType(4) returned null" is still thrown out.
Note: The issue will be solved if I made installation of C# package in VS2010 onto the environment (Windows Server 2008 RC2), but my boss didn't accept that, because this is purely a simple web-server.