OrmLite.Mysql.Core throwing System.MissingMethodException with Aurora

Getting the following error with:

  • ServiceStack.OrmLite.MySql.Core 5.4.1
  • AWS Aurora MySql

System.MissingMethodException
HResult=0x80131513
Message=Method not found: 'System.String ServiceStack.OrmLite.OrmLiteDialectProviderBase1.GetTableName(System.String, System.String, Boolean)'. Source=ServiceStack.OrmLite.MySql StackTrace: at ServiceStack.OrmLite.MySql.MySqlDialectProviderBase1.GetTableName(String table, String schema) in C:\BuildAgent\work\27e4cc16641be8c0\src\ServiceStack.OrmLite.MySql\MySqlDialectProviderBase.cs:line 104
at ServiceStack.OrmLite.MySql.MySqlDialectProviderBase1.DoesTableExist(IDbCommand dbCmd, String tableName, String schema) in C:\BuildAgent\work\27e4cc16641be8c0\src\ServiceStack.OrmLite.MySql\MySqlDialectProviderBase.cs:line 158 at ServiceStack.OrmLite.OrmLiteWriteCommandExtensions.CreateTable(IDbCommand dbCmd, Boolean overwrite, Type modelType) at ServiceStack.OrmLite.OrmLiteExecFilter.Exec[T](IDbConnection dbConn, Func2 filter)

Clear your NuGet packages cache:

$ nuget locals all -clear

You’ll need to do this whenever you run into a MissingMethodException when using the pre-release packages on MyGet.

Thank you very much. Worked like a charm!!

1 Like