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 8011601
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T19:04:02+00:00 2026-06-04T19:04:02+00:00

I am implementing a basic authentication WCF service in ASP.NET using Visual Studio 2010.

  • 0

I am implementing a basic authentication WCF service in ASP.NET using Visual Studio 2010. I accomplished this by roughly following the first few parts of this guide.

I have the default ASP.NET Web Site (in VS2010) login page set up to use my WCF service to authenticate a user, using this code-behind and an <asp: Login> property:

protected void Login_Authenticate(object sender, AuthenticateEventArgs e)
{
    bool isAuthenticated = false;

    string customCredential = "Not used by the default membership provider.";
    bool isPersistent = LoginUser.RememberMeSet; // Authentication ticket remains valid across sessions?

    AuthenticationServiceClient authClient = new AuthenticationServiceClient();

    isAuthenticated = authClient.Login(LoginUser.UserName, LoginUser.Password, customCredential, isPersistent);

    e.Authenticated = isAuthenticated;
    authClient.Close();
}

Furthermore, I had this working when I used IIS Express, but I have since moved to IIS 7.5.

When the above function gets called, an exception is thrown on the call to authClient.Login(...).

The usual error page pops up with this to say:

Server Error in ‘/AuthClientSite’ Application.

AuthenticationService is disabled.

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.ServiceModel.FaultException`1[[System.ServiceModel.ExceptionDetail, System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]]: AuthenticationService is disabled.

As this code is nearly identical to what worked on IIS Express, and given that it seems like my service is just disabled, I’m guessing its a setting somewhere in IIS that needs to be fixed.

I am wrapping the System.Web.ApplicationServices.AuthenticationService service as seen in the link from above.

Any ideas of what’s going on would be a great help. I’ve tried so many different things over the past few days I can’t remember and/or list them all, but I’ll do my best to answer all your questions/comments.

  • 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-06-04T19:04:05+00:00Added an answer on June 4, 2026 at 7:04 pm

    So I figured out my problem. I needed to add these lines to the Web.config file in the web site running the service:

    <system.web.extensions>
        <scripting>
            <webServices>
                <authenticationService enabled="true"
                    requireSSL = "false"/>
            </webServices>
        </scripting>
    </system.web.extensions>
    

    Hope this helps anyone who runs into this problem in the future.

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

Sidebar

Related Questions

implementing publishActivity in PHP using the REST API using this code: $activity = array(
For a particular piece of homework, I'm implementing a basic data storage system using
I am implementing a really basic server-client model in Java, by using UDP sockets
Implementing the basic algorithm using last array as a pivot in Java, is it
I am attempting to add BASIC authentication to my RESTful web-service. Currently I have
I have implemented SSO authentication using the sourceforge spnego project . This is my
I'm trying to add simple Authentication and Authorization to an ASP.NET MVC application. I'm
I'm still implementing basic functionality in my app so I'm asking this now in
I am refactoring a working ASP.NET Web Application to expose Web Services interface using
I am implementing the authentication for an app, and I am using a pluggable

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.