Exception in PreRequest event: The hidden field group name is invalid
Repro:
1.) Record a web test
2.) Play it back
3.) [Do not generate code or implement anything in the PreRequestEvent]
Results
Exception on GET/POST requests (no pattern) even though HTTP response shows 200 (OK) or 302 (FOUND) on same URL requests as exception is thrown on. The HTTP response <body> for requests that raise the exception is always "Object Moved".
Strangely, most of my recorded tests play back flawlessly. I checked, and none of my requests are set to use a proxy server (testing on an internal NTFS domain web server running IIS 6 / ASP.NET 1.1).
Stack Trace Excerpt:
Microsoft.VisualStudio.QualityTools.WebStress.PreRequestException: Exception in PreRequest event: The hidden field group name is invalid. > System.ArgumentException: The hidden field group name is invalid.
at Microsoft.VisualStudio.QualityTools.WebTestFramework.BindHiddenFields.PreRequest
When generating code for the recorded test and monitoring [this.PreRequest.Target.HiddenFieldGroup (string)] in the debugger, I see it's set to "null" and BindToQueryString = "false".
TIA,
Terry

