Wednesday, August 5, 2009

Identity training kit setup certificates error on Windows7

I was trying to setup Geneva Framework Beta 2 on a Windows7 RC machine to tryout few samples from Identity developer training kit. Geneva framework was successfully installed. However when I tried to install code snippets and certificates on my IIS 7.5 for working with samples it was throwing the following error.

“‘httpcfg.exe’ is not recognized as an internal or external command”.

The error was slightly misleading as httpcfg.exe is something related to IIS 6.0. A little investigation in the batch file revealed the error. The SetupCertificates command file inside the setup\scripts folder is having the problem. In the command file it is validating if the system IsVista and using netsh if not using httpcfg.exe to install the certificates. There is no validation for Windows7. This is causing the error.

Once you update the command file to use netsh for installing certificates on to the IIS, it certificates installed successfully and was able to run the samples.

No comments:

Post a Comment