I figured it out.
In IIS, the FastCGI Activity Timeout was set to 30 seconds. I changed it to 5 minutes and it worked!
In IIS, the FastCGI Activity Timeout was set to 30 seconds. I changed it to 5 minutes and it worked!