devfendar
February 9th, 2006, 02:10 AM
RE: Microsoft Application Test Center - ASP.NET stress test
I am running Microsoft Application Test Center against our in-house ASP.NET applications. I have enabled custom page hit auditing on each page but found that auditing records nothing on log when requests are coming from Application Test Center (Page audit works perfectly when I point my browser at it manually however.) Anyway, page audit writes to event log and event log should resemble:
[Diagram 1]: see attachment
Here’s the error:
[Diagram 2]: see attachment
Source: WinSock Proxy Client
Application [ACTBroker.exe]. Authentication was rejected by WinSock Proxy Server. Check the credentials for the account that is used for the process.
First I suspected it has to do with:
1. Proxy setting on browser (because of the above error in log) - I set IE>Tools>Internet Options>Connection>LAN Settings>Proxy Server>uncheck "use Proxy Server" --- the problem didn't go away.
2. iframe, that Application Center Test can’t record what’s done inside subpage contained by iframe.
[Diagram 3]: see attachment
Then I decided iframe probably wasn't the issue here because I later pointed my browser directly to pages contained inside the iframe (instead of just pointing to the containing page) -- still nothing gets logged by my page audit. [Diagram 4 - no iframe]
Anyway, I checked the report after test run, only three requests (no error however) was dispatched by Microsoft Application Test Center??? What's really suspicious is:
Response Code: 302 - The requested resource resides temporarily under a different URI (Uniform Resource Identifier).
Count: 3
Percent (%): 100.00
I checked response code 302: http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html
It says:
The requested resource resides temporarily under a different URI. Since the redirection might be altered on occasion, the client SHOULD continue to use the Request-URI for future requests. This response is only cacheable if indicated by a Cache-Control or Expires header field.
The temporary URI SHOULD be given by the Location field in the response. Unless the request method was HEAD, the entity of the response SHOULD contain a short hypertext note with a hyperlink to the new URI(s).
If the 302 status code is received in response to a request other than GET or HEAD, the user agent MUST NOT automatically redirect the request unless it can be confirmed by the user, since this might change the conditions under which the request was issued.
After seeing this this is what I've tried:
C:\\telnet localhost 80
GET http://localhost/.../.../.../SomePage.aspx HTTP/1.0
And here's the output:
HTTP/1.1 302 Found
Server: Microsoft-IIS/5.1
Date: Thu, 09 Feb 2006 08:32:54 GMT
X-Powered-By: ASP.NET
X-AspNet-Version: 1.1.4322
Location: /SomeWeb/.../SomePage/Login.aspx?ReturnUrl=%2fSomeWeb%2fSomeFolder%2fSomeFolder%2SomePage.aspx
Cache-Control: private
Content-Type: text/html; charset=utf-8
Content-Length: 226
<html><head><title>Object moved</title></head><body>
<h2>Object moved to <a href='/.../Login.aspx?ReturnUrl=%2fSomeWeb%2fSomeFolder%2fSomeFolder%2fSomePage.aspx'>here</a>.</h2>
</body></html>
Connection to host lost.
C:\>
This has anything to do with ASP.NET FormsAuthentication redirection?? I have no idea what to do next. (But I think I got it working once on my home machine... no idea...) Anyone who has encountered similar experience before.
HTTP Status Codes:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/act/htm/actml_ref_hsco.asp
I am running Microsoft Application Test Center against our in-house ASP.NET applications. I have enabled custom page hit auditing on each page but found that auditing records nothing on log when requests are coming from Application Test Center (Page audit works perfectly when I point my browser at it manually however.) Anyway, page audit writes to event log and event log should resemble:
[Diagram 1]: see attachment
Here’s the error:
[Diagram 2]: see attachment
Source: WinSock Proxy Client
Application [ACTBroker.exe]. Authentication was rejected by WinSock Proxy Server. Check the credentials for the account that is used for the process.
First I suspected it has to do with:
1. Proxy setting on browser (because of the above error in log) - I set IE>Tools>Internet Options>Connection>LAN Settings>Proxy Server>uncheck "use Proxy Server" --- the problem didn't go away.
2. iframe, that Application Center Test can’t record what’s done inside subpage contained by iframe.
[Diagram 3]: see attachment
Then I decided iframe probably wasn't the issue here because I later pointed my browser directly to pages contained inside the iframe (instead of just pointing to the containing page) -- still nothing gets logged by my page audit. [Diagram 4 - no iframe]
Anyway, I checked the report after test run, only three requests (no error however) was dispatched by Microsoft Application Test Center??? What's really suspicious is:
Response Code: 302 - The requested resource resides temporarily under a different URI (Uniform Resource Identifier).
Count: 3
Percent (%): 100.00
I checked response code 302: http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html
It says:
The requested resource resides temporarily under a different URI. Since the redirection might be altered on occasion, the client SHOULD continue to use the Request-URI for future requests. This response is only cacheable if indicated by a Cache-Control or Expires header field.
The temporary URI SHOULD be given by the Location field in the response. Unless the request method was HEAD, the entity of the response SHOULD contain a short hypertext note with a hyperlink to the new URI(s).
If the 302 status code is received in response to a request other than GET or HEAD, the user agent MUST NOT automatically redirect the request unless it can be confirmed by the user, since this might change the conditions under which the request was issued.
After seeing this this is what I've tried:
C:\\telnet localhost 80
GET http://localhost/.../.../.../SomePage.aspx HTTP/1.0
And here's the output:
HTTP/1.1 302 Found
Server: Microsoft-IIS/5.1
Date: Thu, 09 Feb 2006 08:32:54 GMT
X-Powered-By: ASP.NET
X-AspNet-Version: 1.1.4322
Location: /SomeWeb/.../SomePage/Login.aspx?ReturnUrl=%2fSomeWeb%2fSomeFolder%2fSomeFolder%2SomePage.aspx
Cache-Control: private
Content-Type: text/html; charset=utf-8
Content-Length: 226
<html><head><title>Object moved</title></head><body>
<h2>Object moved to <a href='/.../Login.aspx?ReturnUrl=%2fSomeWeb%2fSomeFolder%2fSomeFolder%2fSomePage.aspx'>here</a>.</h2>
</body></html>
Connection to host lost.
C:\>
This has anything to do with ASP.NET FormsAuthentication redirection?? I have no idea what to do next. (But I think I got it working once on my home machine... no idea...) Anyone who has encountered similar experience before.
HTTP Status Codes:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/act/htm/actml_ref_hsco.asp