title: System.Windows.Markup.XamlParseException occurred. Microsoft visual studio community 2017
body: <p>Please can someone be of help. I encountered this exception below, while trying to compile an XAML code.</p>
  <blockquote>
  <p>System.Windows.Markup.XamlParseException occurred
  HResult=0x80131501
  Message='Provide value on 'System.Windows.Baml2006.TypeConverterMarkupExtension' threw an exception.' Line number '28' and line position '22'.
  Source=PresentationFramework
  StackTrace:
  at System.Windows.Markup.WpfXamlLoader.Load(XamlReader xamlReader, IXamlObjectWriterFactory writerFactory, Boolean skipJournaledProperties, Object rootObject, XamlObjectWriterSettings settings, Uri baseUri)
  at System.Windows.Markup.WpfXamlLoader.LoadBaml(XamlReader xamlReader, Boolean skipJournaledProperties, Object rootObject, XamlAccessLevel accessLevel, Uri baseUri)
  at System.Windows.Markup.XamlReader.LoadBaml(Stream stream, ParserContext parserContext, Object parent, Boolean closeStream)
  at System.Windows.Application.LoadComponent(Object component, Uri resourceLocator)
  at XAMLImage.MainWindow.InitializeComponent() in c:\users\mypc\documents\visual studio 2017\Projects\XAMLImage\XAMLImage\MainWindow.xaml:line 1</p>
  <p>Inner Exception 1:
  IOException: Cannot locate resource 'images/tahoe_01.jpg'.</p>
  </blockquote>
  <p>The exception occurred at &quot;InitializeComponent()&quot; of the c# partial class of the code behind. Below is the c# partial class</p>
  <pre><code>using System;
  using System.Collections.Generic;
  using System.Linq;
  using System.Text;
  using System.Threading.Tasks;
  using System.Windows;
  using System.Windows.Controls;
  using System.Windows.Data;
  using System.Windows.Documents;
  using System.Windows.Input;
  using System.Windows.Media;
  using System.Windows.Media.Imaging;
  using System.Windows.Navigation;
  using System.Windows.Shapes;
  
  namespace XAMLImage
  {
      /// &lt;summary&gt;
      /// Interaction logic for MainWindow.xaml
      /// &lt;/summary&gt;
      public partial class MainWindow : Window
      {
          public MainWindow()
          {
              InitializeComponent();
          }
      }
  }
  </code></pre>
  <p>Below is the XAML code</p>
  <pre><code>&lt;Window x:Class=&quot;XAMLImage.MainWindow&quot;
          xmlns=&quot;http://schemas.microsoft.com/winfx/2006/xaml/presentation&quot;
          xmlns:x=&quot;http://schemas.microsoft.com/winfx/2006/xaml&quot;
          xmlns:d=&quot;http://schemas.microsoft.com/expression/blend/2008&quot;
          xmlns:mc=&quot;http://schemas.openxmlformats.org/markup-compatibility/2006&quot;
          xmlns:local=&quot;clr-namespace:XAMLImage&quot;
          mc:Ignorable=&quot;d&quot;
          Title=&quot;MainWindow&quot; Height=&quot;350&quot; Width=&quot;604&quot;&gt;
      &lt;Grid&gt;
          &lt;Grid.RowDefinitions&gt;
              &lt;RowDefinition Height = &quot;1*&quot;/&gt;
              &lt;RowDefinition Height = &quot;1*&quot;/&gt;
          &lt;/Grid.RowDefinitions&gt;
  
          &lt;StackPanel Orientation=&quot;Horizontal&quot;&gt;
              &lt;Image Width = &quot;200&quot; VerticalAlignment = &quot;Top&quot; Margin = &quot;30&quot;/&gt;
              &lt;Image Width = &quot;200&quot; Source = &quot;Images\flow5.gif&quot; 
              VerticalAlignment = &quot;Top&quot; Margin = &quot;30&quot; Opacity = &quot;0.5&quot;/&gt;
          &lt;/StackPanel&gt;
  
          &lt;StackPanel Grid.Row = &quot;1&quot;&gt;
              &lt;Ellipse Height = &quot;100&quot; 
              Width = &quot;200&quot; 
              HorizontalAlignment = &quot;Center&quot; 
              Margin = &quot;30&quot;&gt;
  
                  &lt;Ellipse.Fill&gt;
                      &lt;ImageBrush ImageSource = &quot;Images\bubble.png&quot; /&gt;
                  &lt;/Ellipse.Fill&gt;
  
              &lt;/Ellipse&gt;
  
  
  
          &lt;/StackPanel&gt;
      &lt;/Grid&gt;
  &lt;/Window&gt;
  </code></pre>
  <p>There is a blue squiggly line under the Source URL of the Image and ImageSource URL of the ImageBrush elements. I hover my mouse over them, and intellisense says &quot;could not find file 'c:\Program Files(x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\images%5Cmyfilename.gif'&quot;(one of the files is a gif, and the other is a png). I thought these was an unsual path for the file to be located, but I went on and created the URLs on that path, but expection, still throwing.</p>
  <p>Please can someone be of help. Am using Microsoft visual studio community 2017</p>
  <p>Cheers</p>