How to fix visual studio projects unable to open - windows

I have Windows System(OS 10), I installed Visual Studio 12 and 17 versions and SQL SERVER 2014. Unfortunately, when I am trying to open projects in vs2012/17 it is closing immediately after clicking on an open project or new Project creation. I observed another thing System IIS also not working properly. I am unable to find the reason.

Try this way
Open visual Studio
Connect to your team project in Team Explorer
Open the project you wanted initialy to open. This can either be done
by File -> Open -> Project/Solution or by selecting the project from
the recent tab.

Check %APPDATA%\Microsoft\VisualStudio\\ActivityLog.xml location for errors

Related

Unable to debug issue Apache cordova project in vs 2017

I have install visual studio 2017 with almost all components on my PC (windows 8.1) but when I Add new Apache Cordova project and run it will show
"unable to start debugging. The startup project cannot be launched. Ensure that the correct project is set as the startup project. The startup project can be changed by selecting 'Set as startup project' command from right click menu solution explorer. Additionally make sure its debug settings are correctly configured in the project properties" Other project types are work fine. Project Properties
I have already set startup project but it is not working please help
In case someone is struggling with the same, here's the step to fix it. Go to Visual Studio "Tools" > "Extension and Updates" > then search for "Cordova". Make sure it is turned on:
I just lost a couple of hours to this error. For me, the solution was to follow the instructions available at this link:
In case that link ever dies, here is a copy of the instructions:
If you get a message in Visual Studio that says you can't start debugging your app, try these steps. Also, try these steps if no emulators or devices are listed in the debug target dropdown list.
Close all instances of Visual Studio.
Open this folder:
C:\Users\username%appdata%\Local\Microsoft\Phone Tools
Rename the CoreCon folder to any other name (CoreCon will get recreated when you rebuild).
Restart Visual Studio and try again.

Visual studio 2015 / TFS Access is denied

When I try to add new item to project in visual studio 2015 I always get this message
Access is denied.
The file is created and added to the project, but it is not added to Source Control, although the project is in source control. However, when I try to manually add the file to source control by right-clicking in Solution Explorer -> Add to source control, the file is added to TFS.
I have upgraded to windows 10 and installed Visual Studio 2015. I'm working on existing solution in C:\Projects\ and the solution was created and added to source control before I upgraded.
EDIT: If I run VS in admin mode, the error is gone
Access is denied. returns very little information. For more detail info, you can repro the error and run a procmon trace using Process Monitor tool filtered on DEVENV.EXE. Detail for how to use the tool: http://www.mztools.com/articles/2008/MZ2008024.aspx
Normally, this error message can be corrected with the followings:
Add your Windows account to the Administrators group on the local PC
Run your Visual Studio in Administrator mode.
Check if your project folder is set to read only.

Unable to get launched browser process for Ripple

When I create new mobile application in visual studio, I can run it and no problems happen.
But when I start running another application (created by other developer, and shared on TFS), I got the following messages:
Unable to get launched browser process for Ripple.
Unable to get Ripple session info for port 0.
No build errors or warnings! just 2 messages!!
Any idea?
My environment:
Visual studio 2013 community edition (with Update 4)
Windows 7, x64
* EDIT:
It worked by right-clicking project name in solution explorer | Debug | start new instance
But still didn't work by hitting F5 or clicking Run button in toolbar!!
Go to project
Properties > Configuration Manager
(left top corner) and check
deploy
Close Visual Studio, delete solution .suo files.
Open Solution .sln and test it, this work for me.
In Visual Studio go to Tools -> Options -> Tools for Apache Cordova, select Clear Cordova Cache.
This worked for me to solve the issues above and has been the solution to a few other issues when using these tools.
Need to set Visual Studio F5 action for Build and Deploy for Mobile project from Configuration Manager
Right click on the solution and select the Properties
Select Configuration Properties from left panel
Select your Mobile Project
Set (Tick) Build and Deploy checkboxes
Delete Suo file from solution will fix it for you.
In Visual Studio 2015 I had to separately install Ripple as a package of my Apache Cordova Project and restart Visual Studio. To start Ripple, right click on your project and select deploy.

set property 'system.windows.resourcedictionary.deferrablecontent' threw an exception

I'm running Visual Studio 2012, when I add a new File/Reference to a project the message box appears showing the error message
set property 'system.windows.resourcedictionary.deferrablecontent' threw an exception
I read an MSDN article suggesting to run the command devenv /resetuserdata on visual studio command prompt to resolve this problem, tried it but didn't work for me. In fact the command prompt shows the Unknown Error message.
Some addins cause this issue for me so have had to workaround it whenever it occurs:
In Vis studio -
Tools > Options > Environment > Add-in Security, uncheck 'Allow Add-in components to load', OK
Restart vis studio
The error shouldn't occur anymore, so go back to
Tools > Options > Environment > Add-in Security and re-check Allow Add-in components to load, OK
To be specific, I get this error when trying to add files to projects and manage Nuget Packages.
Update
I now make a point of opening
'Tools > Nuget package manager > Manage nuget packages for solution'
whenever I open up a new instance of Vis studio, before loading a solution, just to make sure the window loads properly
That way I know I won't get this issue.
In my case it was a style with the same key defined twice in a ResourceDictionary (WPF)
I have Windows azure tools for Microsoft VisulStudio 2013- v2.2 and Windows azure tools for Microsoft lightswitch VisulStudio 2013- v2.2.
I uninstall only Windows azure tools for microsoft lightswitch vs 2013 .
It's working fine...
I fixed it. The resolution was to remove the Windows Azure Tools for Visual Studio 2012 which I was not actually using, and the error went straight away.
In my case it was to first launch Visual Studio in safe mode. You can create a shortcut for visual studio with a target like this:
'"F:\Program Files\Visual Studio\VS2013\Common7\IDE\devenv.exe" -safemode'
Once launched in safe mode, you can remove the problematic extension via the Addin Manager. However, this wont work for some extensions, as the uninstall option might be disabled for certain extensions when running in safe mode, particularly if you have already uninstalled another extension in the same session.
In My case the problem was caused by Paradox Game engine, in which I had uninstalled it via 'Programs and Features' - which in return did not remove the extension which was originally installed via Nuget package. Uninstalling Paradox via "Programs And Features" left the extension itself still registered in Visual Studio, presumably causing a hidden NullReferenceException.
This issue can be caused by any extension that may have an error in it, or by extensions that were not properly uninstalled.
Also, see this article...
The mentioned issue can be resolved by simply restart the Visual Studio. :P
Also seem to be able to get around this by closing the project and vis studio instance, re-opening, then when the start page/open project screen appears selecting Tools > Extensions and Updates..., then pressing Close
Now open the project and the error doesn't get thrown when trying add files or manage nuget packages, weird.
Just annoying you have to remember to open Extensions and Updates each time...
Other wise make sure given Resourcedictionary.xaml path is correct or not
I had to remove Xamarin from Add/Remove Programs in Control panel and restart Visual studio to fix this.
I had this problem with My Devexpress Project in VS 2015
What finally worked for me was.
Close my solution,
Close Visual Studio,
Open Visual Studio,
Create a New dummy project,
Add a form to it,
Close and save the new project,
Reopen original project and all was ok.
for everyone else who are working in silverlight sdk environment with windows phone8 sdk.
The versions of sliverlight which are compatible with visual studio versions -
vs2012- sliverlight sdk 4
vs2013- silverlight sdk 5
I was integrating in vs2013 and as soon as I updated it with silverlight sdk 5, The errors went away.
In my case it was the Line Endings: you can have different formatting and by copy pasting some code one file got a different Line Ending. It was enough to File > Save As and then click the little arrow next to the save button.
Then click on save with encoding and choose the one you are using in all other files.
See Andrew Truckle's answer.
I hope this helps

Visual studio 2005 crashes attempting to add new project setting in Project Settings pane. How to fix?

While trying to add a new user or application setting to the project properties pane of a project, visual studio 2005 hangs and then prompts after a minute to debug or restart. Have tried deleting the app.config and user.config files to no avail. Have tried resetting the ide's application settings. Have tried hitting sychronize under the pane. Is there a corrupt file that is causing this mess? What is the solution? More info: visual basic development, vista, vs 2005.
I've had problems like this before. I would approach it like:
Install the latest service pack
If you've got time, reinstall
Worst-case, manually edit your project file to add the settings
After deleting the Settings.Designer.vb file and hitting 'Synchronize' under the project properties pane, it appears that everything is working again. It seems that the Settings.settings file and Settings.Designer.vb files became corrupted or unsynchronized and the ide could not recover.

Resources