Could not resolve type with token 0100004b from typeref (expected class 'Windows.UI.Xaml.IDependencyObjectInternal' in assembly 'Uno.UI - uno-platform

**System.Reflection.TargetInvocationException:** 'Exception has been thrown by the target of an invocation.'
[mono-rt] [ERROR] FATAL UNHANDLED EXCEPTION: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.TypeLoadException: Could not resolve type with token 0100004b from typeref (expected class 'Windows.UI.Xaml.IDependencyObjectInternal' in assembly 'Uno.UI, Version=255.255.255.255, Culture=neutral, PublicKeyToken=null')
[mono-rt] at Uno.Material.GlobalStaticResources.get_mergedpages_c69cbc6d79c924ed978294ad194451a9_ResourceDictionary () [0x00000] in /_/src/library/Uno.Material/Uno.UI.SourceGenerators/Uno.UI.SourceGenerators.XamlGenerator.XamlCodeGenerator/mergedpages_c69cbc6d79c924ed978294ad194451a9.cs:5572
[mono-rt] at Uno.Material.GlobalStaticResources+<>c.<RegisterResourceDictionariesBySource>b__21_3 () [0x00000] in /_/src/library/Uno.Material/Uno.UI.SourceGenerators/Uno.UI.SourceGenerators.XamlGenerator.XamlCodeGenerator/GlobalStaticResources.cs:86
[mono-rt] at Uno.UI.ResourceResolver.RetrieveDictionaryForSource (System.String source, System.String currentAbsolutePath) [0x00033] in C:\a\1\s\src\Uno.UI\UI\Xaml\ResourceResolver.cs:395
[mono-rt] at Uno.UI.ResourceResolver.RetrieveDictionaryForSource (System.Uri source) [0x0000e] in C:\a\1\s\src\Uno.UI\UI\Xaml\ResourceResolver.cs:373
[mono-rt] at Windows.UI.Xaml.ResourceDictionary.set_Source (System.Uri value) [0x00008] in C:\a\1\s\src\Uno.UI\UI\Xaml\ResourceDictionary.cs:41
[mono-rt] at Uno.Material.MaterialResources..ctor () [0x00006] in /_/src/library/Uno.Material/MaterialResources.cs:20
[mono-rt] at PKWeb.App.InitializeComponent () [0x000c4] in D:\Code\PubcastX\PKWeb\PKWeb.Droid\obj\Debug\100\g\XamlCodeGenerator\App_b72683a29305e1829dde434ca5f6ae82.g.cs:79
[mono-rt] at PKWeb.App..ctor () [0x00013] in D:\Code\PubcastX\PKWeb\PKWeb.Droid\App.xaml.cs:41
[mono-rt] at PKWeb.Droid.Application+<>c.<.ctor>b__0_0 () [0x00000] in D:\Code\PubcastX\PKWeb\PKWeb.Droid\Main.cs:26
[mono-rt] at Windows.UI.Xaml.NativeApplication..ctor (Windows.UI.Xaml.NativeApplication+AppBuilder appBuilder, System.IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer) [0x00008] in C:\a\1\s\src\Uno.UI\UI\Xaml\NativeApplication.cs:36
[mono-rt] at PKWeb.Droid.Application..ctor (System.IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer) [0x00000] in D:\Code\PubcastX\PKWeb\PKWeb.Droid\Main.cs:26
[mono-rt] at (wrapper managed-to-native) System.Reflection.RuntimeConstructorInfo.InternalInvoke(System.Reflection.RuntimeConstructorInfo,object,object[],System.Exception&)
[mono-rt] at System.Reflection.RuntimeConstructorInfo.InternalInvoke (System.Object obj, System.Object[] parameters, System.Boolean wrapExceptions) [0x00005] in /Users/builder/jenkins/workspace/archive-mono/2020-02/android/release/mcs/class/corlib/System.Reflection/RuntimeMethodInfo.cs:936
[mono-rt] --- End of inner exception stack trace ---
[mono-rt] at (wrapper dynamic-method) Android.Runtime.DynamicMethodNameCounter.1(intptr,intptr)
[mono-rt] at (wrapper native-to-managed) Android.Runtime.DynamicMethodNameCounter.1(intptr,intptr)
[libFrameRecord] unloaded from PKWeb.PKWeb
[RefBase] RefBase: Explicit destruction, weak count = 0 (in 0x723994a668)
[RefBase] #00 pc 00000000000ee07c /apex/com.android.runtime/lib64/bionic/libc.so (__cxa_finalize+148)
[RefBase] #01 pc 00000000000e942c /apex/com.android.runtime/lib64/bionic/libc.so (exit+24)
[RefBase] #02 pc 000000000015d32c /data/app/~~F0g8MSuR6MXJTfc9YqKfhw==/PKWeb.PKWeb-ENdkEe8ibO3BuFaUJ96fGA==/lib/arm64/libmonosgen-2.0.so (mono_invoke_unhandled_exception_hook+424)
This happens when I run my application on Android.
BTW.
I am new to Uno. And also new to Windows UWP,WinUI3,etc. I am very confused about assemblies referenced in Uno project.

Related

JavaScriptCanOpenWindowsAutomatically make my android Xamarin forms app crashes

I'm using a custom renderer on a WebView in my project, and I need it to be able to open popups, then I added JavaScriptCanOpenWindowsAutomatically settings to the constructor, but if I set it to true the app crashes at launch, here is my renderer:
[assembly: ExportRenderer(typeof(Xamarin.Forms.WebView), typeof(HybridWebViewRenderer))]
namespace ClotureSiadForms.Droid.Renderer
{
internal class HybridWebViewRenderer : WebViewRenderer
{
public HybridWebViewRenderer(Context context) : base(context)
{
}
protected override void OnElementChanged(ElementChangedEventArgs<Xamarin.Forms.WebView> e)
{
base.OnElementChanged(e);
if (Control != null)
{
Control.Settings.JavaScriptEnabled = true;
Control.Settings.DomStorageEnabled = true;
Control.Settings.SavePassword = true;
//Control.Settings.JavaScriptCanOpenWindowsAutomatically = true;
}
}
}
}
And the error:
10-19 19:05:55.667 HUAWEI RNE-L21 Error 24197 mono-rt [ERROR] FATAL UNHANDLED EXCEPTION: System.TypeInitializationException: The type initializer for 'Types' threw an exception. ---> System.EntryPointNotFoundException: java_interop_jvm_list assembly:<unknown assembly> type:<unknown type> member:(null)
at (wrapper managed-to-native) Java.Interop.NativeMethods.java_interop_jvm_list(intptr[],int,int&)
at Java.Interop.JniRuntime.GetCreatedJavaVMs (System.IntPtr[] handles, System.Int32 bufLen, System.Int32& nVMs) [0x00000] in <d12ba608ed5a4079a11cd8a7188dddcf>:0
at Java.Interop.JniRuntime.GetAvailableInvocationPointers () [0x00000] in <d12ba608ed5a4079a11cd8a7188dddcf>:0
at Java.Interop.JniRuntime.get_CurrentRuntime () [0x00095] in <d12ba608ed5a4079a11cd8a7188dddcf>:0
at Java.Interop.JniEnvironmentInfo..ctor () [0x00006] in <d12ba608ed5a4079a11cd8a7188dddcf>:0
at Java.Interop.JniEnvironment+<>c.<.cctor>b__35_0 () [0x00000] in <d12ba608ed5a4079a11cd8a7188dddcf>:0
at System.Threading.ThreadLocal`1[T].GetValueSlow () [0x00031] in <a790ddc2dda1484d9a4b87dd85c6ca47>:0
at System.Threading.ThreadLocal`1[T].get_Value () [0x0003e] in <a790ddc2dda1484d9a4b87dd85c6ca47>:0
at Java.Interop.JniEnvironment+Types.TryFindClass (System.String classname, System.Boolean throwOnError) [0x00014] in <d12ba608ed5a4079a11cd8a7188dddcf>:0
at Java.Interop.JniEnvironment+Types.FindClass (System.String classname) [0x00000] in <d12ba608ed5a4079a11cd8a7188dddcf>:0
at Java.Interop.JniType..ctor (System.String classname) [0x00006] in <d12ba608ed5a4079a11cd8a7188dddcf>:0
at Java.Interop.JniEnvironment+Types..cctor () [0x000d2] in <d12ba608ed5a4079a11cd8a7188dddcf>:0
--- End of inner exception stack trace ---
at Android.Runtime.JNIEnv.IsInstanceOf (System.IntPtr obj, System.IntPtr clazz) [0x0000e] in <ac4226d0aad24df781f4097e7b8b972f>:0
at Android.Runtime.JNIEnv.IsGCUserPeer (System.IntPtr value) [0x0000f] in <ac4226d0aad24df781f4097e7b8b972f>:0
Then, is there another way to make blank links open in the default browser ? Or to prevent this error ?

RaisePropertyChanged(nameof(IsSendingEnabled)) Cannot access a disposed object

enter image description hereThere's signature popup first time with none enter(signature stoke) close the popup by clicking on cancel button and once more reopening the popup and providing a input(stroke) once after stoke is completed variable is set to true
On onpropertychange throwing below excetion
System.ObjectDisposedException: 'Cannot access a disposed object.
Object name: 'AndroidX.AppCompat.Widget.AppCompatButton'.'
enter image description hereenter image description here
Stack Trace
at Java.Interop.JniPeerMembers.AssertSelf (Java.Interop.IJavaPeerable self) [0x00029] in :0
at Java.Interop.JniPeerMembers+JniInstanceMethods.InvokeVirtualBooleanMethod (System.String encodedMember, Java.Interop.IJavaPeerable self, Java.Interop.JniArgumentValue* parameters) [0x00000] in :0
at Android.Views.View.get_Enabled () [0x00000] in /Users/builder/azdo/work/1/s/xamarin-android/src/Mono.Android/obj/Release/monoandroid10/android-29/mcw/Android.Views.View.cs:6262
at XF.Material.Droid.Renderers.MaterialDrawableHelper.CreateStateListAnimator () [0x00000] in /Users/martijn/Documents/OpenSource/XF-Material-Library/XF.Material/Platforms/Android/Renderers/MaterialDrawableHelper.cs:291
at XF.Material.Droid.Renderers.MaterialDrawableHelper.UpdateElevation () [0x00008] in /Users/martijn/Documents/OpenSource/XF-Material-Library/XF.Material/Platforms/Android/Renderers/MaterialDrawableHelper.cs:286
at XF.Material.Droid.Renderers.MaterialDrawableHelper.BindableButton_PropertyChanged (System.Object sender, System.ComponentModel.PropertyChangedEventArgs e) [0x00029] in /Users/martijn/Documents/OpenSource/XF-Material-Library/XF.Material/Platforms/Android/Renderers/MaterialDrawableHelper.cs:110
at (wrapper delegate-invoke) .invoke_void_object_PropertyChangedEventArgs(object,System.ComponentModel.PropertyChangedEventArgs)
at Xamarin.Forms.BindableObject.OnPropertyChanged (System.String propertyName) [0x00000] in D:\a\1\s\Xamarin.Forms.Core\BindableObject.cs:266
at Xamarin.Forms.Element.OnPropertyChanged (System.String propertyName) [0x00000] in D:\a\1\s\Xamarin.Forms.Core\Element.cs:362
at XF.Material.Forms.UI.MaterialButton.OnPropertyChanged (System.String propertyName) [0x0001a] in /Users/martijn/Documents/OpenSource/XF-Material-Library/XF.Material/UI/MaterialButton.cs:108
at Xamarin.Forms.BindableObject.SetValueActual (Xamarin.Forms.BindableProperty property, Xamarin.Forms.BindableObject+BindablePropertyContext context, System.Object value, System.Boolean currentlyApplying, Xamarin.Forms.Internals.SetValueFlags attributes, System.Boolean silent) [0x00114] in D:\a\1\s\Xamarin.Forms.Core\BindableObject.cs:510
at Xamarin.Forms.BindableObject.SetValueCore (Xamarin.Forms.BindableProperty property, System.Object value, Xamarin.Forms.Internals.SetValueFlags attributes, Xamarin.Forms.BindableObject+SetValuePrivateFlags privateAttributes) [0x00173] in D:\a\1\s\Xamarin.Forms.Core\BindableObject.cs:446
at Xamarin.Forms.BindingExpression.ApplyCore (System.Object sourceObject, Xamarin.Forms.BindableObject target, Xamarin.Forms.BindableProperty property, System.Boolean fromTarget) [0x00226] in D:\a\1\s\Xamarin.Forms.Core\BindingExpression.cs:160
at Xamarin.Forms.BindingExpression.Apply (System.Boolean fromTarget) [0x0003e] in D:\a\1\s\Xamarin.Forms.Core\BindingExpression.cs:56
at Xamarin.Forms.BindingExpression+BindingExpressionPart.b__49_0 () [0x00000] in D:\a\1\s\Xamarin.Forms.Core\BindingExpression.cs:762
at Xamarin.Forms.BindingExpression+BindingExpressionPart.PropertyChanged (System.Object sender, System.ComponentModel.PropertyChangedEventArgs args) [0x000cb] in D:\a\1\s\Xamarin.Forms.Core\BindingExpression.cs:773
at Xamarin.Forms.BindingExpression+WeakPropertyChangedProxy.OnPropertyChanged (System.Object sender, System.ComponentModel.PropertyChangedEventArgs e) [0x00012] in D:\a\1\s\Xamarin.Forms.Core\BindingExpression.cs:666
at (wrapper delegate-invoke) .invoke_void_object_PropertyChangedEventArgs(object,System.ComponentModel.PropertyChangedEventArgs)
at XamarinUniversity.Infrastructure.SimpleViewModel.RaisePropertyChanged (System.String propertyName) [0x00012] in :0
at ICR_MobileApp.ViewModels.SignatureSectionViewModel.OnStrokeCompleted () [0x0001c] in C:\Users\supriya.mecharla\source\repos\ICR_MobileApp\ICR_MobileApp\ICR_MobileApp\ViewModels\SectionViewModels\SignatureSectionViewModel.cs:262
at ICR_MobileApp.ViewModels.SignatureSectionViewModel.<.ctor>b__50_6 () [0x00000] in C:\Users\supriya.mecharla\source\repos\ICR_MobileApp\ICR_MobileApp\ICR_MobileApp\ViewModels\SectionViewModels\SignatureSectionViewModel.cs:168
at Xamarin.Forms.Command+<>c__DisplayClass4_0.<.ctor>b__0 (System.Object o) [0x00000] in D:\a\1\s\Xamarin.Forms.Core\Command.cs:74
at Xamarin.Forms.Command.Execute (System.Object parameter) [0x00000] in D:\a\1\s\Xamarin.Forms.Core\Command.cs:112
at SignaturePad.Forms.SignaturePadCanvasView.OnStrokeCompleted () [0x00039] in :0
at SignaturePad.Forms.SignaturePadCanvasRenderer.OnStrokeCompleted (System.Object sender, System.EventArgs e) [0x0000a] in :0
at Xamarin.Controls.SignaturePadCanvasView.OnStrokeCompleted (System.Object sender, System.EventArgs e) [0x0000a] in <0c0873655a504a1796935fa2cfa62e06>:0
at Xamarin.Controls.InkPresenter.OnStrokeCompleted () [0x0000a] in <0c0873655a504a1796935fa2cfa62e06>:0
at Xamarin.Controls.InkPresenter.TouchesEnded (Android.Views.MotionEvent e) [0x0003c] in <0c0873655a504a1796935fa2cfa62e06>:0
at Xamarin.Controls.InkPresenter.OnTouchEvent (Android.Views.MotionEvent e) [0x0002e] in <0c0873655a504a1796935fa2cfa62e06>:0
at Android.Views.View.n_OnTouchEvent_Landroid_view_MotionEvent (System.IntPtr jnienv, System.IntPtr native__this, System.IntPtr native_e) [0x00010] in /Users/builder/azdo/_work/1/s/xamarin-android/src/Mono.Android/obj/Release/monoandroid10/android-29/mcw/Android.Views.View.cs:18286
at (wrapper dynamic-method) Android.Runtime.DynamicMethodNameCounter.35(intptr,intptr,intptr)

Method not found in Xamarin forms UIKit.UIColor UIKit.UIColor.get_SystemBlueColor()

If I run my application in IOS simulator I got error in AppDelegate classenter image description here
on global::Xamarin.Forms.Forms.Init(); this line.
Error is
System.MissingMethodException: Method not found: UIKit.UIColor UIKit.UIColor.get_SystemBlueColor()
at Xamarin.Forms.Forms.Init () [0x0000e] in D:\a\1\s\Xamarin.Forms.Platform.iOS\Forms.cs:127
at IsowheyFit.iOS.AppDelegate.FinishedLaunching (UIKit.UIApplication app, Foundation.NSDictionary options) [0x0001c] in /Users/adequateinfosoft/Downloads/isowhey-fit/IsowheyFit/IsowheyFit.iOS/AppDelegate.cs:31
at at (wrapper managed-to-native) UIKit.UIApplication.UIApplicationMain(int,string[],intptr,intptr)
at UIKit.UIApplication.Main (System.String[] args, System.IntPtr principal, System.IntPtr delegate) [0x00005] in /Library/Frameworks/Xamarin.iOS.framework/Versions/12.10.0.157/src/Xamarin.iOS/UIKit/UIApplication.cs:86
at UIKit.UIApplication.Main (System.String[] args, System.String principalClassName, System.String delegateClassName) [0x0000e] in /Library/Frameworks/Xamarin.iOS.framework/Versions/12.10.0.157/src/Xamarin.iOS/UIKit/UIApplication.cs:65
at IsowheyFit.iOS.Application.Main (System.String[] args) [0x00001] in /Users/adequateinfosoft/Downloads/isowhey-fit/IsowheyFit/IsowheyFit.iOS/Main.cs:17

How to fix SIGABRT crash in Xamarin Forms

StackTrace:
NavigationRenderer+ParentingViewController.Dispose (System.Boolean disposing)
NSObject.Dispose ()
NavigationRenderer.Dispose (System.Boolean disposing)
NSObject.Dispose ()
DisposeHelpers.DisposeModalAndChildRenderers (Xamarin.Forms.Element view)
IDisposable.Dispose ()
FormsApplicationDelegate.UpdateMainPage ()
FormsApplicationDelegate.ApplicationOnPropertyChanged (System.Object sender, System.ComponentModel.PropertyChangedEventArgs args)
BindableObject.OnPropertyChanged (System.String propertyName)
Element.OnPropertyChanged (System.String propertyName)
Application.set_MainPage (Xamarin.Forms.Page value)
PageModelCoreMethods.SwitchOutRootNavigation (System.String navigationServiceName)
BasePageModel.<NavigateToLoginPage>b__74_0 () // I think the problem is in this method
NSAsyncActionDispatcher.Apply ()
(wrapper managed-to-native) UIKit.UIApplication.UIApplicationMain(int,string[],intptr,intptr)
UIApplication.Main (System.String[] args, System.IntPtr principal, System.IntPtr delegate)
UIApplication.Main (System.String[] args, System.String principalClassName, System.String delegateClassName)
Application.Main (System.String[] args)
This is the stack trace for a SIGABRT crash I'm getting in my iOS app using Xamarin.Forms 4.4.
I think the issue is coming from this method:
async protected virtual Task<bool> NavigateToLoginPage()
{
await LoginProvider.Clear();
Platform.BeginInvokeOnMainThread( () =>
{
CoreMethods.SwitchOutRootNavigation(CoreApp.LoginNavigationStack);
});
return true;
}
because it's the last method that was called before the crashing II'm assuming but I'm not sure how to fix it. I've looked at some solutions online like:
MonoTouch SIGSEGV crash using navigationcontroller and searchdisplaycontroller and https://forums.xamarin.com/discussion/6546/finding-the-cause-of-sigsegv which I think are related, but they don't match my case exactly..
Does anybody know what to do about this?
Thanks!

Problem while enabling Migration ASP.NET MVC5 on MAC

I'm trying to enable migration on my ASP.net project on Rider.
when I click on Enable Migration the Migration folder is created the configuration.cs file is also created but i get this message:
11:42:16.760 |I| EntityFrameworkRunnerProgram | :1 | Using EntityFramework 6.3.0
11:42:17.674 |E| ScaffoldInitialMigrationRunner| :1 | Inner exception stack trace: System.ArgumentException: Invalid value for key 'attachdbfilename'. at System.Data.SqlClient.SqlConnectionString..ctor (System.String connectionString) [0x00408] in <151ba4fcafea4819819d3594ece183c3>:0 at System.Data.SqlClient.SqlConnectionFactory.CreateConnectionOptions (System.String connectionString, System.Data.Common.DbConnectionOptions previous) [0x00000] in <151ba4fcafea4819819d3594ece183c3>:0 at System.Data.ProviderBase.DbConnectionFactory.GetConnectionPoolGroup (System.Data.Common.DbConnectionPoolKey key, System.Data.ProviderBase.DbConnectionPoolGroupOptions poolOptions, System.Data.Common.DbConnectionOptions& userConnectionOptions) [0x0003e] in <151ba4fcafea4819819d3594ece183c3>:0 at System.Data.SqlClient.SqlConnection.ConnectionString_Set (System.Data.Common.DbConnectionPoolKey key) [0x00008] in <151ba4fcafea4819819d3594ece183c3>:0 at System.Data.SqlClient.SqlConnection.set_ConnectionString (System.String value) [0x00042] in <151ba4fcafea4819819d3594ece183c3>:0 at System.Data.Entity.Infrastructure.Interception.DbConnectionDispatcher+<>c.<SetConnectionString>b__8_0 (System.Data.Common.DbConnection t, System.Data.Entity.Infrastructure.Interception.DbConnectionPropertyInterceptionContext`1[TValue] c) [0x00007] in <222b71ed74914d6ebbdbc2b580446023>:0 at System.Data.Entity.Infrastructure.Interception.InternalDispatcher`1[TInterceptor].Dispatch[TTarget,TInterceptionContext] (TTarget target, System.Action`2[T1,T2] operation, TInterceptionContext interceptionContext, System.Action`3[T1,T2,T3] executing, System.Action`3[T1,T2,T3] executed) [0x0000f] in <222b71ed74914d6ebbdbc2b580446023>:0 at System.Data.Entity.Infrastructure.Interception.DbConnectionDispatcher.SetConnectionString (System.Data.Common.DbConnection connection, System.Data.Entity.Infrastructure.Interception.DbConnectionPropertyInterceptionContext`1[TValue] interceptionContext) [0x00044] in <222b71ed74914d6ebbdbc2b580446023>:0 at System.Data.Entity.Infrastructure.SqlConnectionFactory.CreateConnection (System.String nameOrConnectionString) [0x00096] in <222b71ed74914d6ebbdbc2b580446023>:0 at System.Data.Entity.Infrastructure.LocalDbConnectionFactory.CreateConnection (System.String nameOrConnectionString) [0x00077] in <222b71ed74914d6ebbdbc2b580446023>:0 at System.Data.Entity.Internal.LazyInternalConnection.Initialize () [0x000bd] in <222b71ed74914d6ebbdbc2b580446023>:0 at System.Data.Entity.Internal.LazyInternalConnection.get_Connection () [0x00000] in <222b71ed74914d6ebbdbc2b580446023>:0 at System.Data.Entity.Internal.LazyInternalContext.get_Connection () [0x00024] in <222b71ed74914d6ebbdbc2b580446023>:0 at System.Data.Entity.Infrastructure.DbContextInfo..ctor (System.Type contextType, System.Data.Entity.Infrastructure.DbProviderInfo modelProviderInfo, System.Data.Entity.Internal.AppConfig config, System.Data.Entity.Infrastructure.DbConnectionInfo connectionInfo, System.Func`1[TResult] resolver) [0x000c8] in <222b71ed74914d6ebbdbc2b580446023>:0 at System.Data.Entity.Infrastructure.DbContextInfo..ctor (System.Type contextType, System.Func`1[TResult] resolver) [0x00012] in <222b71ed74914d6ebbdbc2b580446023>:0 at System.Data.Entity.Infrastructure.DbContextInfo..ctor (System.Type contextType) [0x00000] in <222b71ed74914d6ebbdbc2b580446023>:0 at System.Data.Entity.Migrations.DbMigrator..ctor (System.Data.Entity.Migrations.DbMigrationsConfiguration configuration, System.Data.Entity.DbContext usersContext, System.Data.Entity.Internal.DatabaseExistenceState existenceState, System.Boolean calledByCreateDatabase) [0x0006e] in <222b71ed74914d6ebbdbc2b580446023>:0 at System.Data.Entity.Migrations.DbMigrator..ctor (System.Data.Entity.Migrations.DbMigrationsConfiguration configuration) [0x00000] in <222b71ed74914d6ebbdbc2b580446023>:0 at System.Data.Entity.Migrations.Design.MigrationScaffolder..ctor (System.Data.Entity.Migrations.DbMigrationsConfiguration migrationsConfiguration) [0x00012] in <222b71ed74914d6ebbdbc2b580446023>:0 at System.Data.Entity.Migrations.Design.ToolingFacade+ScaffoldRunner.RunCore () [0x00006] in <222b71ed74914d6ebbdbc2b580446023>:0 at System.Data.Entity.Migrations.Design.ToolingFacade+BaseRunner.Run () [0x00000] in <222b71ed74914d6ebbdbc2b580446023>:0
--- EXCEPTION #1/1 [LoggerException]
Message = “
Inner exception stack trace: System.ArgumentException: Invalid value for key 'attachdbfilename'.
at System.Data.SqlClient.SqlConnectionString..ctor (System.String connectionString) [0x00408] in <151ba4fcafea4819819d3594ece183c3>:0
at System.Data.SqlClient.SqlConnectionFactory.CreateConnectionOptions (System.String connectionString, System.Data.Common.DbConnectionOptions previous) [0x00000] in <151ba4fcafea4819819d3594ece183c3>:0
at System.Data.ProviderBase.DbConnectionFactory.GetConnectionPoolGroup (System.Data.Common.DbConnectionPoolKey key, System.Data.ProviderBase.DbConnectionPoolGroupOptions poolOptions, System.Data.Common.DbConnectionOptions& userConnectionOptions) [0x0003e] in <151ba4fcafea4819819d3594ece183c3>:0
at System.Data.SqlClient.SqlConnection.ConnectionString_Set (System.Data.Common.DbConnectionPoolKey key) [0x00008] in <151ba4fcafea4819819d3594ece183c3>:0
at System.Data.SqlClient.SqlConnection.set_ConnectionString (System.String value) [0x00042] in <151ba4fcafea4819819d3594ece183c3>:0
at System.Data.Entity.Infrastructure.Interception.DbConnectionDispatcher+<>c.<SetConnectionString>b__8_0 (System.Data.Common.DbConnection t, System.Data.Entity.Infrastructure.Interception.DbConnectionPropertyInterceptionContext`1[TValue] c) [0x00007] in <222b71ed74914d6ebbdbc2b580446023>:0
at System.Data.Entity.Infrastructure.Interception.InternalDispatcher`1[TInterceptor].Dispatch[TTarget,TInterceptionContext] (TTarget target, System.Action`2[T1,T2] operation, TInterceptionContext interceptionContext, System.Action`3[T1,T2,T3] executing, System.Action`3[T1,T2,T3] executed) [0x0000f] in <222b71ed74914d6ebbdbc2b580446023>:0
at System.Data.Entity.Infrastructure.Interception.DbConnectionDispatcher.SetConnectionString (System.Data.Common.DbConnection connection, System.Data.Entity.Infrastructure.Interception.DbConnectionPropertyInterceptionContext`1[TValue] interceptionContext) [0x00044] in <222b71ed74914d6ebbdbc2b580446023>:0
at System.Data.Entity.Infrastructure.SqlConnectionFactory.CreateConnection (System.String nameOrConnectionString) [0x00096] in <222b71ed74914d6ebbdbc2b580446023>:0
at System.Data.Entity.Infrastructure.LocalDbConnectionFactory.CreateConnection (System.String nameOrConnectionString) [0x00077] in <222b71ed74914d6ebbdbc2b580446023>:0
at System.Data.Entity.Internal.LazyInternalConnection.Initialize () [0x000bd] in <222b71ed74914d6ebbdbc2b580446023>:0
at System.Data.Entity.Internal.LazyInternalConnection.get_Connection () [0x00000] in <222b71ed74914d6ebbdbc2b580446023>:0
at System.Data.Entity.Internal.LazyInternalContext.get_Connection () [0x00024] in <222b71ed74914d6ebbdbc2b580446023>:0
at System.Data.Entity.Infrastructure.DbContextInfo..ctor (System.Type contextType, System.Data.Entity.Infrastructure.DbProviderInfo modelProviderInfo, System.Data.Entity.Internal.AppConfig config, System.Data.Entity.Infrastructure.DbConnectionInfo connectionInfo, System.Func`1[TResult] resolver) [0x000c8] in <222b71ed74914d6ebbdbc2b580446023>:0
at System.Data.Entity.Infrastructure.DbContextInfo..ctor (System.Type contextType, System.Func`1[TResult] resolver) [0x00012] in <222b71ed74914d6ebbdbc2b580446023>:0
at System.Data.Entity.Infrastructure.DbContextInfo..ctor (System.Type contextType) [0x00000] in <222b71ed74914d6ebbdbc2b580446023>:0
at System.Data.Entity.Migrations.DbMigrator..ctor (System.Data.Entity.Migrations.DbMigrationsConfiguration configuration, System.Data.Entity.DbContext usersContext, System.Data.Entity.Internal.DatabaseExistenceState existenceState, System.Boolean calledByCreateDatabase) [0x0006e] in <222b71ed74914d6ebbdbc2b580446023>:0
at System.Data.Entity.Migrations.DbMigrator..ctor (System.Data.Entity.Migrations.DbMigrationsConfiguration configuration) [0x00000] in <222b71ed74914d6ebbdbc2b580446023>:0
at System.Data.Entity.Migrations.Design.MigrationScaffolder..ctor (System.Data.Entity.Migrations.DbMigrationsConfiguration migrationsConfiguration) [0x00012] in <222b71ed74914d6ebbdbc2b580446023>:0
at System.Data.Entity.Migrations.Design.ToolingFacade+ScaffoldRunner.RunCore () [0x00006] in <222b71ed74914d6ebbdbc2b580446023>:0
at System.Data.Entity.Migrations.Design.ToolingFacade+BaseRunner.Run () [0x00000] in <222b71ed74914d6ebbdbc2b580446023>:0
”
ExceptionPath = Root
ClassName = JetBrains.Util.LoggerException
HResult = COR_E_APPLICATION=80131600
StackTraceString = “
at JetBrains.Util.ILoggerEx.LogMessage (JetBrains.Util.ILogger this, JetBrains.Diagnostics.LoggingLevel level, System.String message) [0x00000] in <37ed49b15eea41448b14c541f9d5975f>:0
at JetBrains.Util.ILoggerEx.Error (JetBrains.Util.ILogger this, System.String message) [0x00000] in <37ed49b15eea41448b14c541f9d5975f>:0
at JetBrains.EntityFramework.Runner620.CommandRunnerBase`2[TIn,TOut].JetBrains.EntityFramework.Runner620.ICommandRunner<TIn>.Run (TIn command) [0x00000] in <f05235a6a61b4a789b03405b09b6d17a>:0
at System.Reflection.RuntimeMethodInfo.InternalInvoke (System.Reflection.RuntimeMethodInfo , System.Object , System.Object[] , System.Exception& ) [0x00000] in <b814b509d4ad406fb40c6c93e38929e7>:0
at System.Reflection.RuntimeMethodInfo.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <b814b509d4ad406fb40c6c93e38929e7>:0
at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) [0x00000] in <b814b509d4ad406fb40c6c93e38929e7>:0
at JetBrains.EntityFramework.Runner620.EntityFrameworkRunnerProgram.Main (System.String[] args) [0x00000] in <f05235a6a61b4a789b03405b09b6d17a>:0
”
11:42:17.753 |E| EntityFrameworkRunnerProgram | :1 | Exception has been thrown by the target of an invocation. Invalid value for key 'attachdbfilename'.
--- EXCEPTION #1/3 [ToolingException]
Message = “Invalid value for key 'attachdbfilename'.”
ExceptionPath = Root.InnerException.InnerException
ClassName = System.Data.Entity.Migrations.Design.ToolingException
HResult = COR_E_EXCEPTION=80131500
Source = EntityFramework
SafeSerializationManager.m_serializedStates.#0 = System.Data.Entity.Migrations.Design.ToolingException+ToolingExceptionState
CLR_SafeSerializationManager_RealType.Data = System.Data.Entity.Migrations.Design.ToolingException
CLR_SafeSerializationManager_RealType.UnityType = 4
CLR_SafeSerializationManager_RealType.AssemblyName = “EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089”
StackTraceString = “
at System.Data.Entity.Migrations.Design.ToolingFacade.Run (System.Data.Entity.Migrations.Design.ToolingFacade+BaseRunner runner) [0x00097] in <222b71ed74914d6ebbdbc2b580446023>:0
at System.Data.Entity.Migrations.Design.ToolingFacade.ScaffoldInitialCreate (System.String language, System.String rootNamespace) [0x0001b] in <222b71ed74914d6ebbdbc2b580446023>:0
at JetBrains.EntityFramework.Runner620.ScaffoldInitialMigrationRunner.DoRun (JetBrains.EntityFramework.Features.Commands.EnableMigrationsCommand command) [0x00011] in <f05235a6a61b4a789b03405b09b6d17a>:0
at JetBrains.EntityFramework.Runner620.CommandRunnerBase`2[TIn,TOut].JetBrains.EntityFramework.Runner620.ICommandRunner<TIn>.Run (TIn command) [0x001af] in <f05235a6a61b4a789b03405b09b6d17a>:0
at (wrapper managed-to-native) System.Reflection.RuntimeMethodInfo.InternalInvoke(System.Reflection.RuntimeMethodInfo,object,object[],System.Exception&)
at System.Reflection.RuntimeMethodInfo.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x0006a] in <b814b509d4ad406fb40c6c93e38929e7>:0
”
I didn't find any solution to get over with this error
if details are needed i'll try to get them for you

Resources