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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T06:10:55+00:00 2026-05-11T06:10:55+00:00

I am having a tough time deploying a web site to IIS 7 on

  • 0

I am having a tough time deploying a web site to IIS 7 on Windows Server 2008. The site works fine until it tries to make calls to a WCF service hosted on the same host.

Everything works great for the service from my workstation when the web is ran in Visual Studio 20008 using the exact same web config etc. As soon as I deploye the web in a virtual directory on the server Bam. Authentication errors. It also works as is when both are deployed on a Windows 2003 Server. What is different about Server 2008 that is causing this? HELP! Please.

In case it is important, all of the service operations require Active Directory group membership for the ASP.net page’s authenticated user and are adorned as: [PrincipalPermission(SecurityAction.Demand, Role = ‘SOAMemberShipService’)]

I get the following error from the web site:

The request for security token could not be satisfied because authentication failed. 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: The request for security token could not be satisfied because authentication failed.

Source Error:

Line 919:
Line 920: public HSMembersService.MemberSearchResult SearchMembers(HSMembersService.MemberSearch MemberInfoToSearch) { Line 921: return base.Channel.SearchMembers(MemberInfoToSearch); Line 922: } Line 923: }

Source File: c:\Windows\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.NET Files\csrweb\a4d18657\a6d0910d\App_WebReferences.jgx1svpr.0.cs Line: 921

Stack Trace:

[FaultException: The request for security token could not be satisfied because authentication failed.] System.ServiceModel.Security.SecurityUtils.ThrowIfNegotiationFault(Message message, EndpointAddress target) +6375432 System.ServiceModel.Security.IssuanceTokenProviderBase`1.ThrowIfFault(Message message, EndpointAddress target) +25 System.ServiceModel.Security.SspiNegotiationTokenProvider.GetNextOutgoingMessageBody(Message incomingMessage, SspiNegotiationTokenProviderState sspiState) +173

[SecurityNegotiationException: The caller was not authenticated by the service.] System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg) +4596611 System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type) +1713 HSMembersService.IHSMembersService.SearchMembers(MemberSearch MemberInfoToSearch) +0 HSMembersService.HSMembersServiceClient.SearchMembers(MemberSearch MemberInfoToSearch) in c:\Windows\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.NET Files\csrweb\a4d18657\a6d0910d\App_WebReferences.jgx1svpr.0.cs:921 _default.btnSearch_Click(Object sender, EventArgs e) in e:\CSRWeb\default.aspx.cs:114 System.Web.UI.WebControls.Button.OnClick(EventArgs e) +131 System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +140 System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +39 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3215

ASP.net web site’s web.config (relevant Service portion):

Services web.config:

    <!-- Service Endpoints -->     <!-- Unless fully qualified, address is relative to base address supplied above -->     <endpoint address ='' binding='wsHttpBinding' contract='HSMembersService.IHSMembersService' bindingConfiguration='wsHttpBindingConfig'>       <!--            Upon deployment, the following identity element should be removed or replaced to reflect the            identity under which the deployed service runs.  If removed, WCF will infer an appropriate identity            automatically.       -->       <!--<identity>         <dns value='localhost'/>       </identity>-->     </endpoint>     <!-- Metadata Endpoints -->     <!-- The Metadata Exchange endpoint is used by the service to describe itself to clients. -->     <!-- This endpoint does not use a secure binding and should be secured or removed before deployment -->     <endpoint address='mex' binding='mexHttpBinding' contract='IMetadataExchange'/>   </service> </services> <bindings>   <wsHttpBinding>     <binding name='wsHttpBindingConfig' >       <security mode='Message'>         <message clientCredentialType='Windows' />       </security>      </binding>   </wsHttpBinding> </bindings> <behaviors>   <serviceBehaviors>     <behavior name='HSMembersService.HSMembersServiceBehavior'>       <!-- To avoid disclosing metadata information,        set the value below to false and remove the metadata endpoint above before deployment -->       <serviceMetadata httpGetEnabled='True'/>        <serviceAuthorization principalPermissionMode='UseWindowsGroups'         />       <!-- To receive exception details in faults for debugging purposes,        set the value below to true.  Set to false before deployment        to avoid disclosing exception information -->       <serviceDebug includeExceptionDetailInFaults='True' /><!-- Change this before deployment -->     </behavior>   </serviceBehaviors> </behaviors> 

  • 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. 2026-05-11T06:10:56+00:00Added an answer on May 11, 2026 at 6:10 am

    Okay, no answers here nor on the MSDN subscription groups.

    So, I tried everything. And I mean everything. After what seemed like several days but in reality was probably only 20 hours, it works!

    All I did was move the physical path the services files i.e. .dll, .svc etc. to a directory off of my c:root versus the wwwroot and it worked. I had to update my virtual directory to point to it of course.

    Why did this location cause a problem? Does IIS7.0/Windows server 2008 change something that doesn’t allow services to be deployed from a physical location of wwwroot? I’ll probably never find out because I will never try to deploy another service from there.

    I triple-checked all account/directory permissions and the ones in the new physical path are identical to the ones in the old physical path so no good there.

    If anyone finds out why or knows why. Please let me/us know.

    Thanks,

    Eddie

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

Sidebar

Related Questions

I am having a tough time struggling with XML within Sql Server 2008. I
SQL Server 2008: I'm having a tough time translating my pseudo SQL to actual
I'm having a tough time find the correct web service or client object model
I'm having a tough time figuring out how to make a helper for my
I am having a tough time understanding why the Scala compiler is unhappy about
I'm without my Java reference book and I'm having a tough time finding an
I'm having a real tough time diagnosing a 500 error from my application running
I'm having a really tough time getting XMPPFramework to work. I've followed every direction
I'm having a tough time formatting this WordPress widget to look good. http://healthybodyguru.com/ It's
I'm having a tough time trying to implement a slideToggle event and at the

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.