Hangfire crashes with Mono

sql-server
Tags: #<Tag:0x00007f6a01d86388>

#1

I’ve tried the getting started example with a basic ASP.NET MVC 5 application and it crashes when I run the app using Visual Studio for Mac. The problem appears to be SQL Server related as I installed the MySqlStorage package and the site runs and executes jobs (although I can’t view the dashboard). I know the code is fine as when I run this from Windows there aren’t any problems. On Github it says it runs on Linux so I presume this is supported. I’m using Mono 4.8.0 and tried running this with MSSQL 2012. Any help appreciated. FWIW I receive an ‘overflow’ error, the stack trace is below …

at (wrapper alloc) System.Object:AllocVector (intptr,intptr)
at Mono.Data.Tds.Protocol.TdsComm.GetString (System.Int32 len, System.Boolean wide, System.Text.Encoding enc) [0x00006] in /private/tmp/source-mono-4.8.0/bockbuild-mono-4.8.0-branch/profiles/mono-mac-xamarin/build-root/mono-x86/mcs/class/Mono.Data.Tds/Mono.Data.Tds.Protocol/TdsComm.cs:580
at Mono.Data.Tds.Protocol.TdsComm.GetString (System.Int32 len, System.Boolean wide) [0x00000] in /private/tmp/source-mono-4.8.0/bockbuild-mono-4.8.0-branch/profiles/mono-mac-xamarin/build-root/mono-x86/mcs/class/Mono.Data.Tds/Mono.Data.Tds.Protocol/TdsComm.cs:601
at Mono.Data.Tds.Protocol.TdsComm.GetString (System.Int32 len) [0x0000d] in /private/tmp/source-mono-4.8.0/bockbuild-mono-4.8.0-branch/profiles/mono-mac-xamarin/build-root/mono-x86/mcs/class/Mono.Data.Tds/Mono.Data.Tds.Protocol/TdsComm.cs:572
at Mono.Data.Tds.Protocol.Tds80.ProcessColumnInfo () [0x001b7] in /private/tmp/source-mono-4.8.0/bockbuild-mono-4.8.0-branch/profiles/mono-mac-xamarin/build-root/mono-x86/mcs/class/Mono.Data.Tds/Mono.Data.Tds.Protocol/Tds80.cs:151
at Mono.Data.Tds.Protocol.Tds.ProcessSubPacket () [0x001a4] in /private/tmp/source-mono-4.8.0/bockbuild-mono-4.8.0-branch/profiles/mono-mac-xamarin/build-root/mono-x86/mcs/class/Mono.Data.Tds/Mono.Data.Tds.Protocol/Tds.cs:1803
at Mono.Data.Tds.Protocol.Tds.NextResult () [0x0004a] in /private/tmp/source-mono-4.8.0/bockbuild-mono-4.8.0-branch/profiles/mono-mac-xamarin/build-root/mono-x86/mcs/class/Mono.Data.Tds/Mono.Data.Tds.Protocol/Tds.cs:625
at System.Data.SqlClient.SqlDataReader.NextResult () [0x0003b] in /private/tmp/source-mono-4.8.0/bockbuild-mono-4.8.0-branch/profiles/mono-mac-xamarin/build-root/mono-x86/mcs/class/System.Data/System.Data.SqlClient/SqlDataReader.cs:1320
at System.Data.SqlClient.SqlDataReader…ctor (System.Data.SqlClient.SqlCommand command) [0x00019] in /private/tmp/source-mono-4.8.0/bockbuild-mono-4.8.0-branch/profiles/mono-mac-xamarin/build-root/mono-x86/mcs/class/System.Data/System.Data.SqlClient/SqlDataReader.cs:109
at (wrapper remoting-invoke-with-check) System.Data.SqlClient.SqlDataReader:.ctor (System.Data.SqlClient.SqlCommand)
at System.Data.SqlClient.SqlCommand.ExecuteReader (System.Data.CommandBehavior behavior) [0x0003c] in /private/tmp/source-mono-4.8.0/bockbuild-mono-4.8.0-branch/profiles/mono-mac-xamarin/build-root/mono-x86/mcs/class/System.Data/System.Data.SqlClient/SqlCommand.cs:504