After upgrading to iOS 6, some users encountered several iTunes errors, which prevent them from using the service properly. If it happens to encounter the iTunes error 40, let me tell you that there is a solution for this problem. The issue occurs due to a problem with the hardware or software security issue. Sometimes, these files prevent Apple from connecting to its server in order to check the firmware version.
Each time a restore is made, Apple needs to contact its server in order to check if that IPSW is signed or not. In the same time, Apple also verifies the validity of the particular firmware. In this case, if the iPhone, iPad or iPod Touch is unable to connect to the Apple Store, the iTunes error 40 appears.
Therefore, in order to fix the problem, users should follow the next step by step guide. If the following instructions are followed carefully, the iTunes error should disappear. In case you still encounter the same problem, you should redo the process once again.
Step-by-step Guide to Fix iTunes Error 40
For a start, you need to use a Windows operating desktop computer. Second, you need the latest iTunes version installed on your computer and an USB cable in order to connect your device to your desktop computer or laptop. The cable should offer a proper connection in order to fix the problem.
1. When you want to start the process, you need to close all running apps on your computer in order to prevent them from interfering in a way or another with iTunes.
2. Reboot your computer and close the antivirus program you use in order to prevent firewall protection. In some cases, the antivirus might refuse access to certain files.
3. Within a random folder, click on Organize, Folder and Search Options and reveal all hidden folders and drives. For this, check the Show Hidden files folders and drives option.
4. Search for Notepad option and select Run in Administrator.
5. Within the Notepad window, click Open at the top left window. This will allow you to navigate through the file.
6. Go to C:\Windows\System32\drivers\etc.
7. The directory might appear empty. However, you need to change the options from the box in the right side of the window under Text documents to all files option.
8. At this point, Select hosts and Notepad will display a sample of hosts files used by Microsoft for Windows.
9. Remove all links you see within the Notepad file, except for those you see in the image bellow.
10. In order to preserve all changes, you need to click on File, Save and exit Notepad.
11. Launch iTunes and connect your device to your computer using the USB cable.
12. Press and hold the Shift key, and click on Restore.
13. Restore your device once again using a stock IPSW files.
This was about all. At this point, the iTunes error 40 should be solved. If you encounter any other problems, you should perform the process once again. It is advisable to use a different computer when you perform the restore, in case you see no difference.