473,769 Members | 2,346 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

"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.WebR equest request
= base.GetWebRequ est(uri);

I always get NullReferenceEx ception.

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:

proxyPeticionSi ncrona.UnsafeAu thenticatedConn ectionSharing= true;
proxyPeticionSi ncrona.PreAuthe nticate= true;
proxyPeticionSi ncrona.Credenti als=
System.Net.Cred entialCache.Def aultCredentials ;

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.Serv icePointManager .CertificatePol icy
= new AcceptAllCertif icatePolicy();

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

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.C onfiguration.We bServicesConfig uration,
Microsoft.Web.S ervices, Version=1.0.0.0 , Culture=neutral ,
PublicKeyToken= 31bf3856ad364e3 5" />
</configSections>

<microsoft.web. services>
<diagnostics>
<trace enabled="true"
input="inputTra ce.config"
output="outputT race.config"/>
</diagnostics>
</microsoft.web.s ervices>

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 1670

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

Similar topics

0
2933
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; rv:1.6b) Gecko/20031205 Thunderbird/0.4 X-Accept-Language: en-us, en
6
3893
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 secure channel Please try the following:
1
2978
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 fullpath = " http://10.60.93.51/TempFile "; HttpWebRequest req = (HttpWebRequest)WebRequest.Create(fullpath); //req.KeepAlive = false; HttpWebResponse res; StreamReader sr; string strResult = "";
1
2443
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 got in the Event Log: Event Type: Error Event Source: ASP.NET 1.0.3705.288 Event Category: None
2
497
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 below and the code below submits the data to the DB and redirects the user. The code works locally on http://localhost or http://127.0.0.1 but when I upload it to a site (I have tried a few and they all error) it says "An error occurred on the...
1
2832
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 experimentation shows that I cannot run ANY .NET web project without getting this error: ---------------------------------------------------------------------------- ---- Object reference not set to an instance of an object.
2
6746
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 ODBC (7.03.02) from Win XP box Sample of errors follows: 2004-04-26 10:15:38 LOG: 00000: connection authorized: user=djisgitt database=gds2
11
4233
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 As String
4
8976
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> <UserName>Whoever</UserName> <Title>Whatever</Title> <Internet>email</Internet>
0
10210
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
9990
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
7406
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6672
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5298
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5446
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3956
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3561
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2814
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.