missing ctct.dll for .net API

Highlighted
Occasional Advisor

missing ctct.dll for .net API

I am working on creating a site using the .net API.  In the instructions here, it says to add the CTCT.dll library to your references project.  Well I downloaded the zip from that site and there is no CTCT.dll to be found.  Does anyone know where I can find this file?

Thanks

Mike

9 REPLIES 9
Highlighted
CTCT Employee

Re: missing ctct.dll for .net API

HI Mike,

 

You raise a good point; the CTCT.dll isn't in the project source and we do tell you to use it in the instructions.  I will address that; we haven't decided whether to change the documentation or add a dll yet.  As it stands now, you would need to download the project and build it to produce CTCT.dll.

 

Compiled code isn't usually hosted, just the source code.  Aside from trying to follow our instructions, do you have a strong reason for wanting the dll's as opposed to building yourself to produce it?  Thanks for the heads up on this!

 

Best Regards,

Shannon W.

API Support Specialist

Highlighted
Occasional Advisor

Re: missing ctct.dll for .net API

Thanks for the reply Shannon.  I am just trying to figure out how to start writing a C# app using the API.  Is there a different set of instructions that I should be following?

Thanks

Mike

Highlighted
Occasional Advisor

Re: missing ctct.dll for .net API

OK, hopefully I can tag an additional question onto this post.  I built the library and found the dll and added it as a reference.  Now I have a c# class under my app_code folder with the following lines:

using CTCT;

using CTCT.Components;

using CTCT.Components.Contacts;

using CTCT.Components.EmailCampaigns;

using CTCT.Exceptions;

 

It is underlining all the 'CTCT' saying 'type or namespace could not be found'.  What else do I need to do?

Thanks

Mike

Highlighted
CTCT Employee

Re: missing ctct.dll for .net API

Hi Mike,

 

I will update those instructions later today; thanks again for the alert on that.  I'd recommend taking a look at the contact example (or the email campaign example found in the source).  I usually just double click the solution file to open the project in Visual Studio.  If you look at the code view for Form1.cs (code view), you can see what you need to include to be able to add or update a contact.

 

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using CTCT;
using CTCT.Components.Contacts;
using CTCT.Components;
using System.Globalization;
using CTCT.Exceptions;
using System.Configuration;

 

 

Best Regards,

Shannon W.

API Support Specialist

Highlighted
Occasional Advisor

Re: missing ctct.dll for .net API

Now that I restarted VS, those errors are gone.  I would add a sentence to those instructions along the lines of "You will have to build the library first to create the CTCT.dll and it will be located in this folder.... after you build it."  For major newbs like myself. :)

Thanks Shannon!

Mike

Highlighted
Member

Re: missing ctct.dll for .net API

This git website and the support around the API are the most confusing things I have ever seen.  Is the intent to make this difficult or helpful?

 

You go to the developer forum to look at sample code.  You click the download here button.  It takes you to some strange website with a little cat in the top corner.  You click on everything on the page and there is nothing to download.  

 

I am completely lost...

Highlighted
Honored Contributor

Re: missing ctct.dll for .net API

Hello,

 

The biggest goal behind using github to host our libraries and distribute them is that it simplifies the process of adding fixes/updates and disstributing those to developers. In addition, if our developers discover issues or add features that they want to share, it provides an easy way for them to send those code updates to us.

 

In addition, I've included a quick screenshto below showing where you can download the library once you get to Github.

 

If you woudl like any assistance with getting started, please feel free to post here on the developer pages or to contacts us at webservices@constantcontact.com

 

Sincerely,

Elijah G.

API Support Specialist

 

example.jpg

Elijah G.
API Support Engineer
Highlighted
Occasional Contributor

Re: missing ctct.dll for .net API

It looks like even though this thread is over 8 months old the readme still hasn't been updated and you still have to download everything and compile the code yourself? PLEASE UPDATE THE DOCUMENTATION OR ACTUALLY PROVIDE THE CTCT.DLL

Highlighted
Moderator

Re: missing ctct.dll for .net API

Thanks for the feedback, we'll update the readme soon to add some clarification on the steps.  Sorry again for the confusion, this should have been updated when the first report came in.

Dave Berard
Senior Product Manager, Constant Contact
Developer Portal

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

Visit Page

Constant Contact Would Like To Hear From You!

We want to hear from customers like you about your favorite features and how they have helped your business or organization. Tell us by answering a few questions in...

Read More
Featured