VS 2012 New project creation throws exception - windows

this isn't duplicate question
I am using windows 7 , vs 2102.
Whenever I try to create a new project I get this exception,
set property 'system.windows.resourcedictionary.deferrablecontent'
threw an exception
have checked installed program list I don't have any Azure installed.
Also devenv /resetuserdata doesn't help , it shows Unknown error .

I guess you are not closing visual studio and trying to hit resetuserdata command.
OR there are multiple users logged in (someone might have disconnected and visual studio running) , nutshell only when visual studio is running unknown error will be visible, I tried and i too get unknown error. (though yours and mine unknown error may be different)
Reboot machines and try resetuserdata that should solve this error.

Related

Visual Studio 2013 crashes on startup; no updates or changes made [duplicate]

Yesterday I studied a little MVC5 before bed.
Today, I open Visual Studio 2013 and while loading, the following exception occurs:
Exception Details
System.ArgumentNullException was unhandled
Message: An unhandled exception of type 'System.ArgumentNullException' occurred in mscorlib.dll
Additional information: Buffer cannot be null.
Parameter name: buffer
I have already repaired Visual Studio and nothing has changed.
Does anyone know what's going on?
The Update 5 worked for me. However you need to be part of Dev Essentials in order to download this update.
https://my.visualstudio.com/Downloads?q=Visual%20Studio%202013%20Update%205
Appears to be fixed now, although I see no confirmation on https://social.msdn.microsoft.com/Forums/en-US/46728392-212b-405e-aea0-2ab02f91cd1f/visual-studio-2013-crashes-on-startup?forum=visualstudiogeneral
I'm running VS2013 U3 and able to startup without issue. A colleague is able to run VS2013 as well.

Visual Studio 2013 crashing while opening solution: Attempting to activate an adapter in state TextViewInitializing

My system got shut down anyhow and after this I am not able to open projects in visual studio 2013. I tried creating new project and it was opening and running fine untill I added a new class library to it. Once my new solution has two project, it started creating same problem. Visual studio is not opening solution with message "Microsoft Visual Studio 2013 has stopped working". I tried to debug this and getting below error:
"System.InvalidOperationException was unhandled
Message: An unhandled exception of type 'System.InvalidOperationException' occurred in Microsoft.VisualStudio.Editor.Implementation.dll
Additional information: Attempting to activate an adapter in state TextViewInitializing"
I tried google to search the solution but not getting anything relevant. I tried clearing temp files but no success. I cleared bin and debug folder but still no luck. Do you have any solution for this.

Visual Studio 2012 shell keeps breaking- SSIS in particular

I have Visual Studio 2012 shell installed just for SQL Server Data tools so I can do SSIS and SSAS projects. I used it for several days and one afternoon, it just wouldn't work- got a popup saying "Microsoft Visual Studio 2012 has stopped working" and it had these long error messages in any windows relating to SSIS, like the SSIS toolbox and Variables window. I ran it in safe mode and no longer got the popup message, but still saw the SSIS errors and SSIS projects would not load (in Solution Explorer they were empty and say "incompatible"). I tried uninstalling and reinstalling VS and installed CU5 and CU15 (cumulative updates) for SQL Server and even started uninstalling SQL Server (that got complicated, it never seemed to really remove everything), but ran out of luck and reformatted my computer. After doing that, I installed SQL Server (Developer edition) and VS and things worked great for a couple days until I installed Windows Updates last night. This morning, Visual Studio was back showing the errors again. This is so frustrating!! I tried uninstalling all updates that I saw that ran the last couple days.
Errors that appear in SSIS Toolbox (or Variables window, etc):
An exception was encountered while constructing the content of this frame. This information is also logged in "C\Users\\AppData\Roaming\Microsoft\VisualStudio\11.0\ActivityLog.xml". Exception details: System.Windows.Markup.XamlParseException: Provide value on 'System.Windows.Markup.StaticExtension' threw an exception.--->
System.Reflection.TargetInvocationException:Exception has been thrown by the target of an invocation.--->
System.TypeLoadException: Could not load type 'Microsoft.SQLServer.Dts.Design, Version=11.0.0.0,Culture=neutral,PublicKeyToken=89845dcd8080cc91'. at Microsoft.SqlServer.IntegrationServices.Designer.Common.ImageSourceHelper.GetImageSourceFromResource(Assembly assembly, String resourceName, Size size) at
Microsoft.SqlServer.IntegrationServices.Designer.Common.ImageSourceHelper.GetImageSourceFromResource(Assembly assembly, String resourceName, Boolean isLarge)
etc
I am unable to see the rest of the error right now, but I also saw this error frequently before I reformatted my computer: "The type initializer for 'Microsoft.DataTransformationServices.Design.SharedIcons' threw an exception. I think I saw this after I ran VS in Safe Mode, and then started it again, although I haven't seen it this time around.
I ended up resolving this by opening up SQL Server Installation Center. I went to Maintenance and then Repair, and once that finished, VS started working again. I also want to point out that while Repair was running, I got a couple error popups and messages asking me to insert a CD or media file that I did not have. I just hit Cancel or whatever was needed to move on, so don't be deterred by that.

Visual Studio 2013 Ultimate installation error

When I try to install Visual Studio 2013 Ultimate on my laptop, I get this error:
Setup Failed!
Install cannot continue because some required components failed.
Please correct the following problems and restart the setup to ensure full product functionality. To learn more, you can review the list of common issues and workarounds or examine the log file.
Setup Engine
This operation returned because the timeout period expired.
There wasn't anything of relevance in the list of common issues. In the log file there were these errors:
[0AA8:0FC4][2013-10-20T18:24:54]e000: Error 0x800705b4: Failed to wait for child to connect to pipe.
[0AA8:0FC4][2013-10-20T18:24:54]e000: Error 0x800705b4: Failed to connect to elevated child process.
[0AA8:0FC4][2013-10-20T18:24:54]e000: Error 0x800705b4: Failed to actually elevate.
[0AA8:0FC4][2013-10-20T18:24:54]e000: Error 0x800705b4: Failed to elevate.
Help appreciated.
We ran into this same issue this morning (with VS Premium 2013). The user was not a local administrator on their machine, which was causing the problem. Giving them local admin rights (or running the install as administrator) resolved the issue.
I would suggest you to look here Known Issues for Visual Studio 2013. Otherwise you can email them directly. Also remember to start the installer as an administrator. Also run windows update to make sure you have latest version of windows 8 or 8.1.

Package Manager Console Error

When I start visual studio express 2012 for web I get this error in the package manager console.
Cannot load Windows PowerShell snap-in Microsoft.PowerShell.Core because of the following
error: Unable to load one or more of the requested types. Retrieve the LoaderExceptions
property for more information.
Loader Exceptions:
Exception of type 'System.OutOfMemoryException' was thrown.
I don't remember adding anything new to visual studio. I searched other related problems but they don't work for me.
I tried repairing visual studio. I also tried re-installing visual studio which temporarily removed the problem but it is back again.
Anyone has a solution?
I finally made it work. I suspected it is something from windows update that messed up with my VS since I didn't really add anything to VS. I am not sure which updates to remove so I just uninstalled all the windows update that starts in a certain date. Here are the actual steps that I did:
What I did is uninstalled visual studio 2012 express for web following this tutorial.
And then uninstalled windows updates starting from the date I believe the error started appearing.
After I used CCleaner to clean my registry. Had to run it 2 times to just to make sure it is clean. I'm not sure if this actually helps. I just heard from my friend that uninstalling applications sometime leaves registry keys behind.
Finally, I installed visual studio again. Package manager is back to normal.
Restarted my laptop and it is still working. So I guess it is solved.
I think System Restore would do solve this instead of doing all this steps. But system restore was not an option for .

Resources