WCAT与使用 HttpHandlers 进行 TinyGet 测试

发布于 2024-09-26 02:56:36 字数 696 浏览 0 评论 0原文

我在谷歌上搜索了这个问题的答案,但似乎没有太多信息。有谁知道是否可以使用 WCAT 和/或 TinyGet 来测试使用 HttpHandlers 的 asp.net 应用程序?我已经尝试过这两个工具,但收到内部服务器错误 500。看起来像是 HttpContext 的问题?

[NullReferenceException: Object reference not set to an instance of an object.]
   BCT.BaseHttpHandler.Process(HttpContextBase context) +622
   BCT.UADTimeHttpHandler.Process(HttpContextBase context) +55
   BCT.BaseHttpHandler.ProcessRequest(HttpContext context) +75
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep
.Execute() +181
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& comp
letedSynchronously) +75

我也尝试过使用 WCAT Fiddler 插件,但有一个关于可能缺少注册表项的不同错误。

I've searched on Google for an answer to this but there doesn't seem to be much information out there. Does anyone know if you can use WCAT and or TinyGet to test an asp.net application that uses HttpHandlers? I've tried both of these tools and I'm getting an Internal Server Error 500. Looks like a problem with the HttpContext?

[NullReferenceException: Object reference not set to an instance of an object.]
   BCT.BaseHttpHandler.Process(HttpContextBase context) +622
   BCT.UADTimeHttpHandler.Process(HttpContextBase context) +55
   BCT.BaseHttpHandler.ProcessRequest(HttpContext context) +75
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep
.Execute() +181
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& comp
letedSynchronously) +75

I've also tried using the WCAT Fiddler plugin but that has a different error about a possible missing reg key.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

垂暮老矣 2024-10-03 02:56:36

绝对可以。 WCAT 只是发出 HTTP 请求,就像任何浏览器一样。你的处理程序中有一个错误,仅此而已。堆栈跟踪指向的代码在这里表示什么:

BCT.BaseHttpHandler.Process(HttpContextBase context) +622 

Definitely you can. WCAT just makes HTTP requests, exactly like any browser. You've got a bug in your handler, is all. What does the code that the stack trace points to say, here:

BCT.BaseHttpHandler.Process(HttpContextBase context) +622 

?

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文