IIS doesn't have error logs in the same way that Apache does, so you're going to need to make the error visible. Try
use CGI::Carp qw(fatalsToBrowser);
This'll help you out during development, though you probably won't want it in for production code.