提琴手不从我的C#应用​​程序在Windows 8中捕捉交通 [英] Fiddler Not Capturing Traffic from my C# Application in Windows 8

查看:162
本文介绍了提琴手不从我的C#应用​​程序在Windows 8中捕捉交通的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近升级到了Windows 8,我已经安装了小提琴手一台新电脑,但我有从我的C#应用​​程序收到发送捕捉交通问题。我从来没有这个问题在Windows 7上,所以我认为它是一个Windows 8的问题。

I have recently upgraded to a new computer with Windows 8. I have installed Fiddler, yet I am having problems capturing traffic sent and received from my C# application. I never had this issue on Windows 7, so I assume its a Windows 8 issue.

该应用程序是使用C#5.0和.NET 4.5一个普通的WinForms应用程序。我使用Visual Studio 2012中。

The application is an ordinary WinForms application using C# 5.0 and .NET 4.5. I am using Visual Studio 2012.

任何想法如何解决这个因为我有一个困难时期,没有它调试我的应用程序。

Any ideas how to get around this as I'm having a hard time debugging my application without it.

提琴手捕获流量Chrome和Firefox没有问题,只是没有我的申请。我也装,我开发了另一个应用程序,并能正常工作。

Fiddler captures traffic from Chrome and Firefox with no issues, just not my application. I have also loaded another application that I developed, and that works fine.

这可能是值得指出的是,这是我开发的第一个应用程序,使用HttpClient的制作HTTP请求。 ?莫非是造成任何问题。

It may be worth noting that this is the first application I've developed that uses HttpClient to make Http requests. Could that be causing any issues?

编辑:我使用的提琴手应用监控流量。我不是连接到本地主机。我连接到网络的API。

I am using the Fiddler Application to monitor traffic. I am not connecting to localhost. I am connect to web API's.

推荐答案

第1步是试图启动您的应用程序之前开始提琴手。这有助于默认配置,因此.NET应用程序拿起系统代理,当他们开始并没有注意到代理的变化,他们开始了。

Step #1 is to try starting Fiddler before starting your application. This helps the default configuration, whereby .NET applications pick up the system proxy when they start and are oblivious to proxy changes after they start.

步骤#2,如果第一个步不工作,是明确地配置你的过程通过编辑app.exe.config文件或machine.config文件,或通过设置代理使用代理属性的请求对象。

Step #2, if the first step doesn't work, is to explicitly configure your process to use the proxy by editing the app.exe.config file or the machine.config file, or by setting the Proxy property on the request object.

这篇关于提琴手不从我的C#应用​​程序在Windows 8中捕捉交通的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆