VS 2012 Error building Hello World: "The operation could not be completed. The parameter is invalid"

I started VS 2012. I created a new solution / project and made the project a console application. In the proposed class "Program" in the "Basic" method, I added one line, namely:

Console.WriteLine("Hello World"); 

This is ONLY what I did.

I right-click on the solution name and select "Build".

A dialog box / warning immediately appears with the heading "Microsoft Visual Studio" containing a silver "X" in a red circle, followed by an extremely useful error text that reads:

The operation could not be completed. Invalid parameter.

I conducted an extensive search for this very informative error and came to the conclusion that it appears in many different circumstances. In my case, I started testing this a few days ago (in a much more complex MVC application), and it seems choppy. Sometimes I get an error, sometimes not. Sometimes I can completely close the sun and open again, and he will still be there, sometimes he will leave within a few hours. Rebooting the system (ick) usually forces it to leave.

Any help there? Now it drives me crazy. Thank you very much in advance.

FURTHER INFORMATION: If I kill all Visual Studio applications in the task manager (and not just closing Visual Studio in a more usual way), the problem when restarting Visual Studio seems to always be fixed. Still puzzled.

+47
visual-studio-2013 build visual-studio-2015 visual-studio-2012
Dec 05 '13 at 17:59
source share
5 answers

Just disable VS and remove this error again for me.

+52
Oct 27 '15 at 12:28
source share

I tried to solve this problem by deleting the * .suo, bin, and obj files, without any success. I tried restarting VS (2015) and reloading the solution. All references to the projects were accurate.

Then I killed all the processes associated with Visual Studio .

After that, I was able to rebuild the solution.

+14
Oct 07 '15 at 15:45
source share

For me, this happened when I removed the project from a solution that was no longer on the same path. Strange, it was a gray project, but still needed to build ?!

I found out where it was indicated, in my .sln file I had a β€œLinks” entry pointing to the manual of an absent or remote project in the solution. This will result in an error.

You can also check the solution properties pages, one of which gives a project message with the name "" that does not exist.

So basically, clear the "Links" section in your .sln until it is created.

+8
Mar 02 '14 at 15:13
source share

This happened to me in the new VS VS 2015 web project. I had an error when I tried to build or clear the solution. Closing VS and deleting everything in the bin folder worked for me.

+7
Oct 27 '15 at 2:10
source share

It helped me to delete all bin obj folders and rebuild the solution. I moved the mvc project from 2013 to 2015. Oddly enough, this happened with two solutions, but not for everyone else.

+1
Aug 02 '15 at 10:43 on
source share