The remote server returned an error: 403 Forbidden

C

Chun

Hi Joe,
Can you tell me how to setup the private key that you were talking
about? I having the same error as Arun.
Any direction will be appreciated.
Chun



Does the certificate in the store say it has a private key associated
with
it? CAPI needs to have the private key available for SSL client
authentication, so you need to make sure the private key is imported
into
the store when you import the certificate.

Joe K.
 
J

Joe Kaplan \(MVP - ADSI\)

Generally you just use the cert import wizard to import the P12 file into
the CAPI store. The trick might importing it into the right store so that
the process that is creating the webrequest has access to it. CAPI stores
are generally per user, but there is also a machine-wide store that you can
use.

Hopefully if that doesn't work, start a new thread and maybe the cert gurus
can help.

Joe K.
 
C

Chun

Thanks for replying,
I still having the same error after i installed Hotfix from Microsoft
and the cert.
Now i having this error:
The remote server returned an error: (403) Forbidden.

Description: An unhandled exception occurred during the execution of
the current web request. Please review the stack trace for more
information about the error and where it originated in the code.

Exception Details: System.Net.WebException: The remote server returned
an error: (403) Forbidden.

Source Error:


Line 92: //swPost.Close();
Line 93:
Line 94: HttpWebResponse oResponse = (HttpWebResponse)
oRequest.GetResponse();
Line 95: using (StreamReader srResponse = new
StreamReader(oResponse.GetResponseStream()))
Line 96: {


Source File: C:\Program Files\Microsoft BizTalk Server
2004\SDK\Samples\Adapters\HttpSolicitResponse\Multiplier\PostIt.aspx.cs
Line: 94

Stack Trace:


[WebException: The remote server returned an error: (403) Forbidden.]
System.Net.HttpWebRequest.CheckFinalStatus() +675
System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult)
+139
System.Net.HttpWebRequest.GetResponse() +147
LIFT.PostIt.cmdSubmit_Click(Object sender, EventArgs e) in
C:\Program Files\Microsoft BizTalk Server
2004\SDK\Samples\Adapters\HttpSolicitResponse\Multiplier\PostIt.aspx.cs:94
System.Web.UI.WebControls.Button.OnClick(EventArgs e) +108
System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String
eventArgument) +57
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler
sourceControl, String eventArgument) +18
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)
+33
System.Web.UI.Page.ProcessRequestMain() +1292




--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:1.1.4322.985;
ASP.NET Version:1.1.4322.910

Can anyone help? Any direction i will be appreciated.
Thanks,
Chun
 

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,755
Messages
2,569,536
Members
45,020
Latest member
GenesisGai

Latest Threads

Top