Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: IIS7 Authentication
Hi All,
 
I am getting below error message:
"401 - Unauthorized: Access is denied due to invalid credentials"
 
When i trying to login our website remotly it gives access denied error.
if i changed authentication mode "Windows" in IIS7.5 on our staging server then i can logged into website.
But It is not working if i set authentication mode "Basic".
I want authentication mode "Windows" but when i set windows authentication web site can access remotely but can't access on server network.
please advise me..
 

Regards,
Sanjay Gade.
Posted 9-Jul-12 23:45pm
Edited 10-Jul-12 0:00am
v2
Comments
Mario Majčica at 10-Jul-12 6:02am
   
What's your goal? What kind of authentication you are trying to implement?
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

Issue solved:
1. Open iis and select the website that is causing the 401
2. Open the “Authentication” property under the “IIS” header
3. Click the “Windows Authentication” item and click “Providers”
4. Move NTLM at top
and BAM that's fixed it.
  Permalink  
Comments
Ahmed M. Gamil at 18 hrs ago
   
I followed the approach in the solution above but the website kept prompting me with a dialogue box that asks for a username and password but whenever I write them in that box it keeps reappearing.. Any ideas ?!
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 3

  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 4

<pre lang="xml">
Step 1] Go to the respective path for example D:\...\Images
Step 2] Open web.config and comment authorization/allow for specific users
</pre>
  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 CPallini 550
1 Sergey Alexandrovich Kryukov 420
2 George Jonsson 288
3 Pheonyx 218
4 OriginalGriff 200
0 OriginalGriff 4,813
1 CPallini 3,850
2 Sergey Alexandrovich Kryukov 3,224
3 George Jonsson 2,552
4 Gihan Liyanage 2,186


Advertise | Privacy | Mobile
Web02 | 2.8.140905.1 | Last Updated 15 Sep 2014
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100