Intel,Altiris Group

Expand all | Collapse all

Error enrolling IOS device

Migration User

Migration UserNov 11, 2011 10:26 AM

fabian.szalatnay

fabian.szalatnayNov 11, 2011 11:24 AM

  • 1.  Error enrolling IOS device

    Posted Nov 09, 2011 04:22 PM

    I am setting Symantec Mobile Device Management and am trying to enroll my first iOS device and I get the following error when I attempt to enroll the device. I can see that the device has been found by the server (Looking in Mobile Management inventory I see basic info about my iPad)

     Any assistance would be helpful

    URL: http://<MyMDMServer>/MobileEnrollment/MobileConfig.aspx

    Server Error in '/MobileEnrollment' Application.

    Unexpected end of file.

    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

     Exception Details: System.Xml.XmlException: Unexpected end of file.

     Source Error:

     An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

     Stack Trace:

     

     

    [XmlException: Unexpected end of file.]

       System.Xml.EncodingStreamWrapper.ReadBOMEncoding(Boolean notOutOfBand) +2065002

       System.Xml.EncodingStreamWrapper..ctor(Stream stream, Encoding encoding) +171

       System.Xml.XmlUTF8TextReader.SetInput(Stream stream, Encoding encoding, XmlDictionaryReaderQuotas quotas, OnXmlDictionaryReaderClose onClose) +104

       System.Runtime.Serialization.XmlObjectSerializer.ReadObject(Stream stream) +105

       MobileConfig._Default.Page_Load(Object sender, EventArgs e) +1166

       System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +25

       System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +42

       System.Web.UI.Control.OnLoad(EventArgs e) +132

       System.Web.UI.Control.LoadRecursive() +66

       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2428

     

    Microsoft .net framework version 2.0.50727.4961 ; ASP.Net version 2.0.50727.4955 



  • 2.  RE: Error enrolling IOS device

    Posted Nov 10, 2011 03:13 PM

    If you installed SP1 on your 2008 R2 server, you will need to follow this KB to provide a fix:
    http://www.symantec.com/docs/HOWTO59804

    If that doesn't apply, another common error is that the certificate you received from Apple does not start with com.apple.mgmt., e.g. com.apple.mgmt.company.  What's the Certificate Subject on the iOS MDM Enrollment page?



  • 3.  RE: Error enrolling IOS device

    Posted Nov 10, 2011 05:17 PM

    Hi Mike,

    The Certificate Subject is: com.apple.mgmt.testkenos

     

    Recently upgrade to IOS 5 and now the error is "Safari was unable to install Profile"



  • 4.  RE: Error enrolling IOS device

    Posted Nov 10, 2011 05:50 PM

    I am seeing this as well.  Just on ios 5 devices.  Enrolls ok but when trying to go to mobileenrollment/mobileconfig.aspx I get the same error.



  • 5.  RE: Error enrolling IOS device

    Posted Nov 10, 2011 09:16 PM

    Was speaking to one of the guys yesterday and they mentioned that you need MR1 for iOS5. Was released 2 days ago



  • 6.  RE: Error enrolling IOS device

    Posted Nov 11, 2011 05:53 AM

    mclemson, am I getting this right that the AppleID must always begin with com.apple.mgmt?

    So I shouldn't use "ch.company.altirismm" for example?

    I'm talking about the Provisioning Portal from Apple, "Bundle Identifier (App ID Suffix)".



  • 7.  RE: Error enrolling IOS device

    Posted Nov 11, 2011 09:25 AM

    I just check, I have Mobile Management 7.1 MR1 already installed

    Regards,

     



  • 8.  RE: Error enrolling IOS device

    Posted Nov 11, 2011 10:26 AM

    Correct.



  • 9.  RE: Error enrolling IOS device

    Posted Nov 11, 2011 10:48 AM

    Not only must the form be correct as in  

       form: com.apple.mgmt.<SuffixOfYourChoice>   

    but it must exactly match (case sensitive) the certificate itself.  The case sensitivity has tripped up some.  Open the certificate to double check or copy and paste directly from your certificate details page. 



  • 10.  RE: Error enrolling IOS device

    Posted Nov 11, 2011 11:24 AM

    Ok, thanks, guys.



  • 11.  RE: Error enrolling IOS device

    Posted Nov 11, 2011 03:51 PM

    Who has the issue here?  Am I already helping you in another thread, Rubensann?  I'm a bit confused.



  • 12.  RE: Error enrolling IOS device

    Posted Nov 14, 2011 02:18 PM

    I'd recommend to the OP that you reinstall the MMS SS components.  Remove it as an MMS SS, run the uninstall policy, confirm the services are removed from the MMS SS, then add it as an MMS SS, and run the uninstall policy.  Ensure that Message Queueing Service, IIS 7 w/ IIS 6 compatibility, ASP.NET, and .NET 3.5.1 are installed as roles/features before reinstalling.

    The MobileConfig.aspx error is caused by having .NET missing when you installed the MMS SS components.

    Does this resolve your issue?



  • 13.  RE: Error enrolling IOS device

    Posted Nov 18, 2011 12:30 PM

    To reuse a SS you'll need to run a few steps.  Be sure to send a basic inventory from the former MMS SS, then delete the MMS SS's GUID from the the tables, like so:

    SELECT * FROM MobileManagementServer_IISInfo

    SELECT * FROM MobileManagementServer_TunnelServer

    SELECT * FROM MobileManagementServer_Information

     

    DELETE FROM MobileManagementServer_TunnelServer WHERE MachineGuid='A0AD587A-5B7C-4496-9E8E-15D84C44F5A1'

    DELETE FROM MobileManagementServer_Information WHERE MachineGuid='A0AD587A-5B7C-4496-9E8E-15D84C44F5A1'

    DELETE FROM MobileManagementServer_IISInfo WHERE MachineGuid='A0AD587A-5B7C-4496-9E8E-15D84C44F5A1'

    Inserting your MachineGuid where applicable.

    Then modify the policy's schedule so that it can be run from the client.  I just do a 00:00 scheduled time for yesterday, plus "User can run," plus a scheduled window.  Otherwise 'Run Once ASAP' will prevent you from re-running the Install policy on the SS.



  • 14.  RE: Error enrolling IOS device

    Posted Nov 30, 2011 11:02 AM

    the server does not have sp1 installed, but I tried that fix anyway with no change to the error I receive when attempting to enroll a device.

    to answer your second question,  the Certificate Subject on the iOS MDM Enrollment page is com.apple.mgmt.altirisdev4



  • 15.  RE: Error enrolling IOS device

    Posted Jan 11, 2012 04:09 PM

    HI,

    I removed the MMS from the Server list, edited the uninstall poliy to remove the MMS-Install.
    Rebotted the Server and checked the folder %programm files%\symantec and the Services. All of them was removed.

    After that, I added the Server to the MMS-Site-Server List and edited the install policy. The installation runs sucessfully. Did i have to do the steps bevor? SELECT*.......?

    But after reinstall I get the "MDM Enrollment" error. All certificates are correctly (SSL, CA, APNS).
    I also upload this three certificates to the iPads with the cert payload.
    The enrollment stopped while the profile will be added, at the end of the sign in process (Settings-->Generell-->Profile).
    I don't know what I can do?!?!



  • 16.  RE: Error enrolling IOS device

    Posted Jan 12, 2012 02:35 AM

    I postedt already in another thread, my issue is fiexed (for now) the enrollment works fine.
    After reinstall I forgot to apply this howto

    http://www.symantec.com/docs/HOWTO59804