nga96() ,可不可以给多点建议?

解决方案 »

  1.   

    1,延时是不是必须的,有没有办法优化,如果可以,首先应该改善remoting的延时问题。
    2,如果remoting延时是必须的,则考虑使用异步执行,简单的办法是:
    a,前端调用只是写一条调用请求的记录到数据库(sessionid,functionname,其他必须数据)
    b,webserver 使用webservice或其他程序,定时检测数据库,发现有调用请求则使用remoting取得结果写回数据库。
    c,前端代码设定5分钟后刷新一次,(使用javascript:settimeout),发现有结果就显示结果,没有发现就报错或其他处理。
      

  2.   

    AI Server是什么服务器?在叙述中似乎并没有提到#3的SQL Server服务器,它对这个问题有什么关系?    对于这个Asp.net的错误,问题有好几种可能性。只是简单的调用了一次.Net Remoting,还是在频繁调用的时候出现?我建议将调用Remoting的代码转移到一个新的Winform程序里面,看看问题是否出现。这样就可以确认是否跟Asp.net程序有关。
      

  3.   

    找到方法了,还是设置的问题,希望对大家有所帮助:
    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
      

  4.   

    To redbb(....Dotneter....欢迎猎头与我联系...)AI Server是一台运行人工智能程序的服务器,消耗资源大(其实我也不知道它在干些什么,呵呵)。
    置于Database则是Web Server和AI Server都会访问的,但问题不在这台服务器,所以我就没有怎么提它。谢谢各位的关注!