Teoman shipahi
Teoman shipahi

Reputation: 23132

visual studio 2013 hangs on right click

After I install Visual Studio 2013 update 2, I notice that right click on any kind of project file (aspx, cshtml) causes about 45 seconds of hang in Visual Studio. It eventually opens context menu, but every single time this happens.

If I right click on Solution Explorer, Class View etc.. there is no issue at all, just in files editor.

I am using intel i7 processor and 16gb ram (hardware is not an issue) and Windows 8.1 Pro.

I also cannot connect tfs online for last 2 days so I am using my solution with disconnect from tfs. This causes hangs on start up because it tries to connect remote server. But I am not sure it will cause issue on right click of the files.

What I did up to this moment;

1- Installed last update again 2- Restarted Visual Studio several times 3- Restarted PC 4- Cleared TFS cache files

Is there any idea what is causing this issue?

Update: I created an empty MVC project without TFS binding and there is not issue. Looks like it is totally related to TFS dis-connectivity, I will investigate more and will post answer if find out.

Upvotes: 19

Views: 7293

Answers (4)

AndyG
AndyG

Reputation: 41220

Recently had this issue in Visual Studio 2015

For me it was because I had silently been disconnected from the TFS server

When you right click in a source-controlled file, part of the context menu consists of TFS commands (check out for edit, history, annotate). I presume that VS was spinning waiting for a TFS connection that would never come.

Getting reconnected to TFS solved the issue.

Upvotes: 0

MIP1983
MIP1983

Reputation: 1374

Just sharing as I had a different cause, so this may help some one else. My visual studio (2015) was locking up for 10-20 seconds on the right click context menu on the solution.

It turned out to be a faulty extension. Go to 'tools' > 'Extensions and updates', and try disabling all your extensions. If that solves it, try enabling a few at a time, until you narrow it down to a particular extension.

In my case, it happened to be the 'ImageOptimizer' extension, that comes part of Madz 'web extention pack': Github issue on 'ImageOptimizer'

Upvotes: 2

Augusto Barreto
Augusto Barreto

Reputation: 3695

I just had the same issue and in my case wasn't Resharper the culprit. What worked for me was, inside VS, right clicking the SOLUTION, open Nuget Package Manager and at the top was a message telling "There are missing packages". I clicked to restore them and immediately after that the problem was solved.

Upvotes: 10

Rudey
Rudey

Reputation: 4975

ReSharper can cause this problem. You can suspend it (temporarily) to see if the problem is solved. If it is indeed solved, you should clear ReSharper's cache before you enable it again. Go to %LOCALAPPDATA%\JetBrains\ReSharper and delete the SolutionCaches folder for whatever version of ReSharper you are using.

Upvotes: 25

Related Questions