Running samples of Geneva Beta 2 in Windows 7

As the official website advised, Microsoft code name "Geneva" is an open platform that provides simplified user access and single sign-on for on-premises and cloud-based applications in the enterprise, across organizations, and on the Web. Currently the newest version is Beta 2, released on Aug. 18, 2009, about two months later than the release of Windows 7. So when my colleague, Yang, tried to make its samples run in Windows 7 Professional. Some strange errors popped up.

We worked together for a long time to modify setup scripts and authority issues, getting it work eventually. I categorized errors that we came across, and corresponding solutions we made as following.

1. Error in “Run SamplesPreReqSetup.bat”

The script cannot find httpcfg.exe tool in the current running environment.
You can install this by going to the following link "http://go.microsoft.com/fwlink/?LinkID=100322"
Please ensure that httpcfg.exe is installed in your PATH or the directory this script is running from.
Please press Ctrl-C to stop this batch file
Solution: Change the following line in both SamplesPreReqSetup.bat and SamplesPreReqCleanup.bat:
(ver | findstr /C:"6.0") && set IsVista=true to (ver | findstr /C:"6.1") && set IsVista=true

2. HTTP Error 500.19 - Internal Server Error

The requested page cannot be accessed because the related configuration data for the page is invalid.
Error Code: 0x80070005
Config Error: Cannot read configuration file due to insufficient permissions
Solution: Grant the group ‘IIS_IUSRS’ READ permission to ‘Getting Started’ folder.

3. Server Error in '/XXXXXXXXWebApp' Application - Configuration Error

Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.
Parser Error Message: ID1024: The configuration property value is not valid.
PropertyName: serviceCertificate
Error: ID1039: The certificate's private key could not be accessed. Ensure the access control list (ACL) on the certificate's private key grants access to the application pool user.
Solution: Find the newest two key files in folder ‘%ALLUSERSPROFILE%\Microsoft\Crypto\RSA\MachineKeys’, grand the group ‘IIS_IUSRS’ READ permission to these two files.

4. Server Error in '/ XXXXXXXXWebApp' Application - The system cannot find the file specified.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Security.Cryptography.CryptographicException: The system cannot find the file specified.
Solution: Change the application pool to ‘Classic .NET AppPool’ for this application in IIS 7. You can find details of how-to in Change an Application Pool for an Application (IIS 7).

Comments