I'm guessing that your routing module is not triggered when you hit the iis server. As a test to verify that this is the cause : change your webconfig to run all managed modules upon a request. You need to set this :
<modules runAllManagedModulesForAllRequests="true">
If that solved it you can go read this resource on why to not do that :)