Posted on 27. Feb, 2009 by Wim Haanstra in C#.

 

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

The error

1
2
3
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

1
2
3
4
  public void Application_Start() {
	  System.Security.Cryptography.RSACryptoServiceProvider.UseMachineKeyStore = true;
	  System.Security.Cryptography.DSACryptoServiceProvider.UseMachineKeyStore = true;
  }

14 Responses to “Running Sitecore 6 on Windows 7's IIS”

 
  1. protherj says:

    Thanks! This saved me tons of time debugging.

  2. mbass says:

    I’ll add my thanks. Thanks!

    Same error, same solution on Server 2008.

  3. sbaumgartner says:

    You saved my life, man!

    Thanks so much!

  4. depl0y says:

    Great to see that this actually helped people ;)

  5. alexshyba says:

    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!

  6. Daniel says:

    Thanks. This sorted it out for me too. (Win7)

  7. lewisg says:

    thanks dude! solved my windows7 sitecore prob

  8. Alex says:

    Hi guys did someone tried the previous Sitecore 5.3.2 on Windows 7?

  9. depl0y says:

    Nope, not really, but I don’t really see a problem getting that to run either. Are you having any problems?

  10. Andrei says:

    It fixed my sitecore 6 installation on server 2008 R2 too. Thanks Man

  11. Gregory says:

    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!!

  12. Repox says:

    Thank you very much – a quick google search pointed me to this solution which was a great help :D

  13. adrian says:

    Thanks man, you are the best ! just a google search and I managed to get the site working…thanks again.

  14. Lars says:

    I experienced this problem after installing SitecoreXpress with no access to global.asax codebehind on win7. Found a way to fix it here: http://maesitus-sitecore.blogspot.com/2010/01/cryptographicexception-file-not-found.html


Leave a Reply


 

WallPaper3 Stats

Latest Images

What I'm Doing...

Posting tweet...

Powered by Twitter Tools