473,382 Members | 1,369 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,382 software developers and data experts.

Executing web method from ASP.NET using SSL cert fails

When trying to execute a web method from ASP.NET page if fails producing
error:

[Win32Exception (0x80004005): The message received was unexpected or badly
formatted]

[WebException: The underlying connection was closed: Could not establish
secure channel for SSL/TLS.]
System.Net.HttpWebRequest.CheckFinalStatus()
System.Net.HttpWebRequest.EndGetRequestStream(IAsy ncResult asyncResult)
System.Net.HttpWebRequest.GetRequestStream()
.....

The same code works perfectly from console app. I have attached the X.509
certificate which is valid for this web service through the usage of
ClientCertificates.Add(). I noticed in MSDN docs that app needs to have
rights on the certificate file. Which account specificaly is meant by that?
I have added Everyone and ASPNET accounts full rights on that folder for
testing purposes. The same error is still here.

What else could be wrong here? Why does it work from console app but not
from ASP.NET web app?

Thank you,
Marko
Nov 23 '05 #1
0 885

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

Similar topics

4
by: chris.dunigan | last post by:
I'm looking for an example of how to execute an existing DTS­ package from an ASP (VB)script and would appreciate any and all response. ­I don't even know if it's possible Thanks - Chuck...
3
by: Tim Burris | last post by:
At the top here i will put a quick description of my problem followed by the long description. This way you want get bored reading! : short version what is the best/recommended way for ASPNET...
5
by: Kay-Christian Wessel | last post by:
I'm trying to use a certificate on my pocket PC device to access a WebService using VS2003/VS2005. I've been able to read the certificate of my Certificate Store, but I don't know how to use it...
0
by: John Sheppard | last post by:
"Jeff Johnson" <i.get@enough.spamwrote in message news:JtydnTFI1LlG2GfanZ2dnUVZ_qKgnZ2d@datapex... Purchase an ssl cert...its cheaper than your labour...doing all that message layer security...
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: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.