.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

The operation failed because an unexpected error occurred. (Result Code: 0x81071003)

Posted By:      Posted Date: October 19, 2010    Points: 0   Category :SharePoint

Hi all,  I have a SINGLE web service that I call through two different programs.  I input the same values into the service and call a sevice method.  One call fails every time, one call works every time.  I have installed Fiddler2 and copied the requests and responses from each.  They are identical except for the [VsDebuggerCausalityData] header value and the [Authorization:] value (data below)  what is this error? What can I do to address it? Why does it work for one app, but not the other when the requests are the same.  I guess since the Authorization is different it could be a security problem. But I'm not so sure because I'm not getting a security type error.  The first trace is the working example (look at the response) the second is the failing call.  I have changed the Authorization values.

POST http://kerryportal/global/DMS/CRM/_vti_bin/Lists.asmx HTTP/1.1
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; MS Web Services Client Protocol 2.0.50727.4952)
VsDebuggerCausalityData: uIDPo+bNI0fMARFBsgZwKLhVCEUBAAAA2xBAL4gjpUWSP4dBtR8U/4q2nB9UKJVFvuCo3qZaaXUACQAA
Content-Type: text/xml; charset=utf-8
SOAPAction: "http://schemas.microsoft.com/

View Complete Post

More Related Resource Links

.NET Framework 4 Final Result: Installation failed with error code: (0x80070643)


While trying to install Microsoft Visual Studio 2010 i got some errors on .NET framework 4.0, so i tried the standalone .NET 4 installer from microsoft and i got these errors.

MSI (H:\8c4b5e7f61c15fc5cf9e70de2e\netfx_Extended_x86.msi) Installation failed. Msi Log: Microsoft .NET Framework 4 Setup_20100924_134502282-MSI_netfx_Extended_x86.msi.txt
[9/24/2010, 13:51:7]PerformOperation returned 1603 (translates to HRESULT = 0x80070643)

[9/24/2010, 13:51:7] Action complete

[9/24/2010, 13:51:7]OnFailureBehavior for this item is to Rollback.

[9/24/2010, 13:51:7] Action complete

[9/24/2010, 13:51:7]Final Result: Installation failed with error code: (0x80070643), "Fatal error during installation." (Elapsed time: 0 00:06:05).

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


I am consuming a third party web service wsdl using my .net aps.net page. And I am getting following error message. Cannt get to resolve it. Its working on my machine but not in my development machine. I have installed the certificate also in certificates on that machine. Can somone please help.?

Error -->  The underlying connection was closed: An unexpected error occurred on a send.





ASMX ws: An unexpected error occurred on a receive; failing intermittently



we I have asmx web service, this seems to be working fine for 25 client machines but one site keeps failing. The client gets a small dataset and tries to send it across to server to process. The dataset saved in XML file only makes 450 - 550kB. The web service is contacted twice in a short time every half an hour. The other smaller dataset (50kB) goes across everytime without any troubles. This site is not trying to send the biggest dataset, other site are sending much bigger datasets without problem. The catch is this failing site keeps retrying for 20 times (10 hours) in average and then eventually goes across. I don't think the service webmethod is erroring out as that is all wrapped up in the try and catch and the exception is not getting thrown, also every other try for the exact same webmethod used by any other client site seems to be working fine.

System.Net.WebException: The underlying connection was closed: An unexpected error occurred on a receive. ---> System.IO.IOException: Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host. ---> System.Net.Sockets.SocketException: An existing connection was forcibly closed by the remote host
   at System.Net.Sockets.Socket.Receive(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags)
   at System.Ne

Custom tool error: Failed to generate code for the service reference 'CompanyService'. Please che


A little background because I feel I have an out of the ordinary architecture in place and don't know if this is contributing to the problem. 

We have an existing ASP.net application that is undergoing expansion.  The new functionality is all written in Silverlight 4.  As part of that expansion I gutted all the old Linq to SQL and put Entity Framework 4 into place.  To do this I created a standard .net Class Library and added my edmx files there.  Naturally, the business entities created by this cannot be used in Silverlight.  So I created a Silverlight Class Library and added all the business entities to that Silverlight Class Library as linked files.  I changed the name space to be the same.

So I have the following assembly / namespaces

Company.Project.Dal.csproj / Company.Project.Entities (.net 4 class library)

Company.Project.Entities.csproj / Company.Project.Entities (SL4 class library)

With this architecture I was able to share my business entities with my SL enabled web services, my asp.net projects, my silverlight projects.  Really it's a beautiful thing.

Once this was done I added "message" classes to Company.Project.Dal and again shared them with the other entites using linked files.  These messages are things like MyObjectRequest; they are class

'An unexpected error has occurred' on upload after changing limit



I recently changed the max upload size for attachments to TFS work items on our SharePoint site.  I did this by going to the http://tfsserver1:8080/tfs/ProductCollection/WorkItemTracking/v1.0/ConfigurationSettingsService.asmx?op=SetMaxAttachmentSize URL and entering the new size in bytes.

This worked a treat, but not I cannot upload any documents to another site on the same server.

I can open and save documents that are already there, but when I click the 'Upload' button it gives a white page with 'An unexpected error has occurred.' on it.

Is there something else I have to set when I increase the upload limit for work items?


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

Hello Guys,         I am getting following exception while web service (ASMX) is returning the response. <!-- [if gte mso 10]> <mce:style> System.Net.WebException: The underlying connection was closed: An unexpected error occurred on a receive.     <!-- [if gte mso 10]> <mce:style>                                                     InnterException (System.IO.Exception): "Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host."       I think either the Asp.net web server is closing the connection or the response is too long.   Following is my simple code.    1)   namespace JFA.IndiePay.BusinessAccess { public class VerTexProcessor { public DataSet ProcessVerTexForBatch(DataSet dsInputRequest) { DataSet dsResponse = new DataSet(); //Call vertex web service here. VertexService.Service texCalculator = new VertexService.Service(); texCalculator.Timeout = 500000;

An exception occurred during the operation, making the result invalid

Hi I am using WCF services with WPF, both are .net 4 versions. I am calling asynchronously, During method calls, sometimes I get the following error Void RaiseExceptionIfNecessary()---An exception occurred during the operation, making the result invalid. Check InnerException for exception details. at System.ComponentModel.AsyncCompletedEventArgs.RaiseExceptionIfNecessary() I tried alot to find the reason , but unable to find as it is unpredictable and inconsistent. Seeking for kind help from WCF guruzzz... Regards Zee

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

Hi All,   i have developed a web application to call WCF service (which is hosted in IIS) from client application using .Net 1.1 it works fine.   but i got an error "The underlying connection was closed: An unexpected error occurred on a receive." when the return object is getting complex.   i analysis the issue with different level of object complexity and i found it get failed for following structure.   eg:   ObjectA - outer object that has some primitive data types and the list of ObjectB ObjectB - this also contain some primitive data and list of ObjectC.   Hope you can understand the hierarchy (complexity) of the return object. This works up to 2nd level of object hierarchy.   Does anyone have idea about the solution for this exception?   Thanks in Advance Shazvi

Failed to add relation(s) Unexpected error

I am getting the following error message when using the Data Source Configuration Wizard in Visual Studio 2008 to create a connection to a MySQL database.Failed to add relation(s) Unexpected error.I have found a KB article (KB954740) on the problem, but can not seem to find the fix.I have just started using Visual Studio but I am knowledgeable with VB from many years of work in Microsoft Access.Thanks in advance for any help you may provide,Ricky HicksMicrosoft Access MVP 2005, 2006, 2007, 2008, 2009 Ricky Hicks

hotfix 3024 error code 1603 - failed install

Hello experts - Installing sql server 2005 on a 2 node cluster and failed with the above error.  I see lots of posts regarding this error, but no answers.  A search of the registry reveals no 3024 entries. Any help appreciated - DianneDianne

Integrated SSRS and kerberos working great.But one user gets An unexpected error occurred while conn

I have this one user who can access SharePoint with no problems otherwise but is getting errorAn unexpected error occurred while connecting to the report server When they try to access an SSRS reports I confirmed he has access. Client issue? AD Account issue?Thanks.

Server failed with error code 0xc0000000 to spawn a thread to process a new login or connection

Hello All, Suddenly, the sql server is down, in the log file, C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\LOG\ERRORLOG, I found the record as follows, 2007-03-05 15:40:31.59 Logon       Error: 17189, Severity: 16, State: 1.2007-03-05 15:40:31.59 Logon       SQL Server failed with error code 0xc0000000 to spawn a thread to process a new login or connection. Check the SQL Server error log and the Windows event logs for information about possible related problems. [CLIENT:] What else I can do to further investigate? Thanks Spencer

.NET Framework 4.0 -- Installation failed with error code: (0x80070658), "Error applying transforms.

I’m getting the following error when installing .NET 4.0.   Final Result: Installation failed with error code: (0x80070658), "Error applying transforms. Verify that the specified transform paths are valid"   These are the steps I took to try and solve the problem but no luck:   1.       Uninstalled all versions of .NET 2.       Ran the .NET Cleanup Tool 3.       Installed .NET 4.0 but it failed   Any ideas?   Here is the last part of the log file with error at the bottom:   [9/7/2010, 14:41:57]calling PerformAction on an installing performer [9/7/2010, 14:41:57] Action: Performing actions on all Items... [9/7/2010, 14:41:57]Wait for Item (RGB9RAST_x86.msi) to be available [9/7/2010, 14:42:0]RGB9RAST_x86.msi is now available to install [9/7/2010, 14:42:0]Creating new Performer for MSI item [9/7/2010, 14:42:0] Action: Performing Action on MSI at C:\DOCUME~1\adelgadi\LOCALS~1\Temp\Microsoft .NET Framework 4 Setup_4.0.30319\RGB9RAST_x86.msi... [9/7/2010, 14:42:0]Log File C:\DOCUME~1\adelgadi\LOCALS~1\Temp\Microsoft .NET Framework 4 Setup_20100907_144152567-MSI_RGB9RAST_x86.msi.txt does not yet exist but may do at Watson upload time [9/7/2010, 14:42:0]Calling MsiInstallProduct(C:\DOCUME~1\adelgadi\LOCALS~1\Temp\Microsoft .NET Framework 4 Setup_4.0.3

An OLE DB error has occurred. Login failed for user

Hi there. I am setting up my first SSIS package and have no problem debugging in BIDS, i.e. Package runs from end to end without any errors.  However, when I schedule the job in the SQL Server Agent, it fails at what seems to be the login to the source server.  A section of the error text as below:- Code: 0xC0202009     Source: Package1 Connection manager "SourceConnectionOLEDB"     Description: SSIS Error Code DTS_E_OLEDBERROR.  An OLE DB error has occurred. Error code: 0x80040E4D.  An OLE DB record is available.  Source: "Microsoft SQL Server Native Client 10.0"  Hresult: 0x80040E4D  Description: "Login failed for user 'tsmreports'.".  End Error  Error: 2010-09-09 13:52:01.38     Code: 0xC020801C     Source: Data Flow Task 1 Source - AccountPeriod [1]     Description: SSIS Error Code DTS_E_CANNOTACQUIRECONNECTIONFROMCONNECTIONMANAGER.  The AcquireConnection method call to the connection manager "SourceConnectionOLEDB" failed with error code 0xC0202009. Whilst the package has the user id and password for the Source saved within it, do I need to set up a separate connection string in say a variable and execute this as part of the package?  If so how do I do this? Cheers, Niven &nb

sharepoint2007 - when create a new site collection - An unexpected error has occurred.

hi, when i create a new site collection for a new web part, i get en error message An unexpected error has occurred... strange thing is when thesite collection was created it opened fine but when i tried to click on the link again it gave me the error. does anyone know where the problem is? MGUKMGUK

add a webreference that displays error An unexpected error occurred on a send. Received an unexpecte

this problem is driving me crazy..... i need to add this web reference to a webservice develeped using oracle jdeveloper, but it thows.. There was an error downloading 'https://farmpruebas1.sat.gob.gt/web/ConsultasPublicasSW?WSDL'.The underlying connection was closed: An unexpected error occurred on a send.Received an unexpected EOF or 0 bytes from the transport stream.There was an error downloading 'https://farmpruebas1.sat.go DO I HAVE TO CHANGE SOMETHING IN THE WEB.CONFIG  

.NET Framework 4.0 Full package installation failed with error code: (0x80070643)

I am getting an error when installing .net framework 4.0. I am using the full package installer. OS: windows XP Service Pack 3 Windows Update: Current with all security updates. Error: [7/12/2010, 10:50:49]MSI (C:\eb1ddbb12a129b2fddde4054\netfx_Core_x86.msi) Installation failed. Msi Log: Microsoft .NET Framework 4 Setup_20100712_105014316-MSI_netfx_Core_x86.msi.txt [7/12/2010, 10:50:49]PerformOperation returned 1603 (translates to HRESULT = 0x80070643) [7/12/2010, 10:50:49] Action complete [7/12/2010, 10:50:49]OnFailureBehavior for this item is to Rollback. [7/12/2010, 10:50:49] Action: Performing actions on all Items... [7/12/2010, 10:50:49] Action complete [7/12/2010, 10:50:49] Action complete [7/12/2010, 10:50:57]C:\eb1ddbb12a129b2fddde4054\netfx_Extended.mzz - Signature verified successfully for netfx_Extended.mzz [7/12/2010, 10:50:57] C:\eb1ddbb12a129b2fddde4054\netfx_Extended.mzz Signature verified successfully for netfx_Extended.mzz [7/12/2010, 10:50:57]Signature verification succeeded for netfx_Extended.mzz [7/12/2010, 10:50:57]File C:\eb1ddbb12a129b2fddde4054\netfx_Extended.mzz, locked for install. [7/12/2010, 10:50:57]Verifying Digital Signatures: C:\eb1ddbb12a129b2fddde4054\netfx_Extended.mzz Success [7/12/2010, 10:50:57]Final Result: Installation failed with error code: (0x80070643), "Fatal error during installation. " (Elapsed time: 0 00:00
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend