Frequently Asked Question

FAQ / Windows Shared Hosting


How to Generate a Machine Key for ASP.NET?

You need a machine key to fix MAC validation errors. Also, to encrypt, decrypt, authenticate form validation, view-state data, you need a machine key. The below given simple steps will guide you to generate a machine key for ASP.NET.

What is a Machine Key?

It is an element in the ASP.NET web.config file that defines the algorithm and keys that ASP.NET needs for encryption. You can generally spot this key in the machine.config file when you install .NET framework.

Steps to Generate a Machine Key for ASP.NET

Step 1: Simply use the below machine key generator to generate a valid random machine key.

Generate Machine Key

Step 2: Copy the whole Machine Key Code generated from the tool.

Step 3: Go to your Web.Config file and paste the Machine Key in the code section as shown below.


<configuration>     
<system.web>       
<machineKey ... />     
</system.web>   
</configuration> 

Step 4: Save the web.config and upload to your web space. You are done now.

How this faq is helpful:

Not at all
helpful
Not much
helpful
Some what
helpful
Very
helpful
Extremely
helpful

What could be better? (Optional)
X
  Not related to my issue
  Too complicated explanations
  Too much information
  Incorrect information
  Unclear information
  Incomplete information
  Too old information
Do you have any other feedback about this faq ?
1000