Scott Forsyth's Blog

Postings on IIS, ASP.NET, SQL Server, Webfarms and general system admin.

Tool: Creating a custom MachineKey in ASP.NET

There are many times when it is worthwhile to create a custom machineKey for your web.config file.  This is worthwhile on a webfarm but also worthwhile on a stand-alone server so that your machineKey remains the same after an iisreset or application pool recycle. 

I've put together a simple tool that will generate a valid random machine key.  It will create a validationKey and decryptionKey which you can copy and paste into your web.config file.  This is random so there is virtually no chance of anyone else having the same keys.

I hope you enjoy!

http://www.orcsweb.com/articles/aspnetmachinekey.aspx

 

Posted: Dec 13 2006, 09:24 PM by OWScott | with 3 comment(s)
Filed under: ,

Comments

Omar AL Zabir said:

Hi Scott,

Thanks for sharing. I also explained this problem in detail in my blog:

http://msmvps.com/blogs/omar/archive/2006/08/20/108307.aspx

Regards,

Omar AL Zabir

www.pageflakes.com

# December 15, 2006 6:24 AM

OWScott said:

Hey Omar, thanks.  Great info on your blog.

# December 15, 2006 8:07 PM

Claire said:

Thanks, very helpful

# June 18, 2007 11:12 PM