none
(Windows.ui.Xaml.Controls.maps).MapControl error

    Question

  • I've last software installed: Windows 10 pro 10.0.10586 and Visual Studio 2015 community Update 1 (14.0.24720) (Italian version)

    When I open the Microsoft example MapControl or when I insert in my app the MapControl I see the same strange error:

                        <maps:MapControl x:Name="myMap" 
                                         HorizontalAlignment="Left" TransitFeaturesVisible="False" />

    It's underlined with this error :

    "Impossibile trovare il testo associato a questo codice di errore"  (it isn't possible to find the text associated to this error code)

    white space expected [line 1 position 2795]"

    If I compile tha MapControl example I have also the same errors:

    Errore Impossibile trovare il testo associato a questo codice di errore.
    whitespace expected [Line: 1 position 2795]

    > MapControl Samples\Windows-universal-samples-master\Samples\MapControl\cs\Scenario1.xaml 85

    But If I run the MapControl it works fine.

    The problem is that I can't see anithing of xaml view when I develop it.

    I develop in VB and the example is in C# but the problem is the same.


    Salvino Marras


    Saturday, February 27, 2016 3:32 PM

All replies

  • Hi Salvino Marras,

    Please try drag and drop a default MapControl into your app to check whether it also has this issue.

    If the default control displays fine, there may be something wrong with your code. Please check your code or share some code snippet here.

    If the default control also has this issue, please try repair your Visual Studio Community 2015 first. If repair doesn't fix this issue, please check the ActiveLog.xml under the path of %AppData%\Microsoft\VisualStudio\14.0. This file will log all operations when you operate Visual Studio. Whether there has any error message about load MapControl.

    In addition, please try reset your Tool Box to check whether it can fix the MapControl problem through right-click Tool Box -> Choose ResetToolbox.

    Best Regards,
    Weiwei

    Monday, February 29, 2016 6:13 AM
    Moderator
  • I've last software installed: Windows 10 pro 10.0.10586 and Visual Studio 2015 community Update 1 (14.0.24720) (Italian version)

    When I open the Microsoft example MapControl or when I insert in my app the MapControl I see the same strange error:

                        <maps:MapControl x:Name="myMap" 
                                         HorizontalAlignment="Left" TransitFeaturesVisible="False" />

    It's underlined with this error :

    "Impossibile trovare il testo associato a questo codice di errore"  (it isn't possible to find the text associated to this error code)

    white space expected [line 1 position 2795]"

    If I compile tha MapControl example I have also the same errors:

    Errore Impossibile trovare il testo associato a questo codice di errore.
    whitespace expected [Line: 1 position 2795]

    > MapControl Samples\Windows-universal-samples-master\Samples\MapControl\cs\Scenario1.xaml 85

    But If I run the MapControl it works fine.

    The problem is that I can't see anithing of xaml view when I develop it.

    I develop in VB and the example is in C# but the problem is the same.


    Salvino Marras

    i have same problem!

    i have clear installation with a sample program test

    here part of ActivityLog.xml

    ......

     <entry>
        <record>648</record>
        <time>2016/02/25 07:35:10.411</time>
        <type>Error</type>
        <source>VisualStudio</source>
        <description>Construction of frame content failed.&#x000D;&#x000A;Frame identifier: ST:0:0:{31fc2115-5126-4a87-b2f7-77eaab65048b}&#x000D;&#x000A;Frame caption: &#x000D;&#x000A;Exception details:&#x000D;&#x000A;System.ArgumentNullException: &#x000D;&#x000A;Nome parametro: protocolHandler&#x000D;&#x000A;   in Microsoft.XamlDiagnostics.UI.LivePropertyExplorer.Model.PropertyExplorerModel..ctor(IProtocolHandler protocolHandler, IInstanceManager instanceManager, IActiveElementTracker tracker, ITelemetryLogger telemetryLogger)&#x000D;&#x000A;   in Microsoft.XamlDiagnostics.Model.XamlDiagnosticsTool.GetPropertyExplorerModel(IServiceProvider serviceProvider)&#x000D;&#x000A;   in Microsoft.XamlDiagnostics.Model.XamlDiagnosticsTool.GetPropertyExplorerViewModel(IServiceProvider serviceProvider, Boolean createIfMissing)&#x000D;&#x000A;   in Microsoft.XamlDiagnostics.Model.XamlDiagnosticsTool.CreatePropertyExplorer(IServiceProvider serviceProvider, ResourceDictionary themeDictionary, UIElement searchContentControl)&#x000D;&#x000A;   in Microsoft.VisualStudio.ClientDiagnostics.XamlDiagnostics.PropertyExplorerToolWindow.GetContent()&#x000D;&#x000A;   in Microsoft.VisualStudio.ClientDiagnostics.XamlDiagnostics.XamlDiagnosticsToolWindowBase.ShowContent()&#x000D;&#x000A;   in Microsoft.VisualStudio.ClientDiagnostics.XamlDiagnostics.XamlDiagnosticsToolWindowBase.Initialize()&#x000D;&#x000A;   in Microsoft.VisualStudio.Shell.WindowPane.InternalSetSite(IServiceProvider p)&#x000D;&#x000A;   in Microsoft.VisualStudio.Shell.WindowPane.Microsoft.VisualStudio.Shell.Interop.IVsWindowPane.SetSite(IServiceProvider psp)&#x000D;&#x000A;   in Microsoft.VisualStudio.Shell.WindowPane.Microsoft.VisualStudio.Shell.Interop.IVsUIElementPane.SetUIElementSite(IServiceProvider p)&#x000D;&#x000A;   in Microsoft.VisualStudio.Platform.WindowManagement.UIElementDocumentObject.SetSite(DocumentObjectSite site)&#x000D;&#x000A;   in Microsoft.VisualStudio.Platform.WindowManagement.DocumentObjectSite.InitializeDocumentObject(Object punkView)&#x000D;&#x000A;   in Microsoft.VisualStudio.Platform.WindowManagement.WindowManagerService.CreateContentPane(FrameMoniker frameMoniker, Boolean isDocument, String lpstrMkDoc, UInt32 eCreateWindowFlags, Object punkView, Object punkData, IServiceProvider pServiceProvider, IVsUIHierarchy pUIHierarchy, UInt32 vsid, Guid rguidCmdUI, ViewGroup parent, IVsWindowFrame&amp; ppWindowFrame)&#x000D;&#x000A;   in Microsoft.VisualStudio.Platform.WindowManagement.WindowManagerService.CreateContentPane(String pszName, Int32 fDockViewOn, Int32 fDocument, String lpstrMkDoc, UInt32 eCreateWindowFlags, UInt32 dwToolWinId, Object punkView, Object punkData, IServiceProvider pServiceProvider, IVsUIHierarchy pUIHierarchy, UInt32 vsid, Int32&amp; pfDefaultPosition, Guid&amp; rguidCmdUI, IVsWindowFrame&amp; ppWindowFrame)&#x000D;&#x000A;   in System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32 errorCode, IntPtr errorInfo)&#x000D;&#x000A;   in Microsoft.VisualStudio.Shell.Package.CreateToolWindow(Type toolWindowType, Int32 id, UInt32 flags)&#x000D;&#x000A;   in Microsoft.VisualStudio.Shell.Package.CreateToolWindow(Type toolWindowType, Int32 id, ProvideToolWindowAttribute tool)&#x000D;&#x000A;   in Microsoft.VisualStudio.Shell.Package.FindToolWindow(Type toolWindowType, Int32 id, Boolean create, ProvideToolWindowAttribute tool)&#x000D;&#x000A;   in Microsoft.VisualStudio.Shell.Package.CreateToolWindow(Guid&amp; toolWindowType, Int32 id)&#x000D;&#x000A;   in Microsoft.VisualStudio.Shell.Package.Microsoft.VisualStudio.Shell.Interop.IVsToolWindowFactory.CreateToolWindow(Guid&amp; toolWindowType, UInt32 id)&#x000D;&#x000A;   in Microsoft.VisualStudio.Platform.WindowManagement.WindowFrame.ConstructContent()</description>
      </entry>

    i have Reset Toolbox.

    Ruggero La Mantia





    • Edited by Ruggix59 Monday, February 29, 2016 8:09 AM
    Monday, February 29, 2016 7:49 AM
  • Hi Weiwei

    If I try to drag and drop a MapControl I've the error "MapControl isn't supported in a Windows Universal project", but adding the suffix my:MapControl of 

    xmlns:my="using:Windows.UI.Xaml.Controls.Maps"

    the error is the same as before.

    Under the path of %AppData%\Microsoft\VisualStudio\14.0 I don't find any xml file.

    I've done the reset of toolbox but the error remains.

    Tomorrow I'll try to repair VS.

    Best regards

    Salvino


    Salvino Marras

    Monday, February 29, 2016 2:27 PM
  • Hi Salvino,

    I try to install a Italian version of Visual Studio in my VM and the MapControl still works fine in my side. So this problem is not related to Visual Studio version. Please try create a blank Universal app and then add a MapControll to check whether it also has this issue.

    And do you have tried repair Visual Studio and what's the result?


    Best Regards,
    Weiwei

    Tuesday, March 1, 2016 10:01 AM
    Moderator
  • Hi Weiwei

    I've done all you suggested, but the error remains unchanged.


    Salvino Marras

    Friday, March 4, 2016 8:09 PM
  • Hi Weiwei

    I repaired Visual Studio 2 times (the first had a problem with a package already installed) but nothing has changed.

    See the image I posted up.

    sincerely

    Salvino 


    Salvino Marras

    Friday, March 4, 2016 8:14 PM
  • Hi Salvino, Ruggix59,

    I also try download the Microsoft example MapControl and create a sample project with the code in your screenshot, everything is ok.

    Please try clean your solution and then rebuild it to check whether the control is not recognized by designer after changed.

    Then please repair your Windows SDK from Control Panel -> Programs -> Programs and Features -> Right-click Windows Software Development kit -> Change -> Repair.

    Best Regards,
    Weiwei

    Monday, March 7, 2016 2:54 AM
    Moderator
  • Hi Weiwei

    Windows SDK ha been repaired when I repaired VS, but MapControl doesn't work in XAML in any way, clean solution or not.

    But I've seen that programmatically MapControl works fine, so I leave this problem.

    Best regards

    Salvino


    Salvino Marras

    Thursday, March 10, 2016 8:28 AM
  • Buongiorno Salvino

    Io continuo ad avere lo stesso problema

    considera che ho installato visual studio su due macchine, a casa e in ufficio

    ma il problema è identico.

    Io penso che sia dovuto proprio alla versione italiana.

    Ti sarei grato se mi facessi sapere se hai fatto dei passi in avanti.

    Mi sento un pò "isolato", io sono siciliano, dal tuo nome mi pare che anche tu sia "isolano".

    Certo l'argomento forse non è molto comune. Io lavoro con mappe ed affini da molto tempo con openlayers sul web.

    Grazie Ruggero La Mantia


    Thursday, March 10, 2016 9:06 AM
  • Salve Ruggero

    Come ho già scritto, la mia soluzione è stata quella di non inserire il MapControl nella parte XAML, inserendola invece con il codice del programma. In questo modo tutto funziona e si può controllare XAML in programmazione.

    Saluti

    Salvino Marras


    Salvino Marras

    Thursday, March 17, 2016 8:16 PM
  • still the same problem on both my PC.

    seguirò il consiglio :)

    Thursday, July 28, 2016 6:33 PM
  • Same problem here.

    i think it's really an installation problem with the italian version of vs2015 community.

    just to try to find a pattern any of you has vs2013 installed in the same machine?

    bye

    Monday, January 9, 2017 5:42 PM
  • ok, i uninstalled vs2015 ita and installed vs2015 enu, and the error remains, the text is in italian even if the ide is completely in english.

    so i think that the problem is with the underlaying installation of windows 10 italian.

    can you verify it please?

    same problem on a clean virtual machine with win10 insider ita and vs2015 community.

    thanks in advance

    Wednesday, January 11, 2017 12:02 AM
  • Ciao,

    anch'io ho lo stesso problema su 3 macchine e non riesco a risolverlo.

    Vorrei sapere se  possibile gestire un itemsource  alimentato da una web api a livello di codice e non di controllo in modo da andare avanti con lo sviluppo.

    Grazie

    Ale

    Wednesday, August 16, 2017 4:07 PM