Hi *,
when I run update-database from within VS (2013) and provider throws exception I get following in console.
Any idea what to look for?
JC
when I run update-database from within VS (2013) and provider throws exception I get following in console.
System.Runtime.Serialization.SerializationException: Type is not resolved for member 'FirebirdSql.Data.FirebirdClient.FbException,FirebirdSql.Data.FirebirdClient, Version=4.5.2.0, Culture=neutral, PublicKeyToken=3750abcc3150b00c'.
at System.AppDomain.DoCallBack(CrossAppDomainDelegate callBackDelegate)
at System.Data.Entity.Migrations.Design.ToolingFacade.Run(BaseRunner runner)
at System.Data.Entity.Migrations.Design.ToolingFacade.Update(String targetMigration, Boolean force)
at System.Data.Entity.Migrations.UpdateDatabaseCommand.<>c__DisplayClass2.<.ctor>b__0()
at System.Data.Entity.Migrations.MigrationsDomainCommand.Execute(Action command)
Any idea what could be wrong? I tried stripping down FbException class as much as possible. Now it's just this.[Serializable]
public class FbException : DbException
{
public FbException(string message)
: base(message)
{ }
public FbException(string message, Exception inner)
: base(message, inner)
{ }
public FbException(SerializationInfo info, StreamingContext context)
: base(info, context)
{ }
public FbException()
: base()
{ }
}
Looks like it does not play well with the app domains EF is using. The assemblies are from NuGet (not from GAC).Any idea what to look for?
JC