전체 글
- 2005.12.03 2005.12.07
- 2005.11.19 _ 2 2005.11.26
- 2005.11.19 2005.11.21
- 2005.11.10 2005.11.11
- 범생이 라키.. 2005.11.08
- 민속촌.. 2005.11.01
- "The underlying connection was closed" - WebServices 2005.10.13
- 청계천.. 2005.09.25
- 제주 09.09~09.11 - 모두 모이.. 2005.09.16
- 제주 09.09~09.11 - 셋이라 더좋다.. 2005.09.16
2005.12.03
2005.11.19 _ 2
인사동..
이유진님..
경복궁..
나디아님..
'일상' 카테고리의 다른 글
Mac OSX On Intel (0) | 2006.04.15 |
---|---|
2005.12.15 토깽이~ (0) | 2005.12.20 |
2005.11.19 (0) | 2005.11.21 |
2005.11.10 (0) | 2005.11.11 |
토깽이 모임 (0) | 2005.07.18 |
2005.11.19
'일상' 카테고리의 다른 글
2005.12.15 토깽이~ (0) | 2005.12.20 |
---|---|
2005.11.19 _ 2 (0) | 2005.11.26 |
2005.11.10 (0) | 2005.11.11 |
토깽이 모임 (0) | 2005.07.18 |
개와 늑대 사이의 시간 (0) | 2005.07.11 |
2005.11.10
하늘도 보고..
불장난도 하고..
풀도 보고..
땀도 좀 식히고..
'일상' 카테고리의 다른 글
2005.11.19 _ 2 (0) | 2005.11.26 |
---|---|
2005.11.19 (0) | 2005.11.21 |
토깽이 모임 (0) | 2005.07.18 |
개와 늑대 사이의 시간 (0) | 2005.07.11 |
예전엔 안그랬는데.. (0) | 2005.06.28 |
범생이 라키..
'사진' 카테고리의 다른 글
민속촌 방문 - 3번째 (0) | 2006.05.07 |
---|---|
2005.12.03 (0) | 2005.12.07 |
민속촌.. (0) | 2005.11.01 |
청계천.. (0) | 2005.09.25 |
제주 09.09~09.11 - 모두 모이.. (0) | 2005.09.16 |
민속촌..
'사진' 카테고리의 다른 글
2005.12.03 (0) | 2005.12.07 |
---|---|
범생이 라키.. (0) | 2005.11.08 |
청계천.. (0) | 2005.09.25 |
제주 09.09~09.11 - 모두 모이.. (0) | 2005.09.16 |
제주 09.09~09.11 - 셋이라 더좋다.. (0) | 2005.09.16 |
"The underlying connection was closed" - WebServices
Solving "The underlying connection was closed: An unexpected error occurred on a send." (Webservices)
Sometimes when you invoke a webservice the call fails with the following exception:
System.Net.WebException: The underlying connection was closed: An unexpected error occurred on a send.
at System.Web.Services.Protocols.WebClientProtocol.GetWebResponse(WebRequest request)
at System.Web.Services.Protocols.HttpWebClientProtocol.GetWebResponse(WebRequest request)
at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)
at ...
In some cases the first call to the webservice works just fine, but if in the following few minutes no new call to the webservice is made, the next call would throw the exception shown above. This problem could be solved by altering the generated proxy class; in the GetWebRequest function the KeepAlive property must be set to false. This can be accomplished by following these steps:
- Add a Web Reference using the normal way (if you haven't already added one ofcourse).
- Make sure Show All Files menu item is enable in the Project menu.
- In the Solution Explorer window, navigate to:
- Web References
- <Name of your webservice>
- Reference.map
- Reference.cs (or .vb)
- Reference.map
- <Name of your webservice>
- Web References
- Open the Reference.cs file and add following code in the webservice proxy class:
protected override System.Net.WebRequest GetWebRequest(Uri uri)
{
System.Net.HttpWebRequest webRequest =
(System.Net.HttpWebRequest) base.GetWebRequest(uri);
webRequest.KeepAlive = false;
return webRequest;
}
'Dev > .NET' 카테고리의 다른 글
SerializeToXML - C# (0) | 2009.08.10 |
---|---|
C# Web Service -> REST (0) | 2009.08.09 |
Integrating WCF Services with COM+ (0) | 2008.09.03 |
Interop 응용 프로그램 배포 (0) | 2007.10.05 |
RCW, CCW (0) | 2007.10.04 |
청계천..
10월 1일이 되면 공식적으로 청계천이 복원된다.
날씨가 좋은 탓일까..
사람들이 북적된다.
여기는..
'사진' 카테고리의 다른 글
범생이 라키.. (0) | 2005.11.08 |
---|---|
민속촌.. (0) | 2005.11.01 |
제주 09.09~09.11 - 모두 모이.. (0) | 2005.09.16 |
제주 09.09~09.11 - 셋이라 더좋다.. (0) | 2005.09.16 |
제주 09.09~09.11 - 둘이라 좋다 (0) | 2005.09.16 |
제주 09.09~09.11 - 모두 모이..
'사진' 카테고리의 다른 글
민속촌.. (0) | 2005.11.01 |
---|---|
청계천.. (0) | 2005.09.25 |
제주 09.09~09.11 - 셋이라 더좋다.. (0) | 2005.09.16 |
제주 09.09~09.11 - 둘이라 좋다 (0) | 2005.09.16 |
제주 09.09~09.11 - 홀로찍다.. (0) | 2005.09.16 |
제주 09.09~09.11 - 셋이라 더좋다..
'사진' 카테고리의 다른 글
청계천.. (0) | 2005.09.25 |
---|---|
제주 09.09~09.11 - 모두 모이.. (0) | 2005.09.16 |
제주 09.09~09.11 - 둘이라 좋다 (0) | 2005.09.16 |
제주 09.09~09.11 - 홀로찍다.. (0) | 2005.09.16 |
제주 09.09~09.11 - 한라산.. (0) | 2005.09.13 |