Hangfire VB Startup Throws SQL Exception

前端 未结 1 904
难免孤独
难免孤独 2021-01-25 03:07

See this StackOverflow question for some background. Hangfire looks like the right solution for me but I\'m having trouble getting it to work. My development environment is VB

1条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-01-25 03:50

    My development environment is VB 2010 with SQL 2005.

    Cannot find data type datetime2

    This is probably where your issue lies.

    Had a quick look at the schema of Hangfire tables and can see that HangFire.Hash table uses datetime2 type for the ExpireAt column.

    According to this thread, Sql Server 2005 doesn't support this type, as it has only been introduced in Sql Server 2008.

    0 讨论(0)
提交回复
热议问题