Visual Studio 2012 crashes when trying to open a WPF project - wpf

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.

Related

Cannot open .csproj-file with Visual Studio C# 2010 Express

I'm trying to open this project (https://github.com/shtejv/ARDrone-Control-.NET) downloaded from the internet but just when I open the project this error appears: "The project type is not supported by this installation."
It also shows the solution corresponding to that project as unavailable.
What can I do? maybe should I download a newer version of Visual Studio?
EDIT: The project that is causing the fail is called ARDrone_Testing so maybe it's a unit testing project so I'll need the full version of VisualStudio2010. I read it in this post!
SOLUTION: It finally works properly, I've just finished installing vs2013 professional and open the project without any problem!
Thank you all!
I'm looking at the .sln file and it is created with Visual Studio 2010:
Microsoft Visual Studio Solution File, Format Version 11.00
# Visual Studio 2010
What project is failing? (the name of the project)
Additional dependencies like DirectX shouldn't affect the project loading.

exception in msvcr110_clr0400.dll

I just unpacked my new laptop on Windows 8, and installed the latest version of Visual Studio Ultimate 2013.
Through the server explorer view I tried to add a new connexion to a sql-server database. (Connect to database button)
Each attempts to log-in finished by a crash of visual studio.
Then I tried to get more information about the issue using VS as a debugger for itself.
It seems that msvcr110_clr0400.dll thrown an exception.
Just in case here is the disassembly :
I tried and re-tried several times, checked for updates, installed an other version of vs (Ultimate2012).Any clue how to fix this ?
Require repair installation of .net 4.0 (or 4.5/4.5.1).

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 2008 WPF Project error "project type is not supported"

I'm running Windows 7 x64 with Visual Studio 2008 (SP1). Yesterday I came across an issue when creating WPF projects. I don't know if I've created any other WPF projects since I installed Win7.
First of all, in the Create Project dialog, the project type says "csWPFApplication" which is weird enough and I never noticed before. When I try creating the project I get 2 Package Load Failure errors for Microsoft.VisualStudio.Internal.WPFFlavor.WPFPackage and then a message that "The project file ... cannot be opened. The project type is not supported by this installation.
I tried a number of different suggestions from Google and even uninstalled/reinstalled to no avail. Any ideas?
Try starting Visual Studio with.
C:\Program Files\Microsoft Visual
Studio 9.0\Common7\IDE\devenv.exe
/resetskippkgs
I would also try to just create a blank solution/WPF project. and then add the files from your old project one at a time, and see if you still get the error.
If that doesn't work, I would try to uninstall and reinstall .NET 3.5 which looks it could be corrupt.

WPF Package Load Failure?

Package Load Failure
Package 'Microsoft.VisualStudio.Xaml' has failed tot load properly. . . yadda, yadda, yadda.
So now what? This package is somewhat important since I was hoping to do some WPF stuff this afternoon. Tried running without it and my XAML design view is gone.
I already tried "devenv /resetsettings" from the command prompt.
Thanks,
Scott
Try repairing the install.
Control Panel
Add Remove Programs
Select Visual Studio 2008 and choose "repair"
Did you recently install any updates to Visual Studio or any Add-Ins? If so can you please list them?
Install SP1: http://www.microsoft.com/downloads/details.aspx?FamilyId=FBEE1648-7106-44A7-9649-6D9F6D58056E&displaylang=en
I had this problem after a fresh install of VS2008 Team System. Tried loading the updates, running setup, re-installing. No luck.
Installed SP1 and bingo! No more package load failures.
I -FINALLY- saw this error going into Tools|Options|Environment Fonts and Colors after trying everything I could think of to get it not to crash when I chose Tools|Import and Export Settings.
I had this problem when I installed Visual Studio Professional.
My theory was that it was because I already had Visual C# 2008 Express Edition installed.
Once I uninstalled both then reinstalled Visual Studio Professional it worked.
This is consistent with the OP's solution, which was to uninstall anything else which implemented XAML functionality.
In my case, just reinstalling SP1 didnt worked
Then i saw ive had two languages mixed in the IDE. So ive checked the installed programs and found:
Microsoft Visual Studio Tools For Applications 2.0 ENU
Microsoft Visual Studio Tools For Applications 2.0 Language Pack - ESN
When ive uninstalled the additional pack, the design views started to work again
In my case the machine.config file had gotten some bad XML due to a recent installation. There were two closing tags. After we corrected the bad XML, .NET works just fine.
Thank you Abraham for the hint. I was missing an end tag in my .NET 2.0 x86 machine.config.
However I had already spent hours repairing, uninstalling, installing and installing service packs.
WOULDN'T IT BE NICE IF VISUAL STUDIO 2008 GAVE A "MACHINE.CONFIG" CORRUPT ERROR!

Resources