.net - System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. Entity Framework Core -


i learning entityframework core. going perfect. adding migraitons , removing them need work on ui days again need add migration didn't work. tried add , remove(this done many times) microsoft.entityframeworkcore.tools didn't work. in package manager console when add command "add-migration somemigration" below. i've been searching on 10 days on different sites couldn't understand happened. thanx in advance.

system.reflection.targetinvocationexception: exception has been thrown target of invocation. ---> system.typeloadexception: method 'clone' in type            'microsoft.entityframeworkcore.infrastructure.internal.sqlserveroptionsextension' assembly        'microsoft.entityframeworkcore.sqlserver, version=1.1.2.0, culture=neutral, publickeytoken=adb9793829ddae60' not have implementation.    @      system.signature.getsignature(void* pcorsig, int32 ccorsig, runtimefieldhandleinternal fieldhandle, iruntimemethodinfo methodhandle, runtimetype declaringtype)    @   system.reflection.runtimemethodinfo.fetchnonreturnparameters()    @   system.reflection.runtimemethodinfo.getparameters()    @   system.diagnostics.stacktrace.tostring(traceformat traceformat)    @   system.exception.getstacktrace(boolean needfileinfo)    @   system.exception.tostring(boolean needfilelineinfo, boolean needmessage)    @     microsoft.entityframeworkcore.design.operationexecutor.operationbase.execute(action action)    --- end of inner exception stack trace ---    @    system.runtimemethodhandle.invokemethod(object target, object[] arguments, signature sig, boolean constructor)    @     system.reflection.runtimeconstructorinfo.invoke(bindingflags invokeattr, binder binder, object[] parameters, cultureinfo culture)    @    system.runtimetype.createinstanceimpl(bindingflags bindingattr, binder binder, object[] args, cultureinfo culture, object[] activationattributes, stackcrawlmark& stackmark)    @    system.activator.createinstance(type type, bindingflags bindingattr, binder binder, object[] args, cultureinfo culture, object[] activationattributes)    @    system.activator.createinstance(string assemblystring, string typename, boolean ignorecase, bindingflags bindingattr, binder binder, object[] args, cultureinfo culture, object[] activationattributes, evidence securityinfo, stackcrawlmark& stackmark)    @    system.activator.createinstance(string assemblyname, string typename, boolean ignorecase, bindingflags bindingattr, binder binder, object[] args, cultureinfo culture, object[] activationattributes)    @     system.appdomain.createinstance(string assemblyname, string typename, boolean ignorecase, bindingflags bindingattr, binder binder, object[] args, cultureinfo culture, object[] activationattributes)    @    system.appdomain.createinstance(string assemblyname, string typename, boolean ignorecase, bindingflags bindingattr, binder binder, object[] args, cultureinfo culture, object[] activationattributes)    @     microsoft.entityframeworkcore.tools.appdomainoperationexecutor.execute(string operationname, object resulthandler, idictionary arguments)    @ system.dynamic.updatedelegates.updateandexecutevoid4[t0,t1,t2,t3](callsite site, t0 arg0, t1 arg1, t2 arg2, t3 arg3)    @    microsoft.entityframeworkcore.tools.operationexecutorbase.invokeoperationimpl(string operationname, idictionary arguments)    @     microsoft.entityframeworkcore.tools.operationexecutorbase.addmigration(string name, string outputdir, string contexttype)    @    microsoft.entityframeworkcore.tools.commands.migrationsaddcommand.execute()    @     microsoft.dotnet.cli.commandline.commandlineapplication.execute(string[] args)    @     microsoft.entityframeworkcore.tools.program.main(string[] args) exception has been thrown target of invocation. 


Comments

Popular posts from this blog

resizing Telegram inline keyboard -

command line - How can a Python program background itself? -

php - "cURL error 28: Resolving timed out" on Wordpress on Azure App Service on Linux -