p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   .NET Web Services (http://p2p.wrox.com/forumdisplay.php?f=102)
-   -   The underlying connection was closed: (http://p2p.wrox.com/showthread.php?t=4586)

jhouse October 4th, 2003 05:22 PM

The underlying connection was closed:
 
occasionally I recieve this error from production enviroment when asp.net call web service, the next call to web service is usually succesful. Error
System.Web.HttpUnhandledException: Exception of type System.Web.HttpUnhandledException was thrown.

---> System.Net.WebException: The underlying connection was closed: An unexpected error occurred on a receive.

   at System.Web.Services.Protocols.WebClientProtocol.Ge tWebResponse(WebRequest request)

   at System.Web.Services.Protocols.HttpWebClientProtoco l.GetWebResponse(WebRequest request)

   at System.Web.Services.Protocols.SoapHttpClientProtoc ol.Invoke(String methodName, Object[] parameters)

   at MySite.MyService.Service1.ProcessUpdates(String ApplicationName, Boolean bUpdateAllData)

   at MySite.MyAspxPage.Sub_CommitTransaction(Object sender, EventArgs e)

   at System.Web.UI.TemplateControl.OnCommitTransaction( EventArgs e)

   at System.Web.UI.Page.ProcessRequestTransacted()

   --- End of inner exception stack trace ---

   at System.Web.UI.Page.HandleError(Exception e)

   at System.Web.UI.Page.ProcessRequestTransacted()

Anyone else had this problem?

MichaelTJ October 9th, 2003 06:12 PM

Do you access any data from SQL? I've had a simmilar(but not same) problem when trying to access a SQL connection that has closed during page load. Quite by accident thou, the SQL server has shutdown just as my page has loaded..


misrasandeep October 13th, 2003 03:19 AM

I got the same problem when I tried to access the web service from .NET (C#) client which was behind a http proxy server.If I access the same web service without using HTTP Proxy ,the calls are successful.There is a remedy for this problem .Just override the method getWebRequest in your reference.cs file .
and add this code
protected override WebRequest GetWebRequest(Uri uri)
        {
            HttpWebRequest webRequest = (HttpWebRequest) base.GetWebRequest(uri);

            webRequest.KeepAlive = true;

            return webRequest;
        }
This can solve the problem


misrasandeep October 30th, 2003 11:23 AM

My old post had an error please consider this,
and add this code to reference.cs
protected override WebRequest GetWebRequest(Uri uri)
        {
            HttpWebRequest webRequest = (HttpWebRequest) base.GetWebRequest(uri);

            webRequest.KeepAlive = false;
            webRequest.ProtocolVersion=HttpVersion.Version10;
            return webRequest;
        }
This can solve the problem



elxifara October 31st, 2003 02:28 PM

Hi all,

I have developed a WebApplication that sends messages to mobile phones by connecting to an integrator platform. I use VB.NET. Although my application seems to connect and authorise ok, right after it sends the message, the connection is broken and I get the System.Net.WebException. The first time I run the app, I get an error on a send, all the subsequent runs fail on the receive, the stack trace is the same, though:

[WebException: The underlying connection was closed: An unexpected error occurred on a receive.]
   System.Web.Services.Protocols.WebClientProtocol.Ge tWebResponse(WebRequest request) +58
   System.Web.Services.Protocols.HttpWebClientProtoco l.GetWebResponse(WebRequest request) +5
   System.Web.Services.Protocols.SoapHttpClientProtoc ol.Invoke(String methodName, Object[] parameters) +183
   WebApplication1.localhost.BrokerService.sendsimple message(simplemessageRequest Request, String& ErrorMessage, Object[]& Failed_MSISDN, Int32& RequestID) in C:\Inetpub\wwwroot\WebApplication1\Web References\localhost\Reference.vb:81
   WebApplication1.WebForm1.Button1_Click(Object sender, EventArgs e) in C:\Inetpub\wwwroot\WebApplication1\WebForm1.aspx.v b:61
   System.Web.UI.WebControls.Button.OnClick(EventArgs e) +108
   System.Web.UI.WebControls.Button.System.Web.UI.IPo stBackEventHandler.RaisePostBackEvent(String eventArgument) +57
   System.Web.UI.Page.RaisePostBackEvent(IPostBackEve ntHandler sourceControl, String eventArgument) +18
   System.Web.UI.Page.RaisePostBackEvent(NameValueCol lection postData) +33
   System.Web.UI.Page.ProcessRequestMain() +1277

I tried the suggested solution, but I still get the same error. Any ideas?


xins January 11th, 2004 10:38 PM

"The underlying connection was closed: An unexpected error occurred on a receive."

hii,
i have the same problem as you. please see this page first for the main problem in .NET web.services :

http://support.microsoft.com/default...en-us%3b819450

well i added thos recommended code but it still has the same error in my program so i add some code and it's works, try this :

private string requestpost(String TheURL,string postdata, String TheProxy)
{
  Uri uri = new Uri(TheURL);
  HttpWebRequest request = (HttpWebRequest) WebRequest.Create(uri);
  string page;
  try
  {
    string postsourcedata=postdata;

    // start added codes
    request.KeepAlive = false;
    request.ProtocolVersion=HttpVersion.Version10;
    request.Method = "POST";
    request.ContentType = "application/x-www-form-urlencoded";
    request.ContentLength = postsourcedata.Length;
    request.Proxy = System.Net.WebProxy.GetDefaultProxy();
    request.AllowAutoRedirect=true;
    request.MaximumAutomaticRedirections=10;
    request.Timeout=(int) new TimeSpan(0,0,60).TotalMilliseconds;
    request.UserAgent="Mozilla/3.0 (compatible; My Browser/1.0)";
    // end added codes

    Stream writeStream = request.GetRequestStream();
    byte[] bytes = System.Text.Encoding.ASCII.GetBytes(postsourcedata );
    writeStream.Write(bytes, 0, bytes.Length);
    writeStream.Close();

    HttpWebResponse response = (HttpWebResponse) request.GetResponse();
    Stream responseStream = response.GetResponseStream();
    StreamReader readStream = new StreamReader (responseStream, Encoding.UTF8);

    page = readStream.ReadToEnd();
  }
  catch (Exception ee)
  {
    page = "fail!";
  }
  return page;
}

hopefully your troubled solved..

regards,

-xins.

(by the way have u watch LORD OF THE RING : RETURN OF THE KING?)
:)

See u in matrix

grhind January 12th, 2004 01:59 PM

How would I go about writing this in VB.NET. What class would it need to be in and what inheritance would I need.

protected override WebRequest GetWebRequest(Uri uri)
        {
            HttpWebRequest webRequest = (HttpWebRequest) base.GetWebRequest(uri);

            webRequest.KeepAlive = false;
            webRequest.ProtocolVersion=HttpVersion.Version10;
            return webRequest;
        }



okll May 16th, 2004 11:51 PM

I campareed two programs reslults-- one is in localhost with aspnet, one is consol program, same programs give different results, why? the firewall can distinguish them?

1st, I use http://localhost/quickstart/howto/sa...ebrequest.aspx
only those pages in local host can be received.
for those pages in internet: back webexception:
System.Net.WebException: The underlying connection was closed: Unable to connect to the remote server.
   at System.Net.HttpWebRequest.CheckFinalStatus()
   at System.Net.HttpWebRequest.EndGetResponse(IAsyncRes ult asyncResult)
   at System.Net.HttpWebRequest.GetResponse()
   at ASP.webrequest_aspx.btnSubmit_Click(Object sender, EventArgs e)

another is almost same program but run in console mode
quickstart/howto/samples/net/WebRequests/clientGET.cs
or
quickstart/howto/samples/net/WebRequests/clientwebexception.cs

I can get right results!

Why? these programs are all .NET 's samples, why give different results?

Who can help me?

if I upload webrequest.aspx to my web site on internet, all OK!

Is it possible for my IIS or proxy server or firewall need some special setting?
------------------

test under VS.NET and C#.net and .NET Frame SDK 1.1, OS is Window 2000 server, IIS 5, and IE 6 as internet explore.



hansiola1 May 24th, 2004 08:51 AM

Hi

Must I use webRequest.KeepAlive = false?
I understand what Microsoft writes on theirs page.
But isn't that a simple solution for a complex situation.
Of course I can skip the use of keep alive but what does that do
for my performance?

I found when minimizing the use of static functions and variables makes the error less frequent.
Is there any more redesign one can do to make the error go away??
And keeping the KeepAlive?

/Hansiola




Quote:

quote:Originally posted by misrasandeep
 My old post had an error please consider this,
and add this code to reference.cs
protected override WebRequest GetWebRequest(Uri uri)
        {
            HttpWebRequest webRequest = (HttpWebRequest) base.GetWebRequest(uri);

            webRequest.KeepAlive = false;
            webRequest.ProtocolVersion=HttpVersion.Version10;
            return webRequest;
        }
This can solve the problem




amitkm July 28th, 2004 10:56 AM

Hi,
I am also getting the same error, while connecting to SQL reporting service which is a web service by itself.

But if I am updating the reference file, and run the .net program which access the webservice, I get the error "HTTP request aborted. Access denied".

When I delete the reference and add a new one that works.
If anybody has a pointer plz help me.

Thanks
Amit

preis October 26th, 2004 08:52 AM

xins please, could you provide me a sample to how can I use it.
Thank you.:)
Quote:

quote:Originally posted by xins
 "The underlying connection was closed: An unexpected error occurred on a receive."

hii,
i have the same problem as you. please see this page first for the main problem in .NET web.services :

http://support.microsoft.com/default...en-us%3b819450

well i added thos recommended code but it still has the same error in my program so i add some code and it's works, try this :

private string requestpost(String TheURL,string postdata, String TheProxy)
{
Uri uri = new Uri(TheURL);
HttpWebRequest request = (HttpWebRequest) WebRequest.Create(uri);
string page;
try
{
    string postsourcedata=postdata;

    // start added codes
    request.KeepAlive = false;
    request.ProtocolVersion=HttpVersion.Version10;
    request.Method = "POST";
    request.ContentType = "application/x-www-form-urlencoded";
    request.ContentLength = postsourcedata.Length;
    request.Proxy = System.Net.WebProxy.GetDefaultProxy();
    request.AllowAutoRedirect=true;
    request.MaximumAutomaticRedirections=10;
    request.Timeout=(int) new TimeSpan(0,0,60).TotalMilliseconds;
    request.UserAgent="Mozilla/3.0 (compatible; My Browser/1.0)";
    // end added codes

    Stream writeStream = request.GetRequestStream();
    byte[] bytes = System.Text.Encoding.ASCII.GetBytes(postsourcedata );
    writeStream.Write(bytes, 0, bytes.Length);
    writeStream.Close();

    HttpWebResponse response = (HttpWebResponse) request.GetResponse();
    Stream responseStream = response.GetResponseStream();
    StreamReader readStream = new StreamReader (responseStream, Encoding.UTF8);

    page = readStream.ReadToEnd();
}
catch (Exception ee)
{
    page = "fail!";
}
return page;
}

hopefully your troubled solved..

regards,

-xins.

(by the way have u watch LORD OF THE RING : RETURN OF THE KING?)
:)

See u in matrix

hape79 March 9th, 2005 04:15 AM

This is an old thread so someone must have an answer to my question.
I am getting the same error as jhause that started this thread 'The underlying connection was closed: An unexpected error occurred on a RECEIVE'
But every advise to this error is a solution to another problem 'The underlying connection was closed: An unexpected error occurred on a SEND'
So if someone knows how to fix the RECEIVE error please post it here.
Since none of the above seems to correct that error for me.
Thanks


sebastiansony June 24th, 2005 12:06 AM

Can U please tell me how can we send SMS from ASP.NET?, Please... Do we need any 3rd party support..?


Dinesh Singh Bisht August 17th, 2005 11:19 PM

Hi All,
 this "The underlying connection was closed" often comes when you access the something of which you don't have access.


DSBisht

kallax October 12th, 2005 09:19 AM

Hi guys,

I had the same problem as okll and found that the ACLs on the target file were too restrictive. (Thanks for the help, Dinesh!) Unfortunately this has not solved the problem, though. I am still on the trail....

kallax October 12th, 2005 11:46 AM

SOLUTION?

I wrote a utility to test the faulty sites: it is a winforms application, and returns "407: remote proxy requires authentication". I hope this is of help.


amit211278 November 1st, 2005 12:26 AM

Hi all,

I am also getting the same problem "System.Net.WebException: The underlying connection was closed: An unexpected error occurred on a receive."
I have installed the client certificate on my development maching(Window XP). i m using the following code..

HttpWebResponse result = null;

            //System.Web.UI.Page obj = new System.Web.UI.Page();

            try
            {

                HttpWebRequest req = (HttpWebRequest)WebRequest.Create(m_url);
                req.Credentials = CredentialCache.DefaultCredentials;

                ///Method1
                //req.ClientCertificates.Add(X509Certificate.CreateF romCertFile("D:\\Temp\\cert\\c1.cer"));

                ///Method2
                ///Uses interop services
                MyCerts mycert = new MyCerts();
                mycert.CertName = certName;

                if(mycert.Init() > 0)
                {
                    req.ClientCertificates.Add(mycert[0]);
                }

                try
                {
                    result = (HttpWebResponse)req.GetResponse();
                }
                catch (WebException ex)
                {
                    if (ex.Status == WebExceptionStatus.ProtocolError)
                    {
                        HttpWebResponse response = ex.Response as HttpWebResponse;
                        if (response != null)
                        {
                            result = response;// (HttpWebResponse)req.GetResponse();
                        }
                    }

                }

                Stream ReceiveStream = result.GetResponseStream();
                Encoding encode = System.Text.Encoding.GetEncoding("utf-8");

                StreamReader sr = new StreamReader( ReceiveStream, encode );

                Char[] read = new Char[256];
                int count = sr.Read( read, 0, 256 );
                return mycert[0];
            }
            catch//(WebException e)
            {
                return null;
            }
            finally
            {
                if ( result != null )
                {
                    result.Close();
                }

            }
            return null;



//this function is working fine it returns the certificate from my machine
public int Init()
        {

            Microsoft.Web.Services2.Security.X509.X509Certific ateStore store =
                Microsoft.Web.Services2.Security.X509.X509Certific ateStore.LocalMachineStore(Microsoft.Web.Services2 .Security.X509.X509CertificateStore.MyStore);
            store.OpenRead();
            // Looks for the first certificate called SecureMathClient in the Local
            // machine store
            Microsoft.Web.Services2.Security.X509.X509Certific ateCollection col = (Microsoft.Web.Services2.Security.X509.X509Certifi cateCollection)store.FindCertificateBySubjectStrin g(certName);
            X509Certificate cert = null;
            try
            {
                cert = col[0] ;
                m_certs = col;
                string s = col[0].GetName();
            }
            catch (Exception ex)
            {
                throw new Exception("Certificate not Found!");

            }
            return m_certs.Count;
        }

i m getting the exception at (HttpWebResponse)req.GetResponse();.....
Any idea!!!!!!!!!

Thanks
Amit


redbrad0 November 20th, 2005 12:09 PM

We are having the same problem..

Error Message
The underlying connection was closed: An unexpected error occurred on a receive

Code
byte[] data = System.Text.Encoding.ASCII.GetBytes(strPOST);
WebRequest request = WebRequest.Create(URL);
request.ContentType = "application/x-www-form-urlencoded";
request.Method = "POST";
request.ContentLength = data.Length;
request.Timeout = 120000;

The error occurs on the red line. Does anyone have a fix?


JordanGD December 16th, 2005 09:42 AM

Hi all,

I have a problem with code above:
    protected override WebRequest GetWebRequest(Uri uri)
    {
       HttpWebRequest webRequest = (HttpWebRequest) base.GetWebRequest(uri);
       webRequest.KeepAlive = false;
       webRequest.ProtocolVersion=HttpVersion.Version10;
       return webRequest;
    }
When I added the code to Reference.cs and I started the application it throws
System.Net.WebException: The request failed with HTTP status 401: Access Denied.

I'm using Windows Authentication. And the following code to call the web service:
    testService.Service service = new WindowsApplication1.testService.Service();
    service.Credentials = CredentialCache.DefaultCredentials;
    label1.Text = service.HelloWorld();

Anyone else had this problem?


vmattila December 30th, 2005 06:59 AM

I encounter this error when trying to add a web reference. Pointing the wizard to correct URL (that resides in another place at the Internet, not on our intranet nor my local workstation), I get error "The underlying connection was closed" to the right side of the wizard and to the main, "large" window IE's error screen.

When I go to the WSDL address via IE directly, I will see the WSDL file properly. After one visit at WSDL address with IE, the Web Reference wizard is able to show the contents of WSDL in main window, but doesn't show up any services to the right "Methods" window. The underlying connection was closed -error remains up there.

I'm not behind a proxy at all, so it should not be a proxy issue. Trying to close the firewall doesn't help either.

Any ideas?

Thanks,
Ville


SQLMaster January 3rd, 2007 11:22 PM

Hi,

I just wanted to add the info that xins' suggestion was the one that helped me out in my VS2005 environment!

From the suggestion I've added:

        req.ProtocolVersion = HttpVersion.Version10
        req.ContentType = "application/x-www-form-urlencoded"
        req.Proxy = System.Net.WebProxy.GetDefaultProxy()
        req.AllowAutoRedirect = True
        req.MaximumAutomaticRedirections = 10
        req.UserAgent = "Mozilla/3.0 (compatible; My Browser/1.0)"

... and now everything is working fine.

Thanks a lot for this suggestion!

The internet gives and the internet takes!

Yours,
Raisor

s8sopr4 January 4th, 2007 05:08 AM

Hi, I have the exception:System.Net.WebException: The underlying connection was closed: Unable to connect to the remote server.

The code is:
Dim URL As String = sRemoteServer
Dim request As HttpWebRequest = WebRequest.Create(URL)
request.Method = "POST"
Dim writer As New System.IO.StreamWriter(request.GetRequestStream())
writer.Write(sParameters)
writer.Close()

Dim response As HttpWebResponse = request.GetResponse()
Dim reader As New System.IO.StreamReader(response.GetResponseStream( ))
Dim str As String = reader.ReadLine()


Could anyone help me, please?
Thanks in advance.


s8sopr4 January 4th, 2007 05:13 AM

I'd like to specify I made a web application, not a web service.


SQLMaster January 4th, 2007 06:19 AM

Hi,

I'm using this in a class and it returns the response string:


    Protected Const ORDERENVIRONMENT As String = "http://www.anyserver.com/order.aspx?ID="

    Protected Function ProcessOrder(ByVal theID as Long, ByVal p1 as String, ByVal p2 as String) As String
        Dim reqStrg As String = String.Empty
        Dim req As System.Net.HttpWebRequest
        Dim res As System.Net.HttpWebResponse
        Dim sr As System.IO.StreamReader
        Dim s As System.IO.Stream
        Dim b As Byte()
        Dim myResult As String = String.Empty
        req = System.Net.WebRequest.Create(ORDERENVIRONMENT + theID.ToString())
        reqStrg = "param1=" + Server.UrlEncode(p1) + "&"
        reqStrg += "param2=" + Server.UrlEncode(p2)
        b = System.Text.Encoding.ASCII.GetBytes(reqStrg)
        req.Method = "post"
        req.ContentType = "application/x-www-form-urlencoded"
        req.KeepAlive = False
        req.Timeout = 30000
        req.ProtocolVersion = HttpVersion.Version10
        req.ContentType = "application/x-www-form-urlencoded"
        req.Proxy = System.Net.WebProxy.GetDefaultProxy()
        req.AllowAutoRedirect = True
        req.MaximumAutomaticRedirections = 10
        req.UserAgent = "Mozilla/3.0 (compatible; My Browser/1.0)"
        req.ContentLength = b.Length
        s = req.GetRequestStream()
        s.Write(b, 0, b.Length)
        res = req.GetResponse()
        sr = New System.IO.StreamReader(res.GetResponseStream())
        myResult = sr.ReadToEnd
        sr.Close()
        res.Close()
        Return myResult
    End Function

Hope this is what you're looking for.

The internet gives and the internet takes!

Yours,
Raisor

nilang19 March 1st, 2007 09:00 AM

following link may be useful

http://nilangshah.wordpress.com/2007...remote-server/

Dheeraj_ahuja March 20th, 2007 11:50 AM

two things to check...
first is check if you are making ur web-service which is behind SSL.
it can be checked by opening inetmgr and go to properties for ur web site and check for directory security tab. here u wll find secure communications and an edit button. jst click on edit and make the setting "require ssl" to uncheckd and the try.
second : jst check your code in the web-service proxy which is being used by ur asp.net application. if "http" is thr then make it https if u want secure communcations

its jst an exp. m sharing here thr might be some other causes too.. :-)



tababar June 18th, 2007 12:44 PM

The underlying connection was closed: An unexpected error occurred on a receive.

I am still having the same error. i have tried all the code samples mentioned above but did not find any solution. I am accessing the outlook address book (exchange server) from my asp.net/C# code but getting the error on the following function

using (HttpWebResponse response = (HttpWebResponse) request.GetResponse())
       return response.Cookies;


F1 F1 plz

olupenko September 20th, 2007 06:52 AM

Hi,

I still have this problem, when i tried many of the codes here the error changed to "remote server failed: 404 file not found"

I am trying to call a perl script from my .NET 1.1 code, this worked fine before firewall were turned on, but then I started getting these errors when the firewall was turned on on my IIS 6.0 server

Can anyone help?

Quote:

quote:Originally posted by tababar
 The underlying connection was closed: An unexpected error occurred on a receive.

I am still having the same error. i have tried all the code samples mentioned above but did not find any solution. I am accessing the outlook address book (exchange server) from my asp.net/C# code but getting the error on the following function

using (HttpWebResponse response = (HttpWebResponse) request.GetResponse())
       return response.Cookies;


F1 F1 plz

olupenko September 20th, 2007 07:03 AM

Hi How can I do this in .Net 1.1 for example .Net 1.1 does not accept this line of code
request.ProtocolVersion=HttpVersion.Version10;

Any ideas?


Quote:

quote:Originally posted by xins
 "The underlying connection was closed: An unexpected error occurred on a receive."

hii,
i have the same problem as you. please see this page first for the main problem in .NET web.services :

http://support.microsoft.com/default...en-us%3b819450

well i added thos recommended code but it still has the same error in my program so i add some code and it's works, try this :

private string requestpost(String TheURL,string postdata, String TheProxy)
{
  Uri uri = new Uri(TheURL);
  HttpWebRequest request = (HttpWebRequest) WebRequest.Create(uri);
  string page;
  try
  {
    string postsourcedata=postdata;

    // start added codes
    request.KeepAlive = false;
    request.ProtocolVersion=HttpVersion.Version10;
    request.Method = "POST";
    request.ContentType = "application/x-www-form-urlencoded";
    request.ContentLength = postsourcedata.Length;
    request.Proxy = System.Net.WebProxy.GetDefaultProxy();
    request.AllowAutoRedirect=true;
    request.MaximumAutomaticRedirections=10;
    request.Timeout=(int) new TimeSpan(0,0,60).TotalMilliseconds;
    request.UserAgent="Mozilla/3.0 (compatible; My Browser/1.0)";
    // end added codes

    Stream writeStream = request.GetRequestStream();
    byte[] bytes = System.Text.Encoding.ASCII.GetBytes(postsourcedata );
    writeStream.Write(bytes, 0, bytes.Length);
    writeStream.Close();

    HttpWebResponse response = (HttpWebResponse) request.GetResponse();
    Stream responseStream = response.GetResponseStream();
    StreamReader readStream = new StreamReader (responseStream, Encoding.UTF8);

    page = readStream.ReadToEnd();
  }
  catch (Exception ee)
  {
    page = "fail!";
  }
  return page;
}

hopefully your troubled solved..

regards,

-xins.

(by the way have u watch LORD OF THE RING : RETURN OF THE KING?)
:)

See u in matrix

yao__junjie December 24th, 2008 04:56 AM


I met this problem these days.And I found that
if Client's System Time is defferent from Server's System Time,a exception will be thrown.

"The underlying connection was closed: An unexpected error occurred on a receive."
Hope It works for you.

quangvo March 24th, 2009 08:54 PM

RE: The underlying connection was closed
 
This appear to be a webservices error. There is a tool you can use to track the activity of the service call (TcpTrace).

Check out this page for more detail http://connectionstringexamples.com/...nection-closed.

Vince5211 May 13th, 2010 08:58 AM

New Member
 
Hi, i am a new member here.

Great to be part of this. The info here really help alot.

bob.marty January 5th, 2011 12:35 PM

sipVoipSdk
 
I had the similiar problem and finally I found solution:
www.sipVoipSdk.com

SivakumarNatarajan September 21st, 2011 04:26 PM

RE: The underlying connection was closed
 
It may also due to limit on DataContractSerializer with no. of items to serialize/deserialize

You can confirm this by turning on WCF logging with below entries:

<diagnostics>
<messageLogging logEntireMessage="true" logMalformedMessages="true" logMessagesAtTransportLevel="true" logMessagesAtServiceLevel="true" />
</diagnostics>

<system.diagnostics>
<sources>
<source name="System.ServiceModel" switchValue="All">
<listeners>
<add name="messages"
type="System.Diagnostics.XmlWriterTraceListener"
initializeData="c:\logs\messages.svclog" />
</listeners>
</source>
</sources>
</system.diagnostics>

If it's due to that limitation, you can increase the limit as given in this link:
http://social.msdn.microsoft.com/For...-5926b6cc527c/

All the best..

Siva Natarajan


All times are GMT -4. The time now is 08:21 PM.

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.