Visual Studio popup: “the operation could not be c

2019-01-10 02:50发布

When I try to open a project, local or on a Team Foundation Server (TFS), I get a modal window telling me that:

The operation could not be completed: Unspecified error

Or the same message, but with "Class not defined.." instead of "Unspecified error".

These errors started happening earlier today when I tried to check in some of my work to the team foundation server. I have tried using Visual Studio 2008 on the same computer, but I still get the same error. I've also googled for it but none of the solutions seems to help me.

I have installed the latest updates from Windows Update as well.

Any ideas?

29条回答
爷、活的狠高调
2楼-- · 2019-01-10 03:13

No more .SUO files, but deleting .user files works. FYI: I am debugging Silverlight project

查看更多
干净又极端
3楼-- · 2019-01-10 03:13

For this problem, I resolved it by deleting the .user file which contains the Visual Studio Project User Options. This File can be found in the same place where your .sln file is located. Also, after deleting this file from the project make sure to reload your solution in order for it to take effect.

查看更多
对你真心纯属浪费
4楼-- · 2019-01-10 03:15

Sometimes it is just a matter of closing Visual Studio 2015 and then open again.

Update: Visual Studio 2017 apparently as well.

I have had this happen on a few machines.

This does happen

"Have you tried to delete the "Your_Solution_FileName.suo" file?"

Also computer crashing like e.g. power outage etc...

Applies to Update 2 and Update 3 as well as fresh base without any updates...

查看更多
Animai°情兽
5楼-- · 2019-01-10 03:15

I ran into this same problem but deleting the .suo file did not help. The only way I could get the project to load was by deleting the "Your_Project_FileName.csproj.user" file.

--

I ran into this problem again a few months later but this time deleting the "Your_Project_FileName.csproj.user" file didn't help like it did last time. I finally managed to track it down to an IIS Express issue. I removed the site from my applicationhost.config and let Visual Studio recreate it, this allowed the project to finally be loaded.

查看更多
趁早两清
6楼-- · 2019-01-10 03:16

This still applies to Windows 2017 .. yes, you can close Visual Studio and start again. But why does this problem exists - and why has it not been fixed yet?!

Every time this happens (and it happens a lot), it takes focus away from just producing code .. and adds to frustration and anger .. which lead to hate .. which again leads to suffering .. see where I am going?

Microsoft, stop leading us to the path of the dark side! Fix these annoyances once for all .. and restore peace to the galaxy!

查看更多
【Aperson】
7楼-- · 2019-01-10 03:16

Go to Run and type "inetmgr", i.e IIS is opened and in the right corner Action window, select option change ".NET Framework version". Change it.

After that, reinstall your Visual studio 2010. It works on my computer, and that's why sharing.

查看更多
登录 后发表回答