Unhandled Exception: System.MissingMethodException

Discussion of open issues, suggestions and bugs regarding ADO.NET provider for DB2
Post Reply
siri
Posts: 1
Joined: Fri 11 Jul 2014 00:24

Unhandled Exception: System.MissingMethodException

Post by siri » Fri 11 Jul 2014 00:49

Hi,

I am getting the above exception when I try to connect to the db2 using EF 6. I am using DB2 v9.7.400.501 on Windows. I have reference to the following assemblies
IBM.Data.DB2, Version=9.7.4.4
IBM.Data.DB2.Entity, Version=9.7.4.4
Devart.Data, Version=5.0.993.0
Devart.Data.DB2, Version=1.7.302.0
Devart.Data.DB2.Entity, Version=1.7.302.6
EntityFramework


Stack trace for your reference:
Unhandled Exception: System.MissingMethodException: Method not found: 'Void IBM.Data.DB2.DB2Transaction.Rollback(System.String)'.
at Devart.Data.DB2.DB2Transaction.a(String A_0)
at Devart.Data.DB2.DB2Transaction.Rollback()
at Devart.Data.DB2.DB2Transaction.Dispose(Boolean disposing)
at System.Data.Common.DbTransaction.Dispose()
at System.Data.Entity.Infrastructure.Interception.DbTransactionDispatcher.<Dispose>b__12(DbTransaction t, DbTransactionInterceptionContext c)
at System.Data.Entity.Infrastructure.Interception.InternalDispatcher`1.Dispatch[TTarget,TInterceptionContext](TTarget target, Action`2 operation, TInterceptionContext interceptionContext, Action`3 executing, Action`3 executed)
at System.Data.Entity.Infrastructure.Interception.DbTransactionDispatcher.Dispose(DbTransaction transaction, DbInterceptionContext interceptionContext)
at System.Data.Entity.Migrations.DbMigrator.ExecuteStatementsInternal(IEnumerable`1 migrationStatements, DbConnection connection)
at System.Data.Entity.Migrations.DbMigrator.<>c__DisplayClass30.<ExecuteStatements>b__2e()
at System.Data.Entity.Infrastructure.DefaultExecutionStrategy.Execute(Action operation)
at System.Data.Entity.Migrations.DbMigrator.ExecuteStatements(IEnumerable`1 migrationStatements, DbTransaction existingTransaction)
at System.Data.Entity.Migrations.DbMigrator.ExecuteStatements(IEnumerable`1 migrationStatements)
at System.Data.Entity.Migrations.DbMigrator.ExecuteOperations(String migrationId, XDocument targetModel, IEnumerable`1 operations, IEnumerable`1 systemOperations, Boolean downgrading, Boolean auto)
at System.Data.Entity.Migrations.DbMigrator.AutoMigrate(String migrationId, VersionedModel sourceModel, VersionedModel targetModel, Boolean downgrading)
at System.Data.Entity.Migrations.DbMigrator.Upgrade(IEnumerable`1 pendingMigrations, String targetMigrationId, String lastMigrationId)
at System.Data.Entity.Migrations.DbMigrator.UpdateInternal(String targetMigration)
at System.Data.Entity.Migrations.DbMigrator.<>c__DisplayClassc.<Update>b__b()
at System.Data.Entity.Migrations.DbMigrator.EnsureDatabaseExists(Action mustSucceedToKeepDatabase)
at System.Data.Entity.Migrations.DbMigrator.Update(String targetMigration)
at System.Data.Entity.Internal.DatabaseCreator.CreateDatabase(InternalContext internalContext, Func`3 createMigrator, ObjectContext objectContext)
at System.Data.Entity.Internal.InternalContext.CreateDatabase(ObjectContext objectContext, DatabaseExistenceState existenceState)
at System.Data.Entity.Database.Create(DatabaseExistenceState existenceState)
at System.Data.Entity.CreateDatabaseIfNotExists`1.InitializeDatabase(TContext context)
at System.Data.Entity.Internal.InternalContext.<>c__DisplayClassf`1.<CreateInitializationAction>b__e()
at System.Data.Entity.Internal.InternalContext.PerformInitializationAction(Action action)
at System.Data.Entity.Internal.InternalContext.PerformDatabaseInitialization()
at System.Data.Entity.Internal.LazyInternalContext.<InitializeDatabase>b__4(InternalContext c)
at System.Data.Entity.Internal.RetryAction`1.PerformAction(TInput input)
at System.Data.Entity.Internal.LazyInternalContext.InitializeDatabaseAction(Action`1 action)
at System.Data.Entity.Internal.LazyInternalContext.InitializeDatabase()
at System.Data.Entity.Internal.InternalContext.GetEntitySetAndBaseTypeForType(Type entityType)
at System.Data.Entity.Internal.Linq.InternalSet`1.Initialize()
at System.Data.Entity.Internal.Linq.InternalSet`1.get_InternalContext()
at System.Data.Entity.Internal.Linq.InternalSet`1.ActOnSet(Action action, EntityState newState, Object entity, String methodName)
at System.Data.Entity.Internal.Linq.InternalSet`1.Add(Object entity)
at System.Data.Entity.DbSet`1.Add(TEntity entity)

Shalex
Site Admin
Posts: 8885
Joined: Thu 14 Aug 2008 12:44

Re: Unhandled Exception: System.MissingMethodException

Post by Shalex » Mon 14 Jul 2014 16:48

1. Please send us your IBM.Data.DB2.dll v9.7.4.4.
2. Tell us all .NET Framework versions which are installed on your workstation. This article describes how to find out the installed versions: http://msdn.microsoft.com/en-us/library ... .110).aspx.

Post Reply