我已将应用程序的超时设置为540
,如下所示:
<system.web>
<authentication mode="None" />
<sessionState timeout="540" />
<customErrors mode="Off" />
<compilation targetFramework="4.5" debug="true" />
<pages controlRenderingCompatibilityVersion="4.0" />
</system.web>
IIS超时设置为20(我无法触摸此部分,因为它位于共享服务器上)。
每次运行应用程序时,它会在20分钟后断开连接,我认为这是由于IIS超时。
如何覆盖IIS超时以适应我的web.config超时? 在我的计算机上(我可以控制IIS超时),它运行良好,但不在服务器上。
谢谢大家。