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.



"My Feedback for Product: The obout GRID control is the best and easiest grid control I have ever used till date. It has all the features that needs to be, within a GRID and it’s so user friendly that even a layman can use it just by drag and drop and few lines of code. My Feedback for Support: Honestly speaking, I had not expected the first response from obout that quickly. I mean, I got the response to my query in less than 20 minutes (which is really amazing) and I was really shock to see that. And also, good to see the way Obout team works to fix the issue so quickly. Please continue do design and develop the best tools that are really helpful for the developers in the IT market."

Rohan Lopes

Random testimonial   All testimonials