Incorrect page load in MVC

We currently host the asp.net mvc 2 site in IIS 6. In this application, we override the Create Controler method and configure a custom view engine. This engine determines the layout of views based on the URL format. eg; if the user lands on www.asite.com/test/1.0/index.aspx, the viewer tells mvc to look for index.aspx in the directory 'sitedirectory / test / 1.0 / views / pages /';

string versionDirectory = String.Format("~/{0}/{1}", offerCode, version.ToString("#0.0000")); 
        ViewLocationFormats = new[]
                                  {
                                      versionDirectory + "/Views/Pages/{0}.aspx",
                                      versionDirectory + "/Views/Pages/{0}.ascx",
                                      "~/Views/Pages/{0}.aspx",
                                      "~/Views/Pages/{0}.ascx",
                                      "~/Shared/Views/{0}.aspx",
                                      "~/Shared/Views/{0}.ascx"
                                  };

        MasterLocationFormats = new[]
                                    {
                                        versionDirectory + "/Views/Layouts/{0}.master",
                                        "~/Views/Layouts/{0}.master"
                                    };

        PartialViewLocationFormats = ViewLocationFormats;

The problem we are facing is that when two or more users land on the site at about the same time, the views that are loading can switch. However, the data displayed for these views is correct.

Does anyone have any idea why this is happening?

+1

All Articles