Getting a XamlParseException

Page 1 of 1

2 Replies - 3088 Views - Last Post: 28 April 2012 - 06:40 AM Rate Topic: -----

#1 superkb10  Icon User is offline

  • D.I.C Regular

Reputation: 29
  • View blog
  • Posts: 298
  • Joined: 27-November 11

Getting a XamlParseException

Posted 26 April 2012 - 08:00 PM

Hey all, I'm following along in my book, and I've found an error in the program, I'm fairly sure I've followed the book correctly. I believe it may be my machine, as my computer is pretty old and not great with certain things. Anyway, here's the code that I'm getting an exception on:

<CommandBinding Command="Application.Open"
                        Executed="OpenCmdExecuted"
                        CanExecute="OpenCmdCanExecute"/>



As you can see, it's in XML, and here's the exception that I'm getting:
'Provide value on 'System.Windows.Baml2006.TypeConverterMarkupExtension' threw an exception.' Line number '7' and line position '10'.



So I've done a quick search online, and the solutions I've found don't really help me that much, there was something about having an icon, but I haven't included any pictures into this program. If this matters at all, I'm using .NET 4.0 with Windows 7.

I think it may just be because I need to restart my computer as that fixed the problems I would have with other things (such as XNA). Anyway, if anyone could tell me what's wrong, it'd be really helpful.

Thanks!

Is This A Good Question/Topic? 0
  • +

Replies To: Getting a XamlParseException

#2 eclipsed4utoo  Icon User is offline

  • Not Your Ordinary Programmer
  • member icon

Reputation: 1526
  • View blog
  • Posts: 5,961
  • Joined: 21-March 08

Re: Getting a XamlParseException

Posted 27 April 2012 - 05:05 AM

You could try out some of these things...

http://connect.micro...ew-an-exception
Was This Post Helpful? 0
  • +
  • -

#3 superkb10  Icon User is offline

  • D.I.C Regular

Reputation: 29
  • View blog
  • Posts: 298
  • Joined: 27-November 11

Re: Getting a XamlParseException

Posted 28 April 2012 - 06:40 AM

I've already seen this site, but I didn't really find any of the suggestions terribly helpful. I've checked in .config files and I found a few warnings, which shouldn't really be counted as an error, and they don't really say what to do in the case that there is an error.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1