Proxyaware?

Jun 3, 2010 at 7:59 AM
Hi, is the bridge proxy aware? Means if I only have access to the internet over a proxyserver and have entered that server into the IE, does the bridge use that proxy server? If not, would be a good feature to use some setting like: Use IE settings or allow entering of a proxy server (with authentication possibility). Regards Norbert
Coordinator
Jun 3, 2010 at 9:51 AM

Can you test it for me?

I do not have an proxy server her...

Greetings
  Jochen

Jun 3, 2010 at 9:58 AM

Sure. Just say how I can help. BTW. the live signin seems to use the proxy from IE. The MSBridge didn't use a proxy too.

 

Bye

Norbert

Coordinator
Jun 3, 2010 at 9:59 AM

Just try it!? And report it ifi it works or not ;)

Jun 3, 2010 at 10:06 AM

It does not work, thats why I'm asking. ;) Signin works but retrieving articles or prefetching groups does not.

 

Bye

Norbert

Coordinator
Jun 3, 2010 at 10:22 AM
Edited Jun 3, 2010 at 10:23 AM

For testing: Can you change your app.config file (c:\Program Files\Community\CommunityNNTPServer\CommunityNNTPServer.exe.config) to:
(and replase "gateway:8080" with you proxy-server address)

<?xml version="1.0"?>
<configuration>

    <system.net>
        <defaultProxy useDefaultCredentials="true">
            <proxy bypassonlocal="False" proxyaddress="http://gateway:8080" />
            <!--<proxy usesystemdefault="True"/>-->
        </defaultProxy>
    </system.net>

    <system.serviceModel>
        <bindings>
          <wsHttpBinding>
            <binding name="social" closeTimeout="00:01:00" openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:05:00" bypassProxyOnLocal="false" transactionFlow="false" hostNameComparisonMode="StrongWildcard" maxBufferPoolSize="10485760" maxReceivedMessageSize="10485760" messageEncoding="Text" textEncoding="utf-8" useDefaultWebProxy="true" allowCookies="false">
              <readerQuotas maxDepth="32" maxStringContentLength="10485760" maxArrayLength="10485760" maxBytesPerRead="10485760" maxNameTableCharCount="16384"/>
              <reliableSession ordered="true" inactivityTimeout="00:10:00" enabled="false"/>
              <security mode="None">
                <transport clientCredentialType="Windows" proxyCredentialType="None" realm=""/>
                <message clientCredentialType="Windows" negotiateServiceCredential="true"/>
              </security>
            </binding>
            <binding name="answers" closeTimeout="00:01:00" openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:05:00" bypassProxyOnLocal="false" transactionFlow="false" hostNameComparisonMode="StrongWildcard" maxBufferPoolSize="10485760" maxReceivedMessageSize="10485760" messageEncoding="Text" textEncoding="utf-8" useDefaultWebProxy="true" allowCookies="false">
              <readerQuotas maxDepth="32" maxStringContentLength="10485760" maxArrayLength="10485760" maxBytesPerRead="10485760" maxNameTableCharCount="16384"/>
              <reliableSession ordered="true" inactivityTimeout="00:10:00" enabled="false"/>
              <security mode="None">
                <transport clientCredentialType="Windows" proxyCredentialType="None" realm=""/>
                <message clientCredentialType="Windows" negotiateServiceCredential="true"/>
              </security>
            </binding>
          </wsHttpBinding>
        </bindings>
      <client>
        <endpoint address="http://services.social.microsoft.com/ForumsServicePreview/ForumsService.svc" binding="wsHttpBinding" bindingConfiguration="social" contract="Forums.IForumsService" name="social"/>
        <endpoint address="http://services.answers.microsoft.com/ForumsServicePreview/ForumsService.svc" binding="wsHttpBinding" bindingConfiguration="answers" contract="Forums.IForumsService" name="answers"/>
      </client>
    </system.serviceModel>
    <startup>
        <supportedRuntime version="v2.0.50727"/>
    </startup>
</configuration>

Jun 3, 2010 at 10:39 AM
Edited Jun 3, 2010 at 10:45 AM

Hi,

That did not work yet. I copied your config into the .config file saved it and restarted the bridge. If I prefetch the group I got the following messag in the debug window:

Error during LoadNewsgroupsToStream (SupportedBrands): Exception:
Type System.ServiceModel.ProtocolException
Source: mscorlib
Message: Der Remoteserver hat eine unerwartete Antwort zurückgegeben: (417) Expectation failed.
Stack-Trace:

Server stack trace:
   bei System.ServiceModel.Channels.HttpChannelUtilities.ValidateRequestReplyResponse(HttpWebRequest request, HttpWebResponse response, HttpChannelFactory factory, WebException responseException, ChannelBinding channelBinding)
   bei System.ServiceModel.Channels.HttpChannelFactory.HttpRequestChannel.HttpChannelRequest.WaitForReply(TimeSpan timeout)
   bei System.ServiceModel.Channels.RequestChannel.Request(Message message, TimeSpan timeout)
   bei System.ServiceModel.Dispatcher.RequestChannelBinder.Request(Message message, TimeSpan timeout)
   bei System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)
   bei System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs)
   bei System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)
   bei System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)

Exception rethrown at [0]:
   bei System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
   bei System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
   bei CommunityForumsNNTPServer.WebServiceDataSource.Forums.IForumsService.GetActiveBrands()
   bei CommunityForumsNNTPServer.WebServiceDataSource.Forums.ForumsServiceClient.GetActiveBrands()
   bei CommunityForumsNNTPServer.WebServiceDataSource.MicrosoftForumsServiceProvider.get_SupportedBrands()
   bei CommunityForumsNNTPServer.ForumDataSource.LoadNewsgroupsToStream(Action`1 groupAction)Exception:
Type System.Net.WebException
Source: System
Message: Der Remoteserver hat einen Fehler zurückgegeben: (417) Expectation failed.
Stack-Trace:
   bei System.Net.HttpWebRequest.GetResponse()
   bei System.ServiceModel.Channels.HttpChannelFactory.HttpRequestChannel.HttpChannelRequest.WaitForReply(TimeSpan timeout)

 

Hope you can find somethin in this. Problem is, I have not access at all to the proxy here. I can get more results with proxy testing tomorrow.

 

Norbert

 

PS: I can access the forums via IE and proxy without problems, if that helps. ;)

Jun 10, 2010 at 7:59 AM

I had the inverse problem, namely to ignore the default proxy of my system.

I use this in the cfg file to ignore the default proxy and it works:

----

<system.net>
        <defaultProxy>
            <proxy usesystemdefault="False"/>
        </defaultProxy>
</system.net>

----

br,

Martin