试一试在连接对象中的timeout参数。
还有连接字符串中加入timeout参数,因为这两个地方,好像都带超时参数。
调用数据库的存储过程的commmand也有timeout参数。所以你看看这几个地方的timeout都设置的怎么样?
我估计可能是调用存储过程的command超时。
还有连接字符串中加入timeout参数,因为这两个地方,好像都带超时参数。
调用数据库的存储过程的commmand也有timeout参数。所以你看看这几个地方的timeout都设置的怎么样?
我估计可能是调用存储过程的command超时。
enable="true"
timeout="Infinite"
idleTimeout="Infinite"
shutdownTimeout="0:00:05"
requestLimit="Infinite"
requestQueueLimit="5000"
restartQueueLimit="10"
memoryLimit="60"
webGarden="false"
cpuMask="0xffffffff"
userName="machine"
password="AutoGenerate"
logLevel="Errors"
clientConnectedCheck="0:00:05"
comAuthenticationLevel="Connect"
comImpersonationLevel="Impersonate"
responseRestartDeadlockInterval="00:09:00"
responseDeadlockInterval="00:03:00"
maxWorkerThreads="25"
maxIoThreads="25" />是不是改这里的timeout?应该怎么写?多谢啦各位
反正就是timeout等于一个特别大的数字。1是1秒。2000000是多少?
如果用了的话
那就着样:
localhost.service aa = new localhost.service() //这里是你的webservice
aa.TimeOut = 10000; //这里是你的时间