Suddenly getting TypeLoadException
Posted: Tue 24 Sep 2019 21:35
Using any version of .NET Core -- previews 8, 9, RC, and GA (released yesterday)-- is suddenly not working with dotConnect for Oracle.
We have tried dotConnect 9.7 and 9.8.
BOTH versions have worked fine before. This error is completely new. Nothing has changed on our end.
Startup.cs (injecting the context)
TheContext.cs
ERROR
We have tried dotConnect 9.7 and 9.8.
BOTH versions have worked fine before. This error is completely new. Nothing has changed on our end.
Startup.cs (injecting the context)
Code: Select all
public void ConfigureServices(IServiceCollection services)
{
services.AddDbContext<TheContext>(_ => _.UseOracle(Configuration.GetConnectionString("connectionString")));
services.AddControllers();
}
Code: Select all
public class TheContext : DbContext
{
public TheContext (DbContextOptions<TheContext> options) : base(options)
{ }
protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
{
base.OnConfiguring(optionsBuilder);
}
}
Code: Select all
TypeLoadException: Method 'get_Info' in type 'Devart.Data.Oracle.Entity.OracleOptionsExtension' from assembly 'Devart.Data.Oracle.Entity.EFCore, Version=9.8.838.0, Culture=neutral, PublicKeyToken=09af7300eec23701' does not have an implementation.
WebApplication2.Startup.<ConfigureServices>b__4_0(DbContextOptionsBuilder _)