I am getting this exception when using Hangfire with Dapper.Contrib
System.MissingMethodException
Method not found: '?'.
System.MissingMethodException: Method not found: '?'.
at ParamInfo72548414-c8a2-4ab0-a498-9eaa0c278243(IDbCommand , Object )
at Dapper.CommandDefinition.SetupCommand(IDbConnection cnn, Action``2 paramReader)
at Dapper.SqlMapper.QueryMultipleImpl(IDbConnection cnn, CommandDefinition& command)
at Dapper.SqlMapper.QueryMultiple(IDbConnection cnn, String sql, Object param, IDbTransaction transaction, Nullable`1 commandTimeout, Nullable`1 commandType)
at SqlServerAdapter.Insert(IDbConnection connection, IDbTransaction transaction, Nullable`1 commandTimeout, String tableName, String columnList, String parameterList, IEnumerable`1 keyProperties, Object entityToInsert)
at Dapper.Contrib.Extensions.SqlMapperExtensions.Insert[T](IDbConnection connection, T entityToInsert, IDbTransaction transaction, Nullable`1 commandTimeout)
at Business.Epbt.Models.Service.XpymntService`1.SubmitPaymentToEpbt(String accountNo, Decimal paidAmount, String icommReceiptNo, String billType, String oldAccountNo, String pelangganId, String pelangganName, DateTime paymentDate, String vpcReceiptNo, String fpxTransactionId, String xpyNobil, String channel)
More details at SO here: http://stackoverflow.com/questions/40657291/hangfire-and-dapper-insert-throwing-system-missingmethodexception-method-not-fou
Is this a bug or Hangfire simply will not work with Dapper? I have used it with ServiceStack.Ormlite and it was working fine, but it is no longer open source so that is why I am migrating to Dapper.
I noticed there is another version of Dapper in Hangfire.SqlServer assembly, why is this so? I am guessing this is causing the conflict?