Sulfikar Ali, I was attempting to enroll an existing iPad that I have been managing with Configurator to Intunes. To do that I had to completely wipe the iPad and then prepare it in configurator so it will be added to my Apple School Manager(ASM) account. The error I received was because the iPad could not get to the internet to seek out the ASM. I have since learned that if I added a profile to load my WiFi information (I used a WiFi connection that did not require any passwords, just the SSID) on the iPad during Prepare or followed the procedure I described earlier, that it will get an internet connection allowing it to communicate with Apple.
If you describe your scenario and the message you received, I will attempt to help. I know how frustrating this can be and most of the time it is a simple correction that does the trick.