Running Sitecore 6 on Windows 7’s IIS

Just posting this info, for all the people getting an error after installing Sitecore 6 on IIS7 of Windows 7.

The error

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.

Well, the solution is rather easy… make sure you got the following code in your global.asax

  public void Application_Start() {
	  System.Security.Cryptography.RSACryptoServiceProvider.UseMachineKeyStore = true;
	  System.Security.Cryptography.DSACryptoServiceProvider.UseMachineKeyStore = true;

15 thoughts on “Running Sitecore 6 on Windows 7’s IIS

  1. One of my instances works fine without it, other needs this. Trying to get to the bottom of it. It is also required if you change the app pool identity. Thanks for sharing!

  2. Thanks for taking the time to post this fix! It work for the Sitecore Express installation on Windows 7 with IIS 7.

    Thanks, thanks, thanks!!

Leave a Reply