Web Load Testing Tool Causing Exceptions

Posted on 2006-03-30
Medium Priority
Last Modified: 2011-10-03

I'm trying to load test my asp.net application.  I've tried using MS ACT and Red Gate's Ants Load tools, but using either one causes my app to generate alot of exceptions. I'm recording a script and running it with 5 simultaneous connections.  The exceptions only seem to be occuring in a couple of pages and I'm not sure why since this does not happen in normal operation(I know - stress testing isn't 'normal operation'). This may seem silly, but is it simply because my app uses forms authentication and I really need separate scripts for each virtual user?  If this is the case, why isn't it effecting all pages?

I'm trying to figure out if the load tools have exposed a serious issue in the application or if some scenerios just can't be included in the testing.  I know I'm not giving much detailed info here, but I just want to get some direction from anyone with experience using stress testing tools.
Question by:LloydMc
  • 2
LVL 21

Expert Comment

ID: 16340262
what kind of exceptions are you getting? can you give me more information on it.


Author Comment

ID: 16341635

Some of the exceptions are invalid object references which point to session vars, but many errors related to the LosFormatter class occur as well.  The LosFormatter exceptions would seem to point to some issue with viewstate.  The page which throws the LosFormatter exceptions contains user controls which render hyper links with encrypted query strings.  The encrypted query strings are generated by server side script blocks within the html.
LVL 12

Accepted Solution

AGBrown earned 1500 total points
ID: 16342427
Are you making sure that your encrypted strings are html safe? You can use Server.HtmlEncode on strings to make them into true HTML. To track exactly what is causing your errors, you could put a trace on the pages using the trace section of your web.config, and maybe a generic exception logging section in your global.asax using the protected void Application_Error(Object sender, EventArgs e) auto-event handler method. This could save exception details with the current state of your sessionstate etc off to a database.

If you are using the same session for each simultaneous connection, you are modelling a potential user scenario. It's possible to recreate it by logging in to your application, and once you are in, creating a new window from that internet explorer window. Then you have one user following two or more distinct navigation paths through your application in the same session. Whether or not they would ever have problems from posting back two pages at the same time is questionable.


Author Comment

ID: 16373092

I was previously using HttpUtility.UrlEncode on the encrypted query strings and replacing it with Server.HtmlEncode seemed to stop the runtime exceptions when running the app within the load testing script, however, the load testing tool seems to be capturing those same exceptions as http request errors. When I expand the descriptions for these errors, they reference server side objects, strange. As before, I do not get these exceptions when running the application normally.  It's as if the Server.HtmlEncode encoding method causes the load testing script to swallow these errors so they don't bubble up to my central error handler in my global asax file.

Featured Post

Upgrade your Question Security!

Add Premium security features to your question to ensure its privacy or anonymity. Learn more about your ability to control Question Security today.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Today is the age of broadband.  More and more people are going this route determined to experience the web and it’s multitude of services as quickly and painlessly as possible. Coupled with the move to broadband, people are experiencing the web via …
ASP.Net to Oracle Connectivity Recently I had to develop an ASP.NET application connecting to an Oracle database.As I am doing it first time ,I had to solve several problems. This article will help to such developers  to develop an ASP.NET client…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an anti-spam), the admin…
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…
Suggested Courses
Course of the Month16 days, 23 hours left to enroll

862 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question