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 10-Jul-12 0:45am
Edited 10-Jul-12 1: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 15-Sep-14 4:44am
   
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 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  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 6

Right click on folder and choose Properties.
 
In Security tab add ‘IUSER’ and 'NETWORK SERVICE' and give full control to both user.
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 3

  Permalink  

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

  Print Answers RSS
0 OriginalGriff 277
1 BillWoodruff 205
2 Maciej Los 205
3 DamithSL 165
4 Sergey Alexandrovich Kryukov 145
0 OriginalGriff 5,107
1 DamithSL 4,157
2 Maciej Los 3,595
3 Kornfeld Eliyahu Peter 3,450
4 Sergey Alexandrovich Kryukov 2,741


Advertise | Privacy | Mobile
Web03 | 2.8.141216.1 | Last Updated 18 Nov 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