locked
Android XAML page not loading. RRS feed

  • Question

  • This is in Visual Studio 2015.

    This error occurs when attempting to load the Main.xaml page from Resources folder in Android Single Page App.

    Stack Trace

    System.ComponentModel.Composition.ImportCardinalityMismatchException: No exports were found that match the constraint:
     ContractName VisualStudioWorkspace
     RequiredTypeIdentity Microsoft.CodeAnalysis.Workspace
       at System.ComponentModel.Composition.Hosting.ExportProvider.GetExports(ImportDefinition definition, AtomicComposition atomicComposition)
       at System.ComponentModel.Composition.Hosting.ExportProvider.GetExportsCore(Type type, Type metadataViewType, String contractName, ImportCardinality cardinality)
       at System.ComponentModel.Composition.Hosting.ExportProvider.GetExportedValueCore[T](String contractName, ImportCardinality cardinality)
       at Xamarin.VisualStudio.Android.MonoAndroidDesignerInterface.GetCodeModelBridge() in c:\data\lanes\3513\680125b0\source\xamarinvs\src\Core\VisualStudio.Android\Designer\MonoAndroidDesignerInterface.cs:line 154
       at Xamarin.AndroidDesigner.DesignerProject.get_CodeModelBridge()
       at Xamarin.AndroidDesigner.DesignerProject.<UpdateDesignerResourceIds>d__175.MoveNext()
    --- End of stack trace from previous location where exception was thrown ---
       at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
       at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
       at Xamarin.AndroidDesigner.DesignerProject.<EnsureLoaded>d__139.MoveNext()
    --- End of stack trace from previous location where exception was thrown ---
       at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
       at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
       at Xamarin.AndroidDesigner.AndroidRenderSession.<InitSession>d__105.MoveNext()

    Is there a possibly that they are some assemblies missing?

    Thursday, June 29, 2017 8:07 PM