1

Closed

Unable to connect through a proxy

description

Trying to get the automatic translation from the web, I got a System.ServiceModel.ProtocolException : Proxy Authentication Required (see attached file, and exception details).
 
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.
 
************** Exception Text **************
System.ServiceModel.ProtocolException: The remote server returned an unexpected response: (407) Proxy Authentication Required. ---> System.Net.WebException: The remote server returned an error: (407) Proxy Authentication Required.
at System.Net.HttpWebRequest.GetResponse()
at System.ServiceModel.Channels.HttpChannelFactory.HttpRequestChannel.HttpChannelRequest.WaitForReply(TimeSpan timeout)
--- End of inner exception stack trace ---
 
Server stack trace:
at System.ServiceModel.Channels.HttpChannelUtilities.ValidateRequestReplyResponse(HttpWebRequest request, HttpWebResponse response, HttpChannelFactory factory, WebException responseException)
at System.ServiceModel.Channels.HttpChannelFactory.HttpRequestChannel.HttpChannelRequest.WaitForReply(TimeSpan timeout)
at System.ServiceModel.Channels.RequestChannel.Request(Message message, TimeSpan timeout)
at System.ServiceModel.Dispatcher.RequestChannelBinder.Request(Message message, TimeSpan timeout)
at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)
at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs)
at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)
at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)
 
Exception rethrown at [0]:
at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
at ResEx.TranslationPlugin.MicrosoftTranslator.LanguageService.GetLanguagesForTranslate(String appId)
at ResEx.TranslationPlugin.Engine.MicrosoftTranslatorEngine.GetLanguages()
at ResEx.TranslationPlugin.TranslationForm.TranslationForm_Load(Object sender, EventArgs e)
at System.Windows.Forms.Form.OnLoad(EventArgs e)
at System.Windows.Forms.Form.OnCreateControl()
at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
at System.Windows.Forms.Control.CreateControl()
at System.Windows.Forms.Control.WmShowWindow(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.ContainerControl.WndProc(Message& m)
at System.Windows.Forms.Form.WmShowWindow(Message& m)
at System.Windows.Forms.Form.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
 
 
************** Loaded Assemblies **************
mscorlib
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3603 (GDR.050727-3600)

CodeBase: file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll

ResEx
Assembly Version: 1.5.0.0
Win32 Version: 1.5.0.0

CodeBase: file:///C:/Program%20Files/ResEx/ResEx.exe

System.Windows.Forms
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)

CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll

System
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)

CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll

System.Drawing
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)

CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll

ResEx.Win
Assembly Version: 1.5.0.0
Win32 Version: 1.5.0.0

CodeBase: file:///C:/Program%20Files/ResEx/ResEx.Win.DLL

ResEx.Core
Assembly Version: 1.5.0.0
Win32 Version: 1.5.0.0

CodeBase: file:///C:/Program%20Files/ResEx/ResEx.Core.DLL

Microsoft.Practices.Unity
Assembly Version: 1.2.0.0
Win32 Version: 1.2.0.0

CodeBase: file:///C:/Program%20Files/ResEx/Microsoft.Practices.Unity.DLL

System.Core
Assembly Version: 3.5.0.0
Win32 Version: 3.5.30729.1 built by: SP

CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Core/3.5.0.0__b77a5c561934e089/System.Core.dll

System.Configuration
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)

CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll

System.Xml
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)

CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll

ResEx.Common
Assembly Version: 1.5.0.0
Win32 Version: 1.5.0.0

CodeBase: file:///C:/Program%20Files/ResEx/ResEx.Common.DLL

ResEx.StandardAdapters
Assembly Version: 1.5.0.0
Win32 Version: 1.5.0.0

CodeBase: file:///C:/Program%20Files/ResEx/ResEx.StandardAdapters.DLL

Microsoft.Practices.ObjectBuilder2
Assembly Version: 2.2.0.0
Win32 Version: 2.2.0.0

CodeBase: file:///C:/Program%20Files/ResEx/Microsoft.Practices.ObjectBuilder2.DLL

Mvp.Xml
Assembly Version: 2.3.0.0
Win32 Version: 2.3.0.0

CodeBase: file:///C:/Program%20Files/ResEx/Mvp.Xml.DLL

WindowsBase
Assembly Version: 3.0.0.0
Win32 Version: 3.0.6920.1427 built by: SP

CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/WindowsBase/3.0.0.0__31bf3856ad364e35/WindowsBase.dll

ResEx.StandardPlugIns
Assembly Version: 1.5.0.0
Win32 Version: 1.5.0.0

CodeBase: file:///C:/Program%20Files/ResEx/ResEx.StandardPlugIns.DLL

ResEx.TranslationPlugin
Assembly Version: 1.5.0.0
Win32 Version: 1.5.0.0

CodeBase: file:///C:/Program%20Files/ResEx/ResEx.TranslationPlugin.DLL

System.Runtime.Serialization
Assembly Version: 3.0.0.0
Win32 Version: 3.0.4506.2152 (SP.030729-0100)

CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Runtime.Serialization/3.0.0.0__b77a5c561934e089/System.Runtime.Serialization.dll

System.ServiceModel
Assembly Version: 3.0.0.0
Win32 Version: 3.0.4506.2152 (SP.030729-0100)

CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.ServiceModel/3.0.0.0__b77a5c561934e089/System.ServiceModel.dll

SMDiagnostics
Assembly Version: 3.0.0.0
Win32 Version: 3.0.4506.2152 (SP.030729-0100)

CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/SMDiagnostics/3.0.0.0__b77a5c561934e089/SMDiagnostics.dll

System.Web
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)

CodeBase: file:///C:/WINDOWS/assembly/GAC_32/System.Web/2.0.0.0__b03f5f7f11d50a3a/System.Web.dll

System.WorkflowServices
Assembly Version: 3.5.0.0
Win32 Version: 3.5.594.1152

CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.WorkflowServices/3.5.0.0__31bf3856ad364e35/System.WorkflowServices.dll

System.ServiceModel.Web
Assembly Version: 3.5.0.0
Win32 Version: 3.5.594.1152

CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.ServiceModel.Web/3.5.0.0__31bf3856ad364e35/System.ServiceModel.Web.dll

Microsoft.VisualStudio.Diagnostics.ServiceModelSink
Assembly Version: 3.0.0.0
Win32 Version: 10.0.21006.1

CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/Microsoft.VisualStudio.Diagnostics.ServiceModelSink/3.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualStudio.Diagnostics.ServiceModelSink.dll

System.IdentityModel
Assembly Version: 3.0.0.0
Win32 Version: 3.0.4506.2152 (SP.030729-0100)

CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.IdentityModel/3.0.0.0__b77a5c561934e089/System.IdentityModel.dll

Microsoft.JScript
Assembly Version: 8.0.0.0
Win32 Version: 8.0.50727.3053

CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/Microsoft.JScript/8.0.0.0__b03f5f7f11d50a3a/Microsoft.JScript.dll

 
************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.
 
For example:
 
<configuration>
<system.windows.forms jitDebugging="true" />
</configuration>
 
When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.

file attachments

Closed Dec 19, 2010 at 9:44 AM by papadi
I added the configuration options to the app.config file in order to automatically detect the proxy settings. Cannot reproduce the problem anyway so I will close this and hope that there is some other issue causing the problem on the particular user's machine.

comments

papadi wrote Jun 5, 2010 at 5:31 PM

Thank you so much for the detailed report! Since I don't have a proxy server to test the whole thing I was wondering if you can help me some more.
Do you have your proxy server configured in Internet Options of Windows' Control Panel?

Lorie wrote Jun 7, 2010 at 7:19 AM

The proxy I'm using requires an automatic configuration script. The address of this script is defined in Internet Options of Windows' Control Panel, and in all web browser options.
Let me know if you need further information.

wrote Jun 7, 2010 at 11:44 AM

papadi wrote Jun 7, 2010 at 11:44 AM

Thanks again for helping me out in this problem. Please try the following. Copy/paste the attached file in the installation folder of the application and start the application.
Any change?

papadi wrote Jun 7, 2010 at 11:45 AM

When I say "attached file" I mean "ResEx.exe.config" that you can find in the "File Attachments" area of this page.

wrote Jun 7, 2010 at 12:16 PM

Lorie wrote Jun 7, 2010 at 12:16 PM

I copied the new config file to the instal folder. Now I get the following error (see attached files)

papadi wrote Jun 7, 2010 at 12:51 PM

I see that now there is correct DNS resolution. Can you please try to access this url "http://api.microsofttranslator.com" using your web browser? What do you get? Try also "http://translate.google.com".
Maybe this time the problem is that your proxy prohibits completely the url. I have seen in the past proxies that prohibit translation services because in some case (not the case with this particular url) users can use them to bypass other proxy rules.

Lorie wrote Jun 7, 2010 at 1:21 PM

The two url you asked me to test were successfully reached by my web browser. They are not blocked by the proxy.

wrote Dec 19, 2010 at 9:44 AM

wrote Feb 14, 2013 at 2:55 AM

wrote May 16, 2013 at 7:50 AM