Message received was unexpected or badly formatted

S

SleepingRabbit

Hi All,

I am new to the web service consuming.

I need to access a web service (sitting on the service provider's server)
using WSE. Since the provider have recommended WSE1.0 SP1, we are using the
same, with development in C#..

The digital certificate provided was in .PFX and I installed the same on the
computer. I can now see it under the personal folder of my settings.

Now, when I try to call the functions using C# console based application I
get the following error -
"The underlying connection was closed: Could not establish secure channel
for SSL/TLS. ---> System.ComponentModel.Win32Exception: The message received
was unexpected or badly formatted"

Based on the various forums I have done the following -
1. Keep Alive
2. Implemented the ICertificatePolicy policy to override the
CheckValidationResult().
3. Checked the URL using IE, I do not get any error reported on the same.

Grateful, if somebody can help me out in helping me to understand where the
problem is coming from... and how to overcome the same...

Thanks in advance.
Regards.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,995
Messages
2,570,236
Members
46,822
Latest member
israfaceZa

Latest Threads

Top