Share via


Running Web Tests Originally Recorded on ASP.NET 2.0 Website Against ASP.NET 1.1 Website

After migrating an ASP.NET 1.1 website to 2.0, I wanted to find out how much faster the new website runs. So I used VSTS (Test Edition) to record a few web tests with the intention of running those tests against the new and old websites to measure whether there were any performance gains. The web tests were recorded against the new website (ASP.NET 2.0). When I replay the tests against the old site, I got the following error:

 Request failed: Context parameter '$HIDDEN1.__EVENTVALIDATION' not found in test context

After an hour of digging around, I found that you have to make the following modifications to the web tests in order to replay it against an ASP.NET 1.1 website:

- Make a copy of the web test

- Open the web test in notepad (web test is an XML file)

- Remove all FormPostParameter elements with the name “__EVENTVALIDATION”

- Replace all instances of “ctlXX$” with “_ctlX:”, i.e., replace ctl00$ with _ctl0:

Comments