Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / Security / July 2007

Tip: Looking for answers? Try searching our database.

WCF Proxy Authentication

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Chintan Parmar - 19 Jul 2007 20:12 GMT
I need your technical support regarding the WCF service and Proxy server
authentication. Following the scenario.

The remote server returned an unexpected response: (407) Proxy
Authentication Require

I have hosted WCF services on Windows Longhorn Server Beta 3. The WCF
services is having the endpoint as BasicHttpBinding.
<behaviors>
            <endpointBehaviors>
                <behavior name="NewBehavior"/>
            </endpointBehaviors>
            <serviceBehaviors>
                <behavior name="NewBehavior">
                    <serviceMetadata httpGetEnabled="true"/>
                </behavior>
            </serviceBehaviors>
        </behaviors>

The client is developed in WPF as a smart client application (ClickOnce
Application) which is using this service.
<basicHttpBinding>
                <binding name="BasicHttpBinding_IBedraClubRedeemedManager"
closeTimeout="00:01:00"
                openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00"
                allowCookies="false" bypassProxyOnLocal="false"
hostNameComparisonMode="StrongWildcard"
                maxBufferSize="5000000" maxBufferPoolSize="524288"
maxReceivedMessageSize="5000000"
                messageEncoding="Text" textEncoding="utf-8" transferMode="Buffered"
                useDefaultWebProxy="false">
                    <readerQuotas maxDepth="32" maxStringContentLength="8192"
maxArrayLength="16384"
                    maxBytesPerRead="4096" maxNameTableCharCount="16384" />
                    <security mode="None">
                    </security>
                </binding>

Now we are not having any problem till date for the communication with the
service, but to one of our customer centers we are failed to use the service.
When they are trying to start the application they are getting the error
message as mentioned below.

From this error message I just came to know that they are using the ISA
server 2006  as a proxy server and Firewall. And we are failed to
authenticate our request in the proxy server.  I could not authenticate my
request in proxy server. I tried following code segment but none of them
works.

UserManagerClient objUserClient = new UserManagerClient();

1.            
objUserClient.ChannelFactory.Credentials.Windows.ClientCredential.UserName =
"ilink";
objUserClient.ChannelFactory.Credentials.Windows.ClientCredential.Password =
"ilink";

2.
objUserClient.ClientCredentials.UserName.UserName = "ilink";
objUserClient.ClientCredentials.UserName.Password = "ilink";

3.
objUserClient.ChannelFactory.Credentials.UserName.Password = "ilink";
objUserClient.ChannelFactory.Credentials.UserName.UserName = "ilink";

In all the above statement “ilink” is the username and password created in
ISA server.

Also I have mention not to use the default proxy settings.(
objBinding.UseDefaultWebProxy = false;)
None of the above works and I could not find any to validate or pass the
Proxy credentials

Please if you could help me in this scenario I would really appreciate and
can maintain the relationship with our customer. This is now really very
urgent to come to the solution.
calderara - 20 Jul 2007 07:40 GMT
Hello,

try to post your issue under www.netfx3.com
there is a dedicated forum place for WCF, you might have more answer.

regards
serge

> I need your technical support regarding the WCF service and Proxy server
> authentication. Following the scenario.
[quoted text clipped - 72 lines]
> can maintain the relationship with our customer. This is now really very
> urgent to come to the solution.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.