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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T09:02:48+00:00 2026-06-10T09:02:48+00:00

I’ve scoured the web for an answer to this and while I’ve found similar

  • 0

I’ve scoured the web for an answer to this and while I’ve found similar issues like this one, I’ve yet to find a specific answer.

I’ve got an MVC web site using Forms Authentication to provide login support (this is basically out-of-the-box login support in MVC).

In the same domain, I’ve got a WCF REST service with a single method.

What I’m trying to do is see if I can leverage Forms Authentication from within the service to see if the requester has already ‘signed in’ via the MVC application. Following some other posts I found, I’ve made sure that the web.config files (w.r.t. Forms Authentication) are the same (same machine key, etc.).

Here’s the problem: I can sign in via the MVC site (and thus, get my authentication ticket via cookie). When I make a GET request to my service (remember, on same domain as MVC) I can see that the “.ASPXAUTH” cookie is getting sent with the request.

But, I get a “400 Bad Request” response each time. Further, the body of the response is indicating
“The server encountered an error processing the request…”

Additional observations:

  • If I remove the .ASPXAUTH cookie from the request (using Fiddler or curl for instance), the request goes through without issue
  • I can use Fiddler or curl to to send a request to a secured page in the MVC app and include the same .ASPXAUTH cookie and this works as expected (a 200 response with expected content in response body).
  • (the strange one) I can set a break point in my Service application within the Application_AcquireRequestState method in global.asax.cs and hit it when I send the request.
    • I can then examine HttpContext.Current.User.Identity and see that IsAuthenticated is true and Name is showing my expected username (from the initial login via MVC app)
  • A break point in the very first executable line of code within my service method is never hit.

Of course, when I remove the .ASPXAUTH cookie, both break points in my service are hit (and, naturally, the Identity is not authenticated in this case.

So, it would seem to me that:

  1. Forms Authentication is working as I’d hoped it work within my service. I can detect that the request is authenticated and them move on that information.
  2. I crash and burn somewhere in the ASP.NET pipeline after Forms Authentication does its thing but before my service method gets called.

I’ve had no luck finding any references to a similar problem out there and would appreciate another set of eyes (or several thousand sets of eyes) to point out what I hope is a very silly and obvious answer.

(If there is a specific area of code anyone would like to see, I can add as requested. I didn’t want to further burden an already overly-worded post with tons of random code samples)

  • 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-10T09:02:50+00:00Added an answer on June 10, 2026 at 9:02 am

    Not so much an answer to the question as a workaround. However, I think it’s the more appropriate approach to the underlying goal.

    I ported the functionality to an ServiceStack based solution. My guess is that the conflict was arising somewhere within the WCF REST Starter Kit code I had been using but I did not do an exhaustive analysis.

    In any event, the underlying goal of leveraging Forms Authentication between an MVC site and my service was accomplished with this new model.

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

Sidebar

Related Questions

I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
For some reason, after submitting a string like this Jack’s Spindle from a text
I've got a string that has curly quotes in it. I'd like to replace
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
Seemingly simple, but I cannot find anything relevant on the web. What is the
I would like my Web page http://www.gmarks.org/math_in_e-mail.txt on my Apache 2.2.14 server to display
I have some data like this: 1 2 3 4 5 9 2 6
link Im having trouble converting the html entites into html characters, (&# 8217;) i
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I would like to count the length of a string with PHP. The string

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.