第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

關于上海移動企信通的empp.dll的Com組件導致IIS“Service Unavailable”

關于上海移動企信通的empp.dll的Com組件導致IIS“Service Unavailable”

搖曳的薔薇 2018-12-06 18:46:20
//連接短信發(fā)送服務器 emptcl empp = new emptclClass(); ConnectResultEnum result = empp.connect(host, port, accountId, password); if (empp == null || !empp.connected) { return "連接失敗"; } ShortMessage shortMsg = new ShortMessageClass(); shortMsg.srcID = accountId; //獲取發(fā)送短信者ID shortMsg.needStatus = true; //獲取是否返回狀態(tài)報告標志 Mobiles mob = new MobilesClass(); string[] sendMobiles = mobiles.Trim('|').Split('|'); foreach (string sendMobile in sendMobiles) { mob.Add(sendMobile); } shortMsg.DestMobiles = mob; //發(fā)送的手機號 shortMsg.content = contents; //短信內(nèi)容 shortMsg.SendNow = true; //設置是否立即發(fā)送短信標志 //發(fā)送短信 empp.submit(shortMsg); //對象用于實現(xiàn)發(fā)送短信后,接受到的返回信息的處理 SubmitResp submitResp = new SubmitRespClass(); int doResult = -1; Int32.TryParse(submitResp.Result.ToString(), out doResult); if (doResult == 0) { mob.RemoveAll(); return "成功"; } else { return "失敗"; } empp.disconnect(); 上面就是主要的代碼,寫在了一個Webservice里面,平均5天左右就會導致服務掛掉,求大神指教!
查看完整描述

1 回答

?
富國滬深

TA貢獻1790條經(jīng)驗 獲得超9個贊

設置一下進程池 2天自動回收一下 這個是因為內(nèi)存泄漏!
查看完整回答
反對 回復 2018-12-09
  • 1 回答
  • 0 關注
  • 408 瀏覽

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網(wǎng)微信公眾號