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
hierarchyid
After other solution if you still have error try to delete in web.config
copy file Microsoft.SqlServer.Types.dll to bin folder (or/and add reference)
or/and add "Type System Version=SQL Server 2012;" in sqlconnectionstring