473,378 Members | 1,541 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

"An unexpected error occurred on a receive" with WSE 1.0 and HTTPS

I am writing a client for an HTTPS web service using WSE 1.0 but I
always get an error like "The underlying connection was closed: An
unexpected error occurred on a send."
Sometimes the error "occured on a receive".

Looking around, I find
http://weblogs.asp.net/jan/archive/2...08/128394.aspx ("Solving
"The underlying connection was closed" when using WSE"), that sets
KeepAlive to false, but it doesn't work for me since when I get to the
part:

System.Net.WebRequest request
= base.GetWebRequest(uri);

I always get NullReferenceException.

Anyway that solution seemed to be for cases when there was an
occasional accummulation of requests. In this case, I am only sending
one request, the server (which I don't control) is probably not busy,
and I get the error every time.

Other things I have tried are:

proxyPeticionSincrona.UnsafeAuthenticatedConnectio nSharing= true;
proxyPeticionSincrona.PreAuthenticate= true;
proxyPeticionSincrona.Credentials=
System.Net.CredentialCache.DefaultCredentials;

but they make no difference.

When I try the service from a browser I get questioned about the
certificate (its authority is not recognized and it is for another
machine) but after accepting the dialogs it shows me a SOAP fault. My
client can't reach the fault stage.
I take care of the certificates with:

System.Net.ServicePointManager.CertificatePolicy
= new AcceptAllCertificatePolicy();

which should be enough, I guess. It returns true on
CheckValidationResult.

I am using WSE 1.0 SP1. I have also installed Service Pack 1 for .NET
1.1 but it made no difference.

I have tried to activate the WSE trace in my web.config:

<configSections>
<section name="microsoft.web.services"

type="Microsoft.Web.Services.Configuration.WebServ icesConfiguration,
Microsoft.Web.Services, Version=1.0.0.0, Culture=neutral,
PublicKeyToken=31bf3856ad364e35" />
</configSections>

<microsoft.web.services>
<diagnostics>
<trace enabled="true"
input="inputTrace.config"
output="outputTrace.config"/>
</diagnostics>
</microsoft.web.services>

but these .config files appear nowhere.

I have an equivalent client in Java that runs OK.
I also have another WSE 1.0 client (unfortunately, I only have the
binaries) for this service that is getting these same errors and also
one about not establishing a secure channel for SSL/TLS. This client
worked from another part of the intranet, so it could be a problem of
configuration, but I cannot figure what it would be.

Has anyone had a similar experience? Can you point me somewhere to
look?

Thanks in advance.
--
David Mediavilla

Nov 23 '05 #1
0 1648

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Robert | last post by:
did you solve this problem? It seems to be still present here with py2.3.5. Robert -- From: Manish Jethani <manish.j@gmx.net> User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US;...
6
by: Meya | last post by:
Hi, when I hit my http://<domain name> site,I am getting this error msg: I have also installed my SSL cert on the IIS 5.0 ******************************** The page must be viewed over a...
1
by: Angel | last post by:
I'm trying to connect to a fixed IP address (eg. http://10.60.903.50/TempFile) in order to retrieve one accii line of text in TempFile. I try to read the information with this code: string...
1
by: Stan | last post by:
I get this error when I try to access any page on the website: An error occurred while try to load the string resources (GetModuleHandle failed with error 126). At the same time here is what I...
2
by: Luke | last post by:
Hi I have the following code which is an ASP questionnaire using an Access database. (I am using access as I have no choice!). Basically there is an html form which submits the form to the page...
1
by: Chris Magoun | last post by:
I suddenly received an unexpected error in my project. I have been working on this project for some time without this issue. Nothing has changed in the form that caused the exception. A little...
2
by: Don Isgitt | last post by:
Environment: Server running Redhat 3.2.3-20 on quad Xeon 2.4 Postgresql 7.4 compiled from source (gcc 3.2.3) Application written in Perl (5.8.0) using Tk, DBI and DBD Client accessing DB using...
11
by: MLH | last post by:
Private Sub ButtonP_Click() On Error GoTo Err_ButtonP_Click Dim ThisForm As String ThisForm = Me.Name Exit_ButtonP_Click: Exit Sub Err_ButtonP_Click: Dim r As String, k As String, Message3...
4
by: lisa | last post by:
I have an XML file that starts like this: <?xml version="1.0" encoding="ISO-8859-1" xmlns:fn="http://www.w3.org/2005/xpath-functions"?> <Authors> <Author> <ID>2</ID>...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.