Wednesday, November 26, 2008

ERROR: Components required to enumerate web reference are not installed in V2008

Attending a WCF .Net Framework 3.5 training and came across this error when trying to add Service Web Reference.

"The components required to enumerate web references are not installed on this computer. Please re-install Visual studio"

It is kinda weird as I have a full installation of VS2008 on my computer but somehow it says it is not installed. How come?

What I did:

  1. I actually try to reinstall VS 2008. Then open up the project again and try to add Service Reference. --> RESULTS: Still FAIL.

  2. Google up. Found this magic word "devenv /resetskippkgs". Pump this word into the command prompt. Voila. ---> RESULTS: It SOLVES my problem. (Note that run this magic word on the folder where you installed the VS. In my case, it's "C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE").

Solution: Follow step #2 and skip #1.