ASP api error

I am getting error when I am trying to add subscriber thought API,  I am getting this error.

An error has occurred while processing your request. An email has been sent to the administrator to resolve this issue. We are sorry if this has caused any inconvenience.

Please help thanks

Mathew Mathew, 9 years ago

Hey Moe,

We'd need a few more details about exactly what you are doing to be able to help you - could you please email support at

Get in touch with us on Twitter:
We're also on Facebook:
moe2008, 9 years ago

I am using ASP API for one of my client who has campaign monitor account. I am using the basic signup form name and email and using provided sample code by campaign monitor. I have used api with php before for several clients all worked fine. This is first time I use ASP api, here is the form and script code below with out my api key and list key

<form action="/include/signup.asp" method="post">
<div id="newsletter_form"><table border="0" cellspacing="0" cellpadding="2">
    <td colspan="2"><strong class="yellow">Subscribe to our E-Newsletter:</strong></td>
    <td><input type="text" name="name" /></td>
    <td><input type="text" name="email" /></td>
    <td colspan="2" align="right"><input type="submit" name="Submit" value="Go" /></td>

dim apikey, listid, name, email, newsletter, postdata, response

apikey = "mylong api charcters here" 'Your api key
listid = digit list id her     'your list id

name = Request.Form("name")
email = Request.Form("email")

If email <> ""  Then

    postdata = "<?xml version=""1.0"" encoding=""utf-8""?>"
    postdata = postdata & "<soap:Envelope xmlns:xsi="""" xmlns:xsd="""" xmlns:soap="""">"
    postdata = postdata & "<soap:Body>"
    postdata = postdata & "    <Subscriber.Add xmlns="""">"
    postdata = postdata & "        <ApiKey>" & apikey & "</ApiKey>"
    postdata = postdata & "        <ListID>" & listid & "</ListID>"
    postdata = postdata & "        <Email>" & email & "</Email>"
    postdata = postdata & "        <Name>" & name & "</Name>"
    postdata = postdata & "    </Subscriber.Add>"
    postdata = postdata & "</soap:Body>"
    postdata = postdata & "</soap:Envelope>"
    Dim xmlhttp
    'Set xmlhttp=Server.CreateObject("Microsoft.XMLHTTP")
    'Set xmlhttp=Server.CreateObject("MSXML2.ServerXMLHTTP.4.0")
    Set xmlhttp=Server.CreateObject("MSXML2.ServerXMLHTTP") "POST","" ,false

    xmlhttp.setRequestHeader "Content-Type", "text/xml; charset=utf-8"
    xmlhttp.setRequestHeader "SOAPAction", """"""

    xmlhttp.send postdata
    response = xmlhttp.responseText
    Response.Write response

End If

Thank you for your reply so fast

Ken Ken, 9 years ago

Hi Moe,

I've given you a more detailed answer in your support request. In future, if you still receive the "An error has occurred while processing your request. An email has been sent to the administrator to resolve this issue. We are sorry if this has caused any inconvenience." error, this is a good place to get a more meaningful answer.
moe2008, 9 years ago

Thank you Ken

moe2008, 9 years ago

Hey guys I still have some problem with the code. After response comes back success I need to redirect to thankyou page which I created. But I get blank page. This asp page is part of .net project. I asked the person who is responsible for the site if SmartNavigation is turned True and he said is not turned on so if you have any idea how I do the redirect other than response.redirect() method in ASP, I appreciated.



Ken Ken, 9 years ago

Can you post the code which does the redirect? Can I see what your trying to do?

See why 200,000 companies worldwide love Campaign Monitor.

From Australia to Zimbabwe, and everywhere in between, companies count on Campaign Monitor for email campaigns that boost the bottom line.

Get started for free