It is not necessary that an application which is working on your local system will work on the live server as it is due to many reasons.
For example, you could be testing your application on Windows 2003 server while we have Windows 2012 Standard Servers. On live servers there are many restrictions/security rules are applied which might not be applied on your local system.