Looks like the problem is that you are not setting the Credential value for the Proxy Server. Thus, when we try to validate that the Proxy is valid and not trying to spoof your request, we can't and throw a 407 error. I've not done any work with this before, however there is a post on the MSDN support forums for how to set the credentials for a Proxy Server here: http://social.msdn.microsoft.com/Forums/en-US/wcf/thread/83bafcd0-5bab-4cb9-96cf-a53ce132c7ab/
Setting the Proxy end point and credential cache should resolve the error you're seeing.
OMG, can't believe it but now i'm having a new issue. I'm getting this error now: The remote server returned an error: (400) Bad Request. Do you know how can i fix this. Thanks in advance =)
Can you please post your XML so we can take a look at what you are trying to post. Also if you can supply the URI you are posting too that would be great.
I'm using your sample code, but when I run the project on the server i'm getting this exception:
Security Exception was caught
Request for the permission of type 'System.Net.WebPermission, System, Version=220.127.116.11, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.
Is in this line: GetResponseStream(newUri(authenticationData.AccountServiceDocumentUri), authenticationData);
This is the method of the class Utility.cs
// try to access the Service Document resource// it will throw a WebException if Constant Contact credentials are invalid
thrownewConstantAuthenticationException("Account authentication failed", e,
Any ideas, please? =S
Thanks in advance
Based off the error that you are receiving I found apost on microsofts boards that explain how they fixed this issue by editing their web-config file. You can find the link by clicking here.
Please let me know if this solved your issue.