Running Sitecore 6 on Windows 7′s IIS
Published by Wim Haanstra in Other with 15 Comments
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 Comments
sbaumgartner on May 2, 2009 ·
You saved my life, man!
Thanks so much!
depl0y on May 3, 2009 ·
Great to see that this actually helped people
alexshyba on May 26, 2009 ·
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!
Daniel on June 30, 2009 ·
Thanks. This sorted it out for me too. (Win7)
lewisg on July 14, 2009 ·
thanks dude! solved my windows7 sitecore prob
Alex on September 1, 2009 ·
Hi guys did someone tried the previous Sitecore 5.3.2 on Windows 7?
depl0y on September 1, 2009 ·
Nope, not really, but I don”t really see a problem getting that to run either. Are you having any problems?
Andrei on September 21, 2009 ·
It fixed my sitecore 6 installation on server 2008 R2 too. Thanks Man
Gregory on October 13, 2009 ·
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!!
Repox on November 4, 2009 ·
Thank you very much – a quick google search pointed me to this solution which was a great help
adrian on November 6, 2009 ·
Thanks man, you are the best ! just a google search and I managed to get the site working…thanks again.
Lars on January 27, 2010 ·
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
zhankai on November 7, 2011 ·
thanks very much! I have solute this problem with this method.
protherj on April 20, 2009 ·
Thanks! This saved me tons of time debugging.