Question mailchimp (perceptivemcapi) and console application

spectral

New member
Joined
Nov 9, 2010
Messages
3
Programming Experience
1-3
hey all,

i have been playing around with mailchimp and i seem to get it working on a web page. What i want however is to make a console application to run every night.

On a webpage i can just add a reference to the cookcomputing and the perceptivemcapi wrapper without any problem when i try to do to same for a console application however i get some strange errors. Here's my code for importing:

Imports PerceptiveMCAPI
Imports PerceptiveMCAPI.Methods
Imports PerceptiveMCAPI.Types

here are the errors:

Warning 4 Namespace or type specified in the Imports 'PerceptiveMCAPI' doesn't contain any public member or cannot be found. Make sure the namespace or the type is defined and contains at least one public member. Make sure the imported element name doesn't use any aliases. C:\Users\TVerhaegen\documents\visual studio 2010\Projects\mailchimp synchroniser\mailchimp synchroniser\mailchimp.vb 3 9 mailchimp synchroniser

Warning 5 Namespace or type specified in the Imports 'PerceptiveMCAPI.Methods' doesn't contain any public member or cannot be found. Make sure the namespace or the type is defined and contains at least one public member. Make sure the imported element name doesn't use any aliases. C:\Users\TVerhaegen\documents\visual studio 2010\Projects\mailchimp synchroniser\mailchimp synchroniser\mailchimp.vb 4 9 mailchimp synchroniser

Warning 6 Namespace or type specified in the Imports 'PerceptiveMCAPI.Types' doesn't contain any public member or cannot be found. Make sure the namespace or the type is defined and contains at least one public member. Make sure the imported element name doesn't use any aliases. C:\Users\TVerhaegen\documents\visual studio 2010\Projects\mailchimp synchroniser\mailchimp synchroniser\mailchimp.vb 5 9 mailchimp synchroniser

Warning 1 The referenced assembly "CookComputing.XmlRpcV2, Version=2.5.0.0, Culture=neutral, PublicKeyToken=a7d6e17aa302004d, processorArchitecture=MSIL" could not be resolved because it has a dependency on "System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" which is not in the currently targeted framework ".NETFramework,Version=v4.0,Profile=Client". Please remove references to assemblies not in the targeted framework or consider retargeting your project. mailchimp synchroniser

Warning 2 The referenced assembly "PerceptiveMCAPI, Version=1.2.5.3, Culture=neutral, processorArchitecture=MSIL" could not be resolved because it has a dependency on "System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" which is not in the currently targeted framework ".NETFramework,Version=v4.0,Profile=Client". Please remove references to assemblies not in the targeted framework or consider retargeting your project. mailchimp synchroniser

Warning 3 The referenced assembly "PerceptiveMCAPI, Version=1.2.5.3, Culture=neutral, processorArchitecture=MSIL" could not be resolved because it has a dependency on "System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" which is not in the currently targeted framework ".NETFramework,Version=v4.0,Profile=Client". Please remove references to assemblies not in the targeted framework or consider retargeting your project. mailchimp synchroniser
 
The referenced assembly "..." could not be resolved because it has a dependency on "System.Web..." which is not in the currently targeted framework ".NETFramework,Version=v4.0,Profile=Client". Please remove references to assemblies not in the targeted framework or consider retargeting your project
So you have to change target framework from .Net 4 Client Profile to .Net 4 (full).
Project properties > Compile page > Advanced > Target Framework.
 
Back
Top