未处理的soapexception
Server was unable to process request. ---> Timeout expired.  The timeout period elapsed prior to obtaining a connection from the pool.  This may have occurred because all pooled connections were in use and max pool size was reached.在调用webservice时,3秒调用一次,一段时间后就出现这个问题请大家指教

解决方案 »

  1.   

    從異常描述來看,3秒調用一次WebService提供的服務,而你的WebService中被調用的方法中有連接數據庫相關的代碼,每次都增加一個和數據庫保持會話的連接對象,導致達到連接池默認的最大連接數,後面的用戶無法再進行連接。(超時),lz不妨檢查一下WebService方法中的代碼看看。
      

  2.   

    看看是否有SqlConnection和SqlDataReader對象沒有及時close掉的緣故