將Exception錯誤訊息寫入GW,但發生錯誤
System.Net.WebException: 無法連接至遠端伺服器 ---> System.Net.Sockets.SocketException: 連線嘗試失敗,因為連線對象有一段時間並未正確回應,或是連線建立失敗,因為連線的主機無法回應。 172.17.122.55:80 於 System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress) 於 System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Exception& exception) --- 內部例外狀況堆疊追蹤的結尾 --- 於 System.Net.HttpWebRequest.GetRequestStream(TransportContext& context) 於 System.Net.HttpWebRequest.GetRequestStream() 於 _exRate.GwExceptionLog.Post2(String url, String data) 於 http://server/exRate.aspx.cs: 行 139 於 _exRate.GwExceptionLog.SetExceptionLog(String Source, String Version, String LogLevel, String IDNO, String URL, String Function, String Exception, String Message) 於 http://server/exRate.aspx.cs: 行 110 於 _exRate.writeException2GW(String ex, String exMessage) 於 http://server/exRate.aspx.cs: 行 47
更新
幣 別買價賣價