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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T02:54:18+00:00 2026-06-08T02:54:18+00:00

I have an MVC 3 website that is using Forms authentication. The user logins

  • 0

I have an MVC 3 website that is using Forms authentication. The user logins and navigates to a Silverlight 5 application. The Silverlight app is calling a Silverlight-Enabled WCF service on another port. Because one of my requirements is to use Https/SSL, I decided to move the WCF services into a “Services” folder in my MVC application.

To see if the service is working, I typed in the address of my service. I got an error message stating my service requires anonymous access, but the website is specified to use forms authentication. So, I removed my mexHttpBinding in my web.config for my service and added authenticationScheme=”Negotiate” to my httpTransport of my binding. (I’m not to https yet).

Now, I get a 302 and am redirected to the log-in page. It seems that my service is suggesting i’m not logged in. So, I added

routes.IgnoreRoute("{resource}.svc/{*pathInfo}");

and

routes.IgnoreRoute("Services/");

but that hasn’t made a difference. I think the service says i’m not authenticated, but I’m certain I am.

Can someone explain what I’m doing wrong?

All of this works when I debug on my localhost, but I can’t access the service when I deploy to a server.

Edit

I may have found my answer. I turned on anonymous access for my website in IIS and changed the httpTransport’s authenticationScheme to the default (Anonymous). I then added

<authorization>
    <deny users="?"/>
</authorization>

along with

<authentication mode="Forms">
  <forms loginUrl="~/Account/LogOn" timeout="2880" />
</authentication>

which seems to be requiring the user to be authenticated in order to access the service. I am now going to check my silverlight application to make sure it can reach the service and get/post data. This was all in a test application, so I’ll have to change my real application accordingly. Then, I’ll tackle ssl/https.

Does all this sound right?

EDIT 2

I had to ensure mex was enabled and aspNetCompatibilityEnabled was set to ‘false’ to get the conctracts to update in my silverlight app. But after updating my services, I set the aspNetCompatibilityEnabled to ‘true’, and everything appears to be working.

I hope I’m still headed down the right path…

  • 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-08T02:54:21+00:00Added an answer on June 8, 2026 at 2:54 am

    I ended up setting up IIS to add the webservice as a website under the parent website. Then, I used the Location tag in the parent site’s web.config to implement forms authentication on the webservice.

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

Sidebar

Related Questions

I have an Asp.Net MVC application using Forms Authentication that is published to the
I'm using Forms authentication in ASP.NET MVC website and I store user account login
I have an existing asp.net mvc website that uses basic forms authentication. The site
I am using the built-in forms authentication that comes with asp.net mvc. I added
I am writing a Asp.net MVC 2 application that uses Forms Authentication and currently
I have written an ASP.NET MVC application that allows the user to specify their
I have a MVC website that sits on top of a WCF service. The
I have an ASP.NET MVC website that works in tandem with a Windows Service
I have an asp.net mvc website that returns a JSON result to certain pages
I have an ASP.NET MVC 3 website that works perfectly in IIS7 integrated mode.

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.