在本地主机上监控卡西尼号的流量
在本地主机上的 Cassini 上运行 ASP.NET 2.0 项目时,我遇到了一些非常奇怪的超时问题,并且我没有足够的数据来了解发生了什么情况。
有没有一种方法可以使用某些特定的开发工具或通用监控应用程序(例如 fiddler)来监控到 Cassini 的本地主机流量?
只是为了抢先一些我已经知道的答案:
通常我可以使用众所周知的dot-hack 用于使用 fiddler 监视本地主机流量,但使用 Cassini 我在浏览器中收到以下错误消息:< /p> <块引用>
[Fiddler] 连接到本地主机。失败的。异常文本:无法建立连接,因为目标计算机主动拒绝它 ::1:3213
Fiddler 还侦听 http://ipv4.fiddler:port,我可以拦截流量。但是当我这样做时,超时问题不会发生!
欢迎任何其他工具或提琴手解决方法!谢谢!
编辑:哎呀。这个问题有已经被问过...两次。。没有出现搜索或建议。在第二个线程中找到的解决方案是使用 ip-address 的 dot-hack (http://127.0.0.1 .:port/ 而不是“localhost”。这个问题可能会被关闭。
I'm experiencing some really odd timeout issues when running a ASP.NET 2.0 project on Cassini on localhost, and I don't have enough data to get a clue of what's going on.
Is there a way to monitor localhost traffic to Cassini, either using some specific development tool or a general-purpose monitoring app such as fiddler?
Just to pre-empt some answers I'm already aware of:
Normally I can use the well-known dot-hack for using fiddler to monitor localhost traffic, but with Cassini I get the following error message in the browser:
[Fiddler] Connection to localhost. failed. Exception Text: No connection could be made because the target machine actively refused it ::1:3213
Fiddler also listens to localhost on http://ipv4.fiddler:port, and I can intercept the traffic. But when I do this the timeout issues don't occur!
Any other tools or fiddler workarounds welcome! Thanks!
Edit: Oops. This question had already been asked... Twice.. Didn't come up on search or suggestions. The solution found in the second thread is to use the dot-hack with ip-address (http://127.0.0.1.:port/ instead of "localhost". This question may be closed.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
虽然 fiddler 忽略对 localhost 的请求,但它监听 127.0.0.1. (注意尾随点):
所以这不起作用:
但这会:
While fiddler ignores requests to localhost, it listens to 127.0.0.1. (note the trailing dot):
So this won't work:
But this will:
您通常最好使用 http://ipv4.fiddler 因为它使您想要的内容更加明确做。
You're generally better off using http://ipv4.fiddler as it makes it more explicit what you're trying to do.
CassiniDev 是一个开源项目,旨在填补所有空白由 WebDev.WebServer/Cassini 提供。
您会发现这个问题以及许多其他问题都得到了解决。
它可以作为独立服务器、适合测试和嵌入的进程内服务器运行良好,最值得注意的是,可以直接替代 Visual Studio 2008/2010 开发服务器。
替代文本 http://i3.codeplex.com/项目/Download/FileDownload.aspx?ProjectName=cassinidev&DownloadId=123367
替代文本 http://i3.codeplex.com/Project/Download/FileDownload.aspx?ProjectName=cassinidev&DownloadId=123366
CassiniDev is an open source project that was developed to fill in all the blanks left by WebDev.WebServer/Cassini.
You will find this issue handled as well as many others.
It works well as a stand-alone server, as an in-process server suitable for testing and embedding and, most notably, as a direct replacement for the Visual Studio 2008/2010 dev servers.
alt text http://i3.codeplex.com/Project/Download/FileDownload.aspx?ProjectName=cassinidev&DownloadId=123367
alt text http://i3.codeplex.com/Project/Download/FileDownload.aspx?ProjectName=cassinidev&DownloadId=123366