简体   繁体   中英

Can i invoke ASP.net page handler in console app?

I want to get 20000 HttpRequest or Page.Request instances from console app in less than 10 min. Anyone knows how to do it?

I am able to get 20000 instances in a very inefficient way: in the first asp.net page using HTTPWebRequest to call the second asp.net page. Then get the Page.Request of the second page stored in Application object and retrieve it from the first page in the same web application but it takes about 30 mins for 20000 Page.Request.

I added Thread.Sleep(80) in the first page otherwise it will give "Only one usage of each socket address (protocol/network address/port) is normally permitted ".

I think it's too long. just wondering if there is any better way to do it.

appreciate any help.

Microsoft Web Application Stress Tool

http://www.iis.net/downloads/default.aspx?tabid=34&g=6&i=1298

Been a long time since I've used it, but I'm fairly certain you can invoke it and start a test from the command line.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM