Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5930669
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T14:35:09+00:00 2026-05-22T14:35:09+00:00

From ASP.NET web site I’m calling web service (which requires certificate). When I testing

  • 0

From ASP.NET web site I’m calling web service (which requires certificate). When I testing it on localhost (debugging) it works, but on IIS 6 (windows server 2003) it does not works and throws an exception:

The request failed with HTTP status
403: Forbidden.

Here is the code, how I’m calling web service:

  Service service = new Service();
  service.ClientCertificates.Add(new X509Certificate("certificate path", "password"));
  service.Credentials = System.Net.CredentialCache.DefaultNetworkCredentials;

  ServicePointManager.ServerCertificateValidationCallback = new System.Net.Security.RemoteCertificateValidationCallback(ValidationCallBack);
  Result res = service.GetResult();


  private static bool ValidationCallBack(object sender, X509Certificate cert, X509Chain chain, System.Net.Security.SslPolicyErrors error)
  {
       return true;
  }

What is the reason of this error and how can I avoid this?

I’ve tried web service call with winForms and it works fine on server. So I think it is IIS problem…

Thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T14:35:10+00:00Added an answer on May 22, 2026 at 2:35 pm

    To resolve this you should look at this link

    403 – Forbidden. You can receive this
    generic 403 status code if the Web
    site has no default document set, and
    the site is not set to allow Directory
    Browsing. For more information about
    how to resolve this problem, click the
    following article number to view the
    article in the Microsoft Knowledge
    Base:
    320051 How to
    configure the default document in
    Internet Information Services

    403.7 – Client certificate required. You have configured the server to
    require a certificate for client
    authentication, but you do not have a
    valid client certificate
    installed.
    186812 PRB:
    Error Message: 403.7 Forbidden: Client
    Certificate Required

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've a asp.net web solution which references a web service from another web site
I have a asp.net website and I am accessing that web service from my
I'm trying to use jQuery to get data from an ASP.NET web service (SharePoint
I'm building a asp.net web site i build a class localiziedpage that inherit from
I have a music related ASP.NET web site which caches a lot of static
I know how to launch the ASP.NET Web Site Administration Tool from Visual Studio
I've inherited an ASP.NET web site that has an SSL certificate bought via GoDaddy.
We need to deploy our asp.net web site in web farm which consists of
We've implemented a background service in our Asp.Net web app that receives messages from
I have the need from an asp.net web site to send out many SMS

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.