Visual Studio freezes during XamlParseException - wpf

Visual Studio 2013 always freezes when XAML parser throw XAMLParseException. It takes sometimes one minute when VS throw exception. It exist some settings how to avoid this behavior?

Related

webview2 refuses to work in visual studio 2017 .net winforms

I have added WebView2 to my visual Studio 2017 VB.NET solution with .NET 4.7.2, as per the instructions on microsoft at https://learn.microsoft.com/en-us/microsoft-edge/webview2/gettingstarted/winforms
When I put the webview2 on my form and hit F5 to run it, I always get
System.InvalidOperationException: 'An error occurred creating the form. See Exception.InnerException for details. The error is: Object reference not set to an instance of an object.'
and it is stuck in application in break mode.
Can anyone tell me how to make it work please? Or am I stupid and it will only work in visual studio 2019 with core?

WPF throw System.TypeLoadException

When I try to start WPF designer, it shows me following error message:
What is wrong? Visual Studio version is 2015.

Visual Studio 2012 xaml Designer System.BadImageFormatException

Everytime I try to load a WPF window/page/userControl, the xaml designer crashes and System.BadImageFormatException is thrown. I've tried to switch the platform to X86 in configuration manager but it does not work. The following is the complete detail of exception:
System.BadImageFormatException
[C:\Windows\Microsoft.Net\assembly\GAC_32\mscorlib\v4.0_4.0.0.0__b77a5c561934e089\mscorlib.dll] The signature is incorrect.
at Microsoft.Expression.Markup.XmlCharType..cctor()
System.TypeInitializationException
The type initializer for 'Microsoft.Expression.Markup.XmlCharType' threw an exception.
Any idea guys?, thank you!
I've resolved the issue by Windows Task Manager and ending the process 'Microsoft Visual Studio XAML UI Designer'. In fact some issues are solved by stopping this process. Visual Studio automatically run this a new fresh instance of this process.

Visual Studio 2012 crashes when trying to open a WPF project

Whenever I open a WPF project, Visual Studio crashes. I start a second instance and attach the process to the first instance and I receive the following error once the project is "opened":
An unhandled exception of type 'System.MissingFieldException' occurred in Microsoft.VisualStudio.Progression.LanguageService.CSharp.dll
Additional information: Field not found: 'Microsoft.VisualStudio.Progression.Actions.GetNodeAtSourcePosition'.
I'm not entirely sure what to do. I have reinstalled Visual Studio once before and the error still occurs. Any help on this problem would be wonderful!
Had the same problem when creating a new project with VS2012. Applying VS2012 Update 1 did the trick for me.
http://www.microsoft.com/en-us/download/details.aspx?id=35774
Did you have a Beta Version of Visual studio installed in your system prior to this? What is your current version of VS? If yes, then you need to remove all the components of VS Beta version manually.

WPF: Error getting UserControl into ToolBox

I can remember that some time ago when I created a UserControl in Visual Studio 2008 the USerControls automatically appeared in the ToolBox.
Now they don't. If use "Choose Items.." on the ToolBox I get the error message "The given assembly name or codebase was invalid", after selecting my assembly.
I have Windows XP SP3 and .NET Framework 3.5 SP1.
It seems VS2008 simply doesn't support this.

Resources