script halted error
We are running a recorded script on an ASP.NET site. THe script failed with error: script halted error and following error stack
at q.a(p )
at RedGate.Ants.Engine.Web.WebClient.a(String , String )
at RedGate.Ants.Engine.Web.WebClient.Get(String url)
at RedGate.Ants.NewProject.BrowserClient1.Run()
This error occurs in the different GET when we rerun the test.
at q.a(p )
at RedGate.Ants.Engine.Web.WebClient.a(String , String )
at RedGate.Ants.Engine.Web.WebClient.Get(String url)
at RedGate.Ants.NewProject.BrowserClient1.Run()
This error occurs in the different GET when we rerun the test.
This discussion has been closed.
Comments
I don't know why you would get this error. Can you get to the end of the test, look at the summary information by metric->script errors and look for more information?
Or does the script cause an error dialog to be shown in the UI that halts the test? Can you post the test script?
Thanks.
1) Test Error - Failed To Process Request 3
Unhandled exception Name value pair HttpOnly is invalid 3
2) Http error - InternalServerError
1
Item http://198.87.235.222/MyNetwork/TEMS.My ... rPlus.aspx ASP.NET HTML content <html> <head> <title>Object reference not set to an instance of an object.</title> <style> body {font-family:"Verdana";font-weight:normal;font-size: .7em;color:black;} p {font-family:"Verdana";font-weight:normal;color:black;margin-top: -5px} b {font-family:"Verdana";font-weight:bold;color:black;margin-top: -5px} H1 { font-family:"Verdana";font-weight:normal;font-size:18pt;color:red } H2 { font-family:"Verdana";font-weight:normal;font-size:14pt;color:maroon } pre {font-family:"Lucida Console";font-size: .9em} .marker {font-weight: bold; color: black;text-decoration: none;} .version {color: gray;} .error {margin-bottom: 10px;} .expandable { text-decoration:underline; font-weight:bold; color:navy; cursor:hand; } </style> </head> <body bgcolor="white"> <span><H1>Server Error in '/MyNetwork/TEMS.MyNetwork.UIC.Portal' Application.<hr width=100% size=1 color=silver></H1> <h2> <i>Object reference not set to an instance of an object.</i> </h2></span> <font face="Arial, Helvetica, Geneva, SunSans-Regular, sans-serif "> <b> Description: </b>An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. <br><br> <b> Exception Details: </b>System.NullReferenceException: Object reference not set to an instance of an object.<br><br> <b>Source Error:</b> <br><br> <table width=100% bgcolor="#ffffcc"> <tr> <td> <code> An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.</code> </td> </tr> </table> <br> <b>Stack Trace:</b> <br><br> <table width=100% bgcolor="#ffffcc"> <tr> <td> <code><pre> [NullReferenceException: Object reference not set to an instance of an object.] WebDesktop.New.headerPlus.Page_Load(Object sender, EventArgs e) +484 System.Web.UI.Control.OnLoad(EventArgs e) +67 System.Web.UI.Control.LoadRecursive() +35 System.Web.UI.Page.ProcessRequestMain() +750 </pre></code> </td> </tr> </table> <br> 502 <hr width=100% size=1 color=silver> <b>Version Information:</b> Microsoft .NET Framework Version:1.1.4322.2032; ASP.NET Version:1.1.4322.2032 </font> </body> </html> <!-- [NullReferenceException]: Object reference not set to an instance of an object. at WebDesktop.New.headerPlus.Page_Load(Object sender, EventArgs e) at System.Web.UI.Control.OnLoad(EventArgs e) at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Page.ProcessRequestMain() [HttpUnhandledException]: Exception of type System.Web.HttpUnhandledException was thrown. at System.Web.UI.Page.HandleError(Exception e) at System.Web.UI.Page.ProcessRequestMain() at System.Web.UI.Page.ProcessRequest() at System.Web.UI.Page.ProcessRequest(HttpContext context) at System.Web.CallHandlerExecutionStep.System.Web.HttpApplication+IExecutionStep.Execute() at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) --><!-- This error page might contain sensitive information because ASP.NET is configured to show verbose error messages using <customErrors mode="Off"/>. Consider using <customErrors mode="On"/> or <customErrors mode="RemoteOnly"/> in production environments.--> 0 1
And here is the script
RandomSleep(1000, 2000)
WebClient.HttpRequest.ProtocolVersion = "HTTP/1.1"
BeginPage("http://198.87.235.222/mynetwork/portal.aspx")
WebClient.HttpRequest.UserAgent = "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727)"
WebClient.GET("http://198.87.235.222/mynetwork/portal.aspx")
WebClient.GET("http://198.87.235.222/MyNetwork/TEMS.MyNetwork.UIC.Portal/logon.aspx")
WebClient.GET("http://198.87.235.222/MyNetwork/TEMS.MyNetwork.UIC.Portal/default.css")
WebClient.GET("http://198.87.235.222/MyNetwork/TEMS.MyNetwork.UIC.Portal/login.css")
WebClient.GET("http://198.87.235.222/MyNetwork/TEMS.MyNetwork.UIC.Portal/images/pageBG2.gif")
WebClient.GET("http://198.87.235.222/MyNetwork/TEMS.MyNetwork.UIC.Portal/images/login_fill.gif")
WebClient.GET("http://198.87.235.222/MyNetwork/TEMS.MyNetwork.UIC.Portal/images/login_button.gif")
WebClient.GET("http://198.87.235.222/MyNetwork/TEMS.MyNetwork.UIC.Portal/images/logo.gif")
WebClient.GET("http://198.87.235.222/MyNetwork/TEMS.MyNetwork.UIC.Portal/images/tems_login.png")
WebClient.GET("http://198.87.235.222/MyNetwork/TEMS.MyNetwork.UIC.Portal/images/login_top.gif")
WebClient.GET("http://198.87.235.222/MyNetwork/TEMS.MyNetwork.UIC.Portal/images/login_btm.gif")
EndPage("http://198.87.235.222/mynetwork/portal.aspx")
' End of page 1 contains 11 request(s).
Me.Sleep(2000)
WebClient.HttpRequest.UserAgent = Nothing
WebClient.GET("http://198.87.235.222/favicon.ico")
WebClient.HttpRequest.Pragma = "no-cache"
WebClient.HttpRequest.UserAgent = "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727)"
WebClient.HttpRequest.ContentType = "application/x-www-form-urlencoded"
WebClient.HttpRequest.AddPostData("__EVENTTARGET", "", False)
WebClient.HttpRequest.AddPostData("__EVENTARGUMENT", "", False)
WebClient.HttpRequest.AddPostData("__VIEWSTATE", WebClient.ViewState, False)
WebClient.HttpRequest.AddPostData("txtUserName", "test", False)
WebClient.HttpRequest.AddPostData("txtPassword", "test", False)
WebClient.HttpRequest.AddPostData("imgLogon.x", "65", False)
WebClient.HttpRequest.AddPostData("imgLogon.y", "15", False)
WebClient.Post("http://198.87.235.222/MyNetwork/TEMS.MyNetwork.UIC.Portal/logon.aspx")
Me.Sleep(10000)
Me.LogToFile(WebClient.HttpResponse.Content & ": " & WebClient.HttpResponse.StatusDescription)
WebClient.HttpRequest.ContentType = Nothing
WebClient.GET("http://198.87.235.222/MyNetwork/TEMS.MyNetwork.UIC.Portal/main.aspx")
WebClient.HttpRequest.Pragma = Nothing
WebClient.Get("http://198.87.235.222/MyNetwork/TEMS.MyNetwork.UIC.Portal/Utils/utils.js")
Me.Sleep(10000)
WebClient.Get("http://198.87.235.222/MyNetwork/TEMS.MyNetwork.UIC.Portal/headerPlus.aspx")
Me.Sleep(10000)
WebClient.GET("http://198.87.235.222/MyNetwork/TEMS.MyNetwork.UIC.Portal/iframe.css")
WebClient.GET("http://198.87.235.222/MyNetwork/TEMS.MyNetwork.UIC.Portal/dhtmllib/dom.js")
WebClient.GET("http://198.87.235.222/MyNetwork/TEMS.MyNetwork.UIC.Portal/dhtmllib/palette.js")
WebClient.GET("http://198.87.235.222/MyNetwork/TEMS.MyNetwork.UIC.Portal/dhtmllib/menu.js")
WebClient.GET("http://198.87.235.222/MyNetwork/TEMS.MyNetwork.UIC.Portal/Utils/help.js")
WebClient.GET("http://198.87.235.222/MyNetwork/TEMS.MyNetwork.UIC.Portal/UserLog.js")
WebClient.GET("http://198.87.235.222/MyNetwork/TEMS.MyNetwork.UIC.Portal/dhtmllib/language/en/labels.js")
WebClient.GET("http://198.87.235.222/MyNetwork/TEMS.MyNetwork.UIC.Portal/ajax/common.ashx")
WebClient.GET("http://198.87.235.222/MyNetwork/TEMS.MyNetwork.UIC.Portal/ajax/TEMS.MyNetwork.UIC.Portal.UserLog,TEMS.MyNetwork.UIC.Portal.ashx")
WebClient.GET("http://198.87.235.222/MyNetwork/TEMS.MyNetwork.UIC.Portal/images/banner_logo.gif")
WebClient.GET("http://198.87.235.222/MyNetwork/TEMS.MyNetwork.UIC.Portal/images/dashboard.gif")
WebClient.GET("http://198.87.235.222/MyNetwork/TEMS.MyNetwork.UIC.Portal/dataWrapper.aspx")
WebClient.GET("http://198.87.235.222/MyNetwork/TEMS.MyNetwork.UIC.Portal/images/nselect.gif")
WebClient.GET("http://198.87.235.222/MyNetwork/TEMS.MyNetwork.UIC.Portal/data.aspx")
WebClient.GET("http://198.87.235.222/MyNetwork/TEMS.MyNetwork.UIC.Portal/images/rftools.gif")
WebClient.GET("http://198.87.235.222/MyNetwork/TEMS.MyNetwork.UIC.Portal/images/logout.gif")
WebClient.GET("http://198.87.235.222/MyNetwork/TEMS.MyNetwork.UIC.Portal/utils/utils.js")
WebClient.GET("http://198.87.235.222/MyNetwork/TEMS.MyNetwork.UIC.Portal/navWork.aspx")
WebClient.GET("http://198.87.235.222/MyNetwork/TEMS.MyNetwork.UIC.Portal/navigation.aspx")
WebClient.GET("http://198.87.235.222/MyNetwork/TEMS.MyNetwork.UIC.Portal/workspaceenvelope.aspx")
WebClient.GET("http://198.87.235.222/MyNetwork/TEMS.MyNetwork.UIC.Portal/navigationHeaderTabs.aspx")
WebClient.GET("http://198.87.235.222/MyNetwork/TEMS.MyNetwork.UIC.Portal/navigationHeader.aspx")
WebClient.GET("http://198.87.235.222/MyNetwork/TEMS.MyNetwork.UIC.Portal/navigationBody.aspx?id=397")
WebClient.GET("http://198.87.235.222/MyNetwork/TEMS.MyNetwork.UIC.Portal/Nothing.htm")
WebClient.GET("http://198.87.235.222/MyNetwork/TEMS.MyNetwork.UIC.Portal/Nothing.htm")
WebClient.GET("http://198.87.235.222/MyNetwork/TEMS.MyNetwork.UIC.Portal/workspaceHeader.aspx")
WebClient.GET("http://198.87.235.222/MyNetwork/TEMS.MyNetwork.UIC.Portal/listingenvelope.aspx")
WebClient.GET("http://198.87.235.222/MyNetwork/TEMS.MyNetwork.UIC.Portal/dhtmllib/psheet.js")
WebClient.GET("http://198.87.235.222/MyNetwork/TEMS.MyNetwork.UIC.Portal/LineImages/rminus.gif")
WebClient.GET("http://198.87.235.222/MyNetwork/TEMS.MyNetwork.UIC.Portal/listingframes.aspx")
WebClient.GET("http://198.87.235.222/MyNetwork/TEMS.MyNetwork.UIC.Portal/CeImages/folder.gif")
WebClient.GET("http://198.87.235.222/MyNetwork/TEMS.MyNetwork.UIC.Portal/LineImages/i.gif")
WebClient.GET("http://198.87.235.222/MyNetwork/TEMS.MyNetwork.UIC.Portal/LineImages/tplus.gif")
WebClient.GET("http://198.87.235.222/MyNetwork/TEMS.MyNetwork.UIC.Portal/CeImages/favfolder.gif")
WebClient.GET("http://198.87.235.222/MyNetwork/TEMS.MyNetwork.UIC.Portal/LineImages/lplus.gif")
WebClient.GET("http://198.87.235.222/MyNetwork/TEMS.MyNetwork.UIC.Portal/CeImages/inbox.gif")
WebClient.GET("http://198.87.235.222/MyNetwork/TEMS.MyNetwork.UIC.Portal/dhtmllib/images/skin_standard/style.css")
WebClient.GET("http://198.87.235.222/MyNetwork/TEMS.MyNetwork.UIC.Portal/images/panel_title_bar_fill.gif")
WebClient.GET("http://198.87.235.222/MyNetwork/TEMS.MyNetwork.UIC.Portal/images/panel/maximize.gif")
WebClient.GET("http://198.87.235.222/MyNetwork/TEMS.MyNetwork.UIC.Portal/images/panel/maximize_hover.gif")
WebClient.GET("http://198.87.235.222/MyNetwork/TEMS.MyNetwork.UIC.Portal/images/panel/restore_down.gif")
WebClient.GET("http://198.87.235.222/MyNetwork/TEMS.MyNetwork.UIC.Portal/images/panel/restore_down_hover.gif")
WebClient.GET("http://198.87.235.222/MyNetwork/TEMS.MyNetwork.UIC.Portal/images/panel/close_panel.gif")
WebClient.GET("http://198.87.235.222/MyNetwork/TEMS.MyNetwork.UIC.Portal/listingredirect.aspx")
WebClient.GET("http://198.87.235.222/MyNetwork/TEMS.MyNetwork.UIC.Portal/images/panel/close_panel_hover.gif")
WebClient.GET("http://198.87.235.222/MyNetwork/TEMS.MyNetwork.UIC.Portal/images/panel/arrow_left.gif")
WebClient.Get("http://198.87.235.222/MyNetwork/TEMS.MyNetwork.UIC.Portal/images/panel/arrow_left_hover.gif")
Me.LogToFile(DateTime.Now.ToShortTimeString & ": Finished login")
The script halts in different Get message when we repeat the test.
TQ/Kean
I am going to try to email you a fix for this. The issue is that ASP .NET 2.0 introduces this new HttpOnly cookie with Web Forms Authentication and it is not supported by the current release of ANTS Load.
We do have some updated files available that will support this new feature. That is what I will send you.
I have added a catch in the script as following
Catch ex As Exception
Me.LogToFile(WebClient.HttpRequest.ToString())
Me.LogToFile(ex.Message)
Me.LogToFile(ex.StackTrace)
Me.LogToFile(ex.Source)
Me.LogToFile(Err.Description)
End Try
ANd here is the trace log
VirtualClient 0 12/1/2005 11:10:42 AM
GET /MyNetwork/TEMS.MyNetwork.UIC.Portal/images/dashboard.gif HTTP/1.1
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727)
Host: 198.87.235.222
Cookie: httponly=
VirtualClient 0 12/1/2005 11:10:42 AM
script halted
VirtualClient 0 12/1/2005 11:10:42 AM
at RedGate.Ants.Engine.Web.RequestManager.ProcessRequest(RequestType requestType)
at RedGate.Ants.Engine.Web.WebClient.ProcessRequest(String url, String requestMethod)
at RedGate.Ants.Engine.Web.WebClient.Get(String url)
at RedGate.Ants.NewProject.BrowserClient1.Run()
VirtualClient 0 12/1/2005 11:10:42 AM
RedGate.Ants.Engine
VirtualClient 0 12/1/2005 11:10:42 AM
script halted
Is this a licensed version of ANTS Load? And are you attempting to run the test on an XP machine using more than 10 virtual clients?
Okay, I'm having a look because I've noticed that your website is open to the public.
I consistently get a null reference error on this one request. If I comment it out, then the script will run successfully (although it cannot find favicon.ico):
WebClient.Get("http://198.87.235.222/MyNetwork/TEMS.MyNetwork.UIC.Portal/headerPlus.aspx")
Maybe you can check your application event logs to see why this request fails or possibly turn off customErrors in the web app's web.config file. This may give you more information about the error.