Knowledge Base


« Back to Knowledge Base list

Running the website on a web farm causes reference Javascript files errors

Q:

I'm running my website on a web farm and I get reference Javascript files errors. Can these errors be fixed?

A:

The following is a solution given:
http://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=104482

Here are the steps you need to take to fix the issue:
1. Go here: http://www.developmentnow.com/articles/machinekey_generator.aspx and click on "Generate Random Keys!" button.  This will generate some code.  Copy the code from ASP.NET 2.0 textarea.

Here is what you need to do on *every* machine in your web farm:
2. Locate Machine.config file.
3. Locate the <system.web> section in this file.
4. Replace the <machineKey> section with the output generated in step 1.
5. Save the configuration file.
6. Restart IIS.

This will ensure that the same key is used to encrypt and decrypt some data in webresource.axd on all machines.



"First of all... loved the controls... its wonderful features and ease of use. Most of all, I would like to commend your support group. Even if we're still in evaluation mode, the support team has been great and very response. Keep up the great work!"

James Gagni Jr.
Aon Singapore

Random testimonial   All testimonials