Visual Studio hangs downloading Cordova Geolocation plugin - visual-studio

I have created a Cordova project in Visual Studio 2015. By using cordova --version on my project folder, I could see that I am using Cordova 4.2.0.
Next thing I wanted to do is installing Geolocation plugin. So I did this by editing `config.xml via VS UI. The problem is that, once I hit, "Add", VS hangs.
It stays in this condition forever.
Please note
I spotted other questions about people not being able to download the same plugin, but that was not VS hanging, it was VS reporting an error. The reported error should have been fixed.
FYI I installed VS2015 Enterprise (full installation).

It looks like it just takes a lot of time! I left Visual Studio in that state for 4 hours. And now I have the plug-in downloaded and everything is fine!
It is pretty strange though. My network was fine and up during all the time. However it might be some network issue concerning me. Unfortunately hard to say.
So basically the procedure is fine. If anybody else runs into this again, then i think Visual Studio is having troubles downloading these plug-ins.

Related

files disappear from VS 2015 solution after saving

After installing VS 2015 Pro (14.0.25... with Update 3, licence key has been succesfully added), and creating a new project (especially in Javascript or TypeScript with Ionic 2 templates), when I open a file, (modified it or not), I save it and it disappear from Solution Explorer. Just before it disappear, the icon of the file is updated with a warning icon.
However, if I try to create a C++ project, there is no problem !
In a typescript project, after building, ts files appear again at the end of the build.
All my projects are located in c: disk. I've tried with and without using git.
The two extensions I've installed are : Ionic 2 templates and NPM Task runner. I uninstalled them, but the problem is still here.
When I restart VS, I can see again the files. But the problem is still here.
How to fix it ?
I had same issue on Windows 10.
It seems caused by windows update version 1709.
After I recovered my windows version to 1703, the problem was solved.
I can confirm that the 1709 (aka Fall Creator's Update) caused this. I was too low on space to keep the rollback. In another thread someone suggested that visual studio 2017 does not have this problem. I can confirm that is true; but this solution came (for me) with a few different problems. First, I can no longer deploy direct to my android phone. Second, my team-mates still on VS 2015 can no longer open the project at all! If you can move forward to VS 2017, you'll also need to install TypeScript SDK for Visual Studio 2017 before you can compile again.

Visual Studio 2017 crash

We are running into a problem opening our MVC5 solution in Visual Studio 2017. It will show a message saying loading projects, followed by "Preparing solution" and then it just freezes. Some preliminary research has lead to suggestions like
Remove the hidden .vs folder
Repair installation by running as admin
Updating to the latest released VS build
Remove any node.js type folders that have deeply nested folder structure within the solution folder
However, none of these have worked. Has anyone else run into a similar problem using VS 2017 with their solution? There are no special commands on packages loaded on startup.
I was able to finally get it to work. I updated to the latest Visual Studio build 15.0.0+26228.10, but that did not seem to help. After removing my .vs folder before opening the solution multiple times, it finally started to load. I have no 3rd party extensions or tools running.
I installed visual studio enterprise 2017 version 15.0.0+26228.10. and productivity power tool extension. the studio keep crashing when load project. I uninstall everything and reinstall vs only, the crash problem disappeared.
Deleted the vs folder, but it didn't work.
Looked for recently changed files in the project, saw Web.csproj.user — when I removed this the project works again.
Visual studio 2017 keeps crashing when i try to launch it,all i did was to launch visual studio installer go to more which is under the product am using then clicked on repair and that got me running again.
We saw some lockups, especially during the start of Batch Builds, until we set this experimental feature to False:
Tools > Options : Text Editor > C/C++ > Experimental : Enable Faster Project Load.
I don't know whether it could apply to your problem or not, but it is related to loading projects, so...
Good luck.
I had the same issue and uninstalled the ankhsvn subversion plugin then closed and re opened vs 2017 ad it worked.

Visual studio 2013 works slow after Update 4

Does anybody know if Visual Studio Update 4 bring something which can consume CPU too much?
I had update 3 before and did not have any issues with performance, but after Update 4 I noticed that Visual studio is doing something (even if it's in background) and CPU is not going lower that 15%
Also it's not very responsive after 1-2 hours or work, I have to restart it.
I noticed than it's IsAssertEtwEnabled takes most of CPU, but have no idea what is it, I googled but found only one answer about DevExpress plugin, but I don't have it.
(if I uninstall updates, everything back to normal, but I prefer to have software to be updated)
UPDATE: I found the issue, it's browser link causing CPU and performance problems. After disabling browser link it get back to normal.
See second screenshot to see how to disable browser link
Try disabling browser link. Thats what I did.
It happens with Visual Studio.
The best part is to remove it completely and re install everything from first.
This is mainly caused because you have did Update
That IS:
1) Remove your Visual Studio and Emulator's and updates completely.
2)Install Visual studio.
3)now install just the current version update 3
4)now the emulators.
Your done!!!
It happens with Visual Studio because you have updated that not installed the latest version directly, when you are upgrading that some threads are running behind that checks the current version every time you are connected to internet
Try reinstalling that visual studio
Diable browser link
I'd also recommend to uninstall Visual Studio completely and install the latest version VS 2013 with Update 4. It's the current stable version.
And works better on my PC as compared to VS 2012. :)
Just in case if disabling browser link does not solve the problem, try to run VS in safe mode by running devenv.exe /safemode. This will disable any third party add-ins and you can check if some add-ins have issues with the new update.
If it still doesn't solve the problem, try reinstalling VS, and make sure that the installation run without any problems.

the service microsoft.visualstudio.shell.interop.iselectioncontainer already exists in the service container

I recently installed Visual Studio 2013 Ultimate version on my machine. I'm just trying to create a sample windows form project and trying to open the designer / form by double clicking on Form1.cs and I'm getting this weird error message:
"the service microsoft.visualstudio.shell.interop.iselectioncontainer already exists in the service container"
My system is already having Visual Studio 2010 which is working smoothly from a long time. I then installed Visual Studio 2012 which was giving the same problem as above. So I went ahead with installing VS 2013 hoping that I might be able to get rid of this issue, but no use.
Once I click OK on the error windows, I can see the following "message" in the bottom Error List window:
"The file 'C:\Users\ABCD\Documents\Visual Studio 2013\Projects\WebSite1\WindowsFormsApplication1\Form1.cs' does not support code parsing or generation because it is not contained within a project that supports code."
I have spent 2-3 days searching various blogs like these, all of which talk about previous version of Visual Studio like VS 2005 / VS 2008:
https://connect.microsoft.com/VisualStudio/feedback/details/311949/the-service-microsoft-visualstudio-shell-interop-iselectioncontainer-already-exists-in-the-service-container
Form inheritance in Visual Studio 2008 doesn't work
I have even tried uninstalling and reinstalling VS 2013, again no use.
It would be really great if someone can help me out in fixing this.
I've just had the exact same error message.
After compiling the solution(F6 or Build->Build Solution) it worked fine for me.
To deal with your issue, please first make sure that you installed latest updates on your Windows 8 machine, and then repair VS2013.
During your repairing process, please temporally turn off your anti-virus/antispyware software and repair VS2013 with the Administrator privilege.
follow this link
The problem got resolved finally, after so many days and various frustrating tries to resolve the issue. I should thank Tim Atkins from Microsoft for helping me with resolving this issue.
Fix: When we tried 'gacutil /l system.design', we found that there were 3 variants of system.design; One from .Net 2.0 targetting MSIL, second from .Net 4.0 targetting x86 and last one also from .Net 4.0, but targetting MSIL.
On a working machine, there were only 2 entries, the .Net 4.0 one targetting x86 wasn't there. Hence we uninstalled this version using gacutil which did the magic. I was so relieved seeing the win forms popping up without any errors anymore :)
I changed the target framework from 4.5 to 4.6.1 and it fixed it for me. My assumption is sometimes when you change target framework back and forth and the process does not go through all the way (cancelling in the middle of changing it) - something happens that leads to this error. Hope that helps
I solved this be closing VS, deleting contents of the .vs folder where my solution is, restarting VS and recompiling.
Seems like one of those file/settings/caching problems that pop up now and then, might be after switching source branch.
VS2019, .net fw 4.6.2.
If your C drive (Where you are installing Visual Studio) does not have enough space, try moving some files from the C drive to another drives.

VS2012 Javascript Debugging Won't Work

For the last 2 days I have had a right pigs ear of a problem that I just have not been able to get past.
Any time I try to debug an Windows 8 store JavaScript app using VS2012 on my laptop I get the following error:
>Unable to start debugging 'C:\Windows\system32\wwahost.exe'.
>
>Microsoft Visual Studio Debugging Monitor (MSCVMON.EXE) failed to
>start. If this problem persists, please repair your Visual Studio
>installation vis 'Add or Remove Programs' in control panel.
This happens when I try to debug locally and in simulator.
This only happens for javascript projects, all other types of projects work fine.
So far the steps I have taken are:
repaired installation
installed update 1
Added all application packages to program files (x86)\Common Files\Microsoft Shared\VS7Debug on security tab.
uninstalled and re-installed
Nothing has worked.
Interestingly this error is about remote debugging which I am not trying to do, I didn't have remote debugging installed for 2012 but it was installed on my system for VS2008.
I installed it for VS2012 and opened the monitor while I tried to debug and nothing showed in the log.
I did an install using same VS2012 DVD on a fresh win8 desktop installation and it has no issues it all works fine although it did ask me on first run to set the permissions (I cant remember if it did this on my laptop).
I think the problem came when installing on my laptop it asked me if I wanted to import setting from previous versions of Visual Studio and I said yes.
I have done constant internet searching on this topic for last 2 days and some people are saying the problem is caused by VS2012 trying to open some VS2008 files but how to fix this is not clear.
When I uninstalled VS2012 and re-installed it didn't ask me if I wanted to import settings so I think I didn't fully un-install it (it still had a list of my recently accessed projects after the re-install).
Sorry for the long post but this has driven me crazy and I just cannot think of what to try next. Can anyone please help?

Resources