Skip to Content
author's profile photo Former Member
Former Member

Afaria 7 Self-Service Portal Enrolment Problem 'invalid portal enrollment code'

Hi There,

We've configured the Afaria 7.0 appliance within our landscape for discovery/demo purposes and am trying to set up the End Use Self Service Portal.

We've also configured the appliance with the relay server to allow us to access the Afaria server externally securely.

I'm encountering a problem during enrollment through the SSP wizard. Every time I hit the 'Apply code' button and get taken to the Afaria client for enrollment, I get the following message 'invalid portal enrollment code'. The code itself works i.e. when I try to enroll manually I can do so, its when I configure the SSP to use it that the problems start to occur. I have tried both iOS and Android devices to no effect.

I've extracted the following logs from the iPhone Configuration Utility:

Sep 14 14:26:49 unknown Afaria[418] <Warning>: connection:didReceiveResponse: http 412

Sep 14 14:26:49 unknown Afaria[418] <Warning>: HomeViewController enrollmentCodeSeedDataDidLoadWith [1505] and http: 412

Sep 14 14:26:49 unknown Afaria[418] <Warning>: Server rejected activation/enrollment code.http: 412

Which clearly show that the server is rejecting the enrollment code (even though I've proved it works!). Also the AIPS website appears to be returning HTTP response code 412 where it should be 200.

Has anyone experienced this problem before and can offer any insights?

Many thanks,


Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Posted on Oct 30, 2012 at 08:50 AM

    Hi All,

    I have the same problem after upgrading an Afaria Server to SP1, can someone explain this kind of error and a solution?

    I've done the same steps used in other installations/upgrades without any issue.

    Can someone help us to find out a solution?

    Best regards.

    AK -

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Feb 28, 2013 at 10:50 AM

    I have same Issue for android.

    I create an enrollment code for portal and 15 days expiration.

    Bur when I try to enroll a new device on self-service portal I get:

    'invalid portal enrollment code'.

    But if I write down this enrollment code into web.config page of ssp.. it works.

    What is wrong ??

    Add a comment
    10|10000 characters needed characters exceeded

    • Hi,

      are you enrolling your device using SSP or directly using enrollment code?

      How is configured the code in Afaria admin (portal only?!)?

      If it is configured as an portal only code, you must update web.config to enable it in SPP.

      Otherwise, unset the flag in your enrollment policy and use it in the two flavours.


      Andrea -

  • Posted on Feb 28, 2013 at 02:14 PM

    Hmm, I try to enroll devices using SSP and "portal only code".

    So, According to your information I did it rgiht thing.


    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.