Questions tagged [xamlparseexception]

XamlParseException is the exception class for parser-specific exceptions from a WPF XAML parser. XamlParseException is used only for the WPF-implemented XAML parser that performs the XAML parsing and loading for WPF applications.

XamlParseException is the exception class for parser-specific exceptions from a WPF XAML parser. XamlParseException is used only for the WPF-implemented XAML parser that performs the XAML parsing and loading for WPF applications.

A XamlParseException is usually only a generic and relatively undescriptive error, its InnerException property often contains the actual, underlying error that occurred.

153 questions
4
votes
2 answers

How do I clear the WPF / XAML type cache in a plugin project

I'm writing a plugin for an application (Autodesk Revit Architecture 2011, if you need to know). During debugging, I'd like to recompile my plugin and reload that in the host. My specific host even provides an Add-In Manager that simplifies this…
Daren Thomas
  • 67,947
  • 40
  • 154
  • 200
4
votes
1 answer

xamlparser error after clickonce deployment.Application crashing after installation

I've built an WPF application with visual studio 2008 and created an installer for it.Works fine so far.I realized it lacks the automatic updates feature, and after trying several solutions, i decided to give a try to clickonce deployment.After a…
black sensei
  • 6,528
  • 22
  • 109
  • 188
4
votes
2 answers

WPF: Any reason why there's a xamlparse exception on XP but not on Vista?

My app compiles fine. Runs fine on Vista machines. But doesn't even start on XP machines with a xaml parse exception on the first form. The xp machines all have .net 3.5. Anything spring to mind? Thanks.
RekrowYnapmoc
  • 2,166
  • 2
  • 22
  • 23
4
votes
1 answer

Strange XAML Parse behaviour when set Text and add Interaction.Triggers. WPF

I set the Text property of the Textbox control, and also i add an Interaction.Trigger to it. An exception is thrown When I try to parse the this XAML using XamlReader.Parse(): The xaml which i have is:
mihai
  • 2,746
  • 3
  • 35
  • 56
4
votes
2 answers

Failed to assign to property 'System.Windows.Controls.Primitives.ButtonBase.Click'

Have an interesting situation which I do not understand. Here's the scenario: I create a simple Silverlight 5 application. I place a button control on the main page and create a Click event handler. XAML is shown below.....
doon386
  • 41
  • 1
  • 4
3
votes
1 answer

XamlReader throws when loading generic.xaml to merge resource dictionaries

Trying to load generic.xaml in code but it throws a XamlParseException. Code as follows: Uri uri = new Uri("Themes/Generic.xaml", UriKind.Relative); StreamResourceInfo info = Application.GetResourceStream(uri); System.Windows.Markup.XamlReader…
Youp Bernoulli
  • 5,303
  • 5
  • 39
  • 59
3
votes
1 answer

C# Resource Dictionary XamlParseException - Thread Safety?

I am using static a Resource Dictionary which is initialized the following way: static ResourceDictionary resource = new ResourceDictionary() { Source = new Uri( "pack://application:,,,/CommonResources;component/ApplicationData.xaml")…
sagibb
  • 956
  • 2
  • 9
  • 21
3
votes
4 answers

xamlParseException on window launch

I get the following error when I show this window from another window in my application: XamlParseException occurred 'Set connectionId threw an exception.' Line number '4' and line position '25'. With an inner exception of: {"Unable to cast…
Reid Kersey
  • 31
  • 1
  • 2
3
votes
2 answers

WPF: XamlParseException -> AccessViolation when loading a resource dictionary

This WPF app targets .NET 3.5 and is built with the 4.0 tools from Visual Studio 2010 (csc.exe version is 4.0.30319.1). I'm not sure what to make of this exception I'm seeing. The same exe has been working for months on all machines, but just today…
3
votes
2 answers

WPF - XamlParseException when unit testing method in Window class

I'm trying to use MSTest to write unit tests for methods in my MainWindow class in my WPF application. However, I get the following exception: System.Windows.Markup.XamlParseException: 'Provide value on 'System.Windows.StaticResourceExtension'…
Sarah Vessels
  • 30,930
  • 33
  • 155
  • 222
3
votes
1 answer

WTF WPF TabControl?

I believe this to be a bug in WPF (v4.0 if it matters), but it is late, and maybe I'm missing something. I am binding to a fake example for illustrative purposes:
Jerry Bullard
  • 6,116
  • 18
  • 27
3
votes
1 answer

XpsDocument.GetFixedDocumentSequence throws XamlParseException

I have to import an .xlsx file into my WPF application and view it. I convert the document to .xps and then loading. After that I call GetFixedDocumentSequence() and there I get this Exception XamlParseException: {"UnicodeString property does not…
Danny
  • 31
  • 1
  • 4
3
votes
1 answer

Unable to use xmlns:cl="FooNamespace" in XAML

In my WP7 solution I have a PhoneClassLibrary1 assembly. In its AssemblyInfo.cs I have [assembly: XmlnsPrefix("FooNamespace", "cl")] [assembly: XmlnsDefinition("FooNamespace", "PhoneClassLibrary1")] I have a trivial control in…
kza
  • 1,590
  • 13
  • 32
3
votes
4 answers

XamlParseException when using Graph# libraries

I'm trying to use the Graph# libraries in my VSPackage project, but unfortunately there are some obstacles to conquer. Here is what I did: I copied all the following DLL's to a folder /Libraries in the project…
2
votes
2 answers

How to dynamically load XAML for getting Controls information

I am trying to load a Silverlight project to read every XAML file by creating an instance using reflection, Activator.CreateInstance, of every XAML class for reading its controls. C# Code: string strPath = "SilverlightUI.dll"; StreamResourceInfo sri…
Furqan Safdar
  • 16,260
  • 13
  • 59
  • 93
1
2
3
10 11