title: System.Windows.Markup.XamlParseException. I encountered this exception below, while trying to compile an XAML code
body: <blockquote>
    <p>Please can someone be of help. I encountered this exception below, while trying to compile an XAML code</p>
    
    <p>System.Windows.Markup.XamlParseException
      HResult=0x80131501
      Message='Provide value on 'System.Windows.Baml2006.TypeConverterMarkupExtension' threw an exception.' Line number '40' and line position '22'.
      Source=PresentationFramework
      StackTrace:
       at System.Windows.Markup.XamlReader.RewrapException(Exception e, IXamlLineInfo lineInfo, Uri baseUri)
       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 Master_Page_core.MainWindow.InitializeComponent() in C:\Users\deepa\source\repos\Master_Page_core\Master_Page_core\MainWindow.xaml:line 1</p>
  </blockquote>
  
  <p>This exception was originally thrown at this call stack:
      [External Code]</p>
  
  <p>Inner Exception 1:
  IOException: Cannot locate resource 'newfolder1/sidebar.jpg'.</p>
  
  <p><a href="https://i.stack.imgur.com/ozxIp.png" rel="nofollow noreferrer">this is the image of error occuring . Click here to see image . </a></p>
  
  <blockquote>
    <p>this is xaml code</p>
  </blockquote>
  
  <pre><code>&lt;Grid.Background&gt;
    &lt;ImageBrush ImageSource="NewFolder1/sidebar.jpg" Stretch="UniformToFill"&gt;&lt;/ImageBrush&gt;
    &lt;/Grid.Background&gt;
  </code></pre>
  
  <blockquote>
    <p>I show similar post on this error but it was not helpfull . they asked to include the folder in the project but the Folder containing images is already included in the project. </p>
  </blockquote>