nga96() ,可不可以给多点建议?
解决方案 »
- 看来就有分啊 dottrace 使用问题 帮帮我吧!
- 大家来看看这个有关虚函数的问题
- 我的ActiveX发布问题!!
- 急!c#调用c++写的dll,如何传递一维数组作为参数
- C#发送数据到串口,出错:给定的端口名称未以 COM/com 开头或未解析为有效的串行端口
- 一个关于异步HttpListener的问题
- asp.net程序出错问题
- 一个关于读取XML元素的属性的问题
- 求好的C#写的论坛源代码
- sql语句中的日期/时间值的比较,埃老是出现语法错误-操作符丢失,帮忙看看。
- 在页面中加了个个HTMLTABLE,运行时说"object reference not set to an instance of an object",这是为什么?如何解决?在线立结
- 請教原因何在???在線等待
2,如果remoting延时是必须的,则考虑使用异步执行,简单的办法是:
a,前端调用只是写一条调用请求的记录到数据库(sessionid,functionname,其他必须数据)
b,webserver 使用webservice或其他程序,定时检测数据库,发现有调用请求则使用remoting取得结果写回数据库。
c,前端代码设定5分钟后刷新一次,(使用javascript:settimeout),发现有结果就显示结果,没有发现就报错或其他处理。
http://www.dotnet247.com/247reference/msgs/21/106511.aspxWell, I might as well reply to my own question. Maybe someone else will
find it usefull. After some walking around in the config files
(machine.config) I found this:<processModel 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"/>Just change responseDeadlockInterval to 00:10:00 like this:<processModel 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:10:00" maxWorkerThreads="25"
maxIoThreads="25"/>And the case is closed...One small tip: If you have to change this to work in a multiuser
environment, there is something wrong with your code and/or your
application's architecture. I used it to be able to write a dbase
synchronisation module... (full dbase, between Access and SQL-Server)Regards,
Tim Musschoot
置于Database则是Web Server和AI Server都会访问的,但问题不在这台服务器,所以我就没有怎么提它。谢谢各位的关注!