سؤال

I know that this question has been asked several times here.

I have a simple asp.net web service hosted on the IIS Express (I don't have IIS) I have a console app with a web service proxy in it that calls some method of the service. It works fine, but the problem is that it can't be detected by Fiddler. I tried the following:

setting web.config file and app.config file of both the asp.net and console app using DefalutProxy.

I even added a line of code to the console app:

GlobalProxySelection.Select = new WebProxy("127.0.0.1", 8888); 

but none of these works and I still can't see the request on Fiddler.

Any help would be highly appreciated :)

هل كانت مفيدة؟

المحلول

What does the code of the application in question look like? What URL is it using?

The .NET Framework is hardcoded to bypass the proxy server for requests to Localhost or 127.0.0.1. As explained in the answers of the questions "asked several times here", the workaround is to use either localhost. (note the trailing dot) or use localhost.fiddler as the machine name. The former works even without Fiddler running (but may be rejected by IISExpress) while the latter requires Fiddler to be running but should work fine with IIS Express.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top