3

Anyone aware of how to get the ASP.NET Dev Server to challenge for basic authentication credentials instead of assuming my current login?

3
  • I am not running in IIS guys. Commented Jan 20, 2010 at 23:21
  • what are you running in? Commented Jan 20, 2010 at 23:33
  • The ASP.NET Development Server AKA Casinni Commented Jan 20, 2010 at 23:35

3 Answers 3

5

If using Cassini then according to paragraph at bottom of this link - Limitations of the Cassini Web Server, you cant.

If using IIS, then update IIS authentication.

In IIS,

  • in the virtual directory of your site right click on your virtual directory,
  • select the Directory Security tab
  • select Edit button next to Anonymous access and authentication control
  • uncheck allow anonymous and integrated windows authentication
  • check basic authentication
Sign up to request clarification or add additional context in comments.

1 Comment

Easy fix - switch to using IIS :D (It's a 'more accurate' reproduction anyway.)
0

Not an answer to your question, per se, but consider configuring your web project's properties to "Don't open a page. Wait for a request from an external application", and then hit your server with a browser that's been launched with alternative credentials.

Comments

0

Do you have Integrated Windows authentication checked off under Directory Security in IIS, instead of (or in addition to) Basic?

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.