The Community is hosting an End of Summer sweepstakes! Participants must complete tasks to earn tickets that will enter them with a chance to win a free year of Constant Contact and other great prizes!*
*No Purchase Necessary. For Official Rules, visit here. Constant Contact’s End of Summer 2020 Sweepstakes ends on October, 20, 2020 at 11:50 PM EST.

Re: Can't add contact

Highlighted
Employee

Re: Can't add contact

Hey Marcia, That was in regards to some spam that was posted on our board.  You dont need to worry about that. 

Ryan Davis
Quality Engineer
Highlighted
Moderator

Re: Can't add contact

Hi Marcia,

 

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.

 

Dave Berard
Senior Product Manager, Constant Contact
Highlighted
Established Member

Re: Can't add contact

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 =)

Highlighted
Employee

Re: Can't add contact

Hey Carlos,

 

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.

 

 

Ryan Davis
Quality Engineer
Highlighted
Occasional Participant

Re: Can't add contact

Hi again,

 

       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=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.

 

Is in this line: GetResponseStream(newUri(authenticationData.AccountServiceDocumentUri), authenticationData);

 

This is the method of the class Utility.cs

 

publicstaticvoid IsValidUserAuthentication(AuthenticationDataauthenticationData)

{

ValidateAuthenticationData(authenticationData);

try

{

// try to access the Service Document resource// it will throw a WebException if Constant Contact credentials are invalid

GetResponseStream(

newUri(authenticationData.AccountServiceDocumentUri), authenticationData);

}

catch (Exceptione)

{

thrownewConstantAuthenticationException("Account authentication failed", e,

authenticationData.Username);

}

}

 

 

Any ideas, please? =S

 

Thanks in advance

 

Tags (1)
Highlighted
Employee

Re: Can't add contact

Hey Marcia,

 

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.

Ryan Davis
Quality Engineer
Highlighted
Established Member

Re: Can't add contact

Hi again,

 

    No, I'm strill having the same issue. Any other idea, please?

 

Thanks

Highlighted
Employee

Re: Can't add contact

Hey Carlos,

 

A 400 error is based on the XML that you are passing in.  Can you please post your XML.

Ryan Davis
Quality Engineer
Developer Portal

View API documentation, code samples, get your API key.

Visit Page

Constant Contact 2020 End of Summer Community Sweepstakes!

The Constant Contact User Community is hosting a sweepstakes. The more you participate, the more chances you have to win! Read on to learn more...

Read More
Featured