Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3606058
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T21:12:04+00:00 2026-05-18T21:12:04+00:00

I had a web service written in .NET 2.0 that expose some web methods.

  • 0

I had a web service written in .NET 2.0 that expose some web methods. This service is consumed by client application written with .NET 1.1 some years ago. The client application can’t be converted at this point.

I have recently “upgraded” the web service project to .NET 4.0 as I’ve started using VS2010 and wanted to use the new features. As the client can’t be upgraded I can’t convert the web service to WCF, so the code itself is not changed at all. Same web service, same web methods.

In general it’s working fine, and in the beginning I couldn’t see any problem.

However, my log system is showing huge increase in “An unexpected error occurred on a receive” errors that happen when the client consume the web service – if for example it used to be once a week, it’s now throwing those errors 10-20 times per day.

There are around 50 clients doing thousands of requests per day in total.

It does not happen in specific method and can’t be reproduced to specific action made by some client.

Part of the Stack trace:

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)

Does anyone have any idea what might cause this increase? Any way to reduce it without converting the whole thing to WCF?

On second thought, this might also be caused because of installing the .NET 4.0 on the server, so I’m not sure rolling back the web service DLL to the old version will be any good.

The full error message is actually:

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

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-18T21:12:05+00:00Added an answer on May 18, 2026 at 9:12 pm

    Here is a list of breaking changes for ASP.NET 4: http://www.asp.net/learn/whitepapers/aspnet4/breaking-changes, and also here: .NET Framework 4 Migration Issues

    The only interesting piece I see in there would be the ASP.NET Request Validation chapter. Now validation also apply to web services.

    I would try the requestValidationMode="2.0".

    Otherwise there is a full list of ideas here: kb915599 but it’s not related to the changes between .NET 4 and .NET 2.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I once found a web site that had some 'Requires .net 1.0', 'Requires .net
I had a problem getting a VB.NET web service client to receive the response
I have an ASP.NET 4 web application that references a SOAP web service. I
I have written a java axis2 1.4.1 web service and .net 3.5 WCF client
I had a .asmx web service that check parameters of soap header like this:
I have this error appearing in my web service and even though I'v had
I had this error when I browse new web site that site sub from
I've just published a web service and written up some fairly primitive documentation. I've
I've just written (in Perl) a simple web service that displays a web form
I had an existing WCF web service that contains three WebGet handlers in one

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.