We all started somewhere! Share your experience on the Get Advice: Let's Get Started Sweepstakes thread and be entered to win a $100 credit on your Constant Contact account.

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

Occasional Participant

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?


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