Skip to content
This repository has been archived by the owner on Mar 24, 2023. It is now read-only.

Is there a problem adding "Tracking" options when creating a campaign? #151

Open
toddryks01 opened this issue Apr 1, 2015 · 0 comments
Open

Comments

@toddryks01
Copy link

I get a System.NullReferenceException error whenever I try adding any of the 3 tracking options. All of the other options work fine:

MailChimpManager mc = new MailChimpManager(mcAPIkey);
CampaignCreateContent content = new CampaignCreateContent();
content.HTML = (mailHeader + mailContent + mailBottom);
CampaignCreateOptions options = new CampaignCreateOptions();
options.Title = campaignName;
options.ListId = mcListId;
options.ToName = "*|FNAME|*";
options.FromEmail = "xxx@zzz.com";
options.FromName = mailFromName;
options.Subject = mailSubject;
options.Authenticate = false;
options.AutoFooter = true;
options.InlineCSS = true;
options.GenerateText = true;
options.Tracking.TextClicks = true;
System.Exception occurred
HResult=-2146233088
Message=Object reference not set to an instance of an object.
Source=CreateNewsletter
StackTrace:
at CreateNewsletter.Program.GetNextNewsletter() in c:\Development\VSProjects\MailChimpIntegration\CreateNewsletter\Program.cs:line 146
InnerException: System.NullReferenceException
HResult=-2147467261
Message=Object reference not set to an instance of an object.
Source=CreateNewsletter
StackTrace:
at CreateNewsletter.Program.GetNextNewsletter() in c:\Development\VSProjects\MailChimpIntegration\CreateNewsletter\Program.cs:line 108
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant