Quantcast
Channel: entityframework Discussions Rss Feed
Viewing all articles
Browse latest Browse all 1793

New Post: Exceptions serialization when running Migrations from VS

$
0
0
Hi *,

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

Viewing all articles
Browse latest Browse all 1793

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>