I am trying to use Fogbugz BugzScout to automatically send excluded exceptions from an application to my Fogbugz on demand account. I wrote a wrapper class for it, and everything seems to be just groovy - on my box. Testing the same code in a production environment, behind a proxy server that requires authentication, I had nothing but problems.
I went to work modifying the BugzScout code to force it to authenticate using a proxy server, and after you tried many different methods suggested by Google search, I found one that works! But now I get the “Connection actively refused” error from Fogbugz itself, and I don’t know what to do.
Here is the code that BugzScout connects via .net WebClient to send a new case, with my changes regarding our proxy. What am I doing that will make Fogbug refuse my request? I removed all non-web client code from the procedure for readability.
public string Submit(){ WebClient client = new WebClient(); WebProxy proxy = new WebProxy(); proxy.UseDefaultCredentials = true; client.Proxy = proxy; Byte[] response = client.DownloadData(fogBugzUrl); string responseText = System.Text.Encoding.UTF8.GetString(response); return (responseText == "") ? this.defaultMsg : responseText; }
The correct URL and the register is filled in correctly - this is confirmed.
EDIT: More info.
- Using Fogbugz on request.
- Using the full FogBugz.net code, only with these add-ons
WebProxy proxy = new WebProxy ();
proxy.UseDefaultCredentials = true;
client.Proxy = proxy;
source share