1-page execution timeout only applies if debug=false.
<compilation debug="false" targetFramework="4.0" />
Set debug="false" should solve the problem.
2-You can set below value in web.config for specific page.
For example, to change the timeout for one specific page:
<location path="somefile.aspx">
<system.web>
<httpRuntime executionTimeout="180"/>
</system.web>
</location>
3-Add command.CommandTimeout = 30000;
4-try to setting the shutdownTimeout value in the httpRuntime section, The default shutdown time of an idle application is 90 seconds.
<httpRuntime maxRequestLength="2147483647" shutdownTimeout="360" executionTimeout="3600"/>