一会就被IIS给终止了,这还这么调戏(试)啊。

     解决方法:进iis后,找应用程序池,然后找到要调试的Sharepont应用程序集的应用程序池,右键,高级设置,在“启用Ping”选项改为False。这样就可以了。

     还有一个地方,就是Ping最大相应时间(秒)改为大于90的时间。

     原文的解释:

     Setting Ping Enabled to False stops IIS from checking whether the worker process is still running and keeps the worker process alive until you stop your debugged process. Setting Ping Maximum Response Time to a large value allows IIS to continue monitoring the worker process.