Error Adding WebReference in VS2005


Today I was trying to add a Web Reference to an existing project in Visual Studio 2005 and got the following error message:

The web services enumeration components are not available. You need to reinstall Visual Studio to add web references to your application.

I tried several solutions found online (except the one suggesting to uninstall and reinstall Visual Studio) but what finally did the trick was a simple command line:
Open the Visual Studio 2005 Command Prompt and type the following command:

devenv /resetskippkgs