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.

The remote server returned an error: (401) Unauthorized.

Occasional Contributor

The remote server returned an error: (401) Unauthorized.

I am using the wrapper classes for .NET.  I have downloaded the projects and I am able to get the contact list via Utility.

SearchContactByEmail on the searchContact.aspx with my username, password & apikey and a particular email.  However when I plug in the dlls and access them from within my website I get the above error message. I am using the method within the Utility class and the same username, password, apikey & querying about the same email address.  Any idea why I am receiving a 401 error?


Re: The remote server returned an error: (401) Unauthorized.

Hey Taylor,

Have you set your credentials correctly in the web-config file?  That is typically the cause for that 401 error.

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