Articles → .NET → Windows Authentication in ASP.NET

Windows Authentication in ASP.NET






Implementation


•  Create a web based project say

•  Add the following code in

<authentication mode="Windows" />		  
<identity impersonate="true"/>


•  Now go to IIS





•  Go to WebSites → Default WebSites → WindowsAuthenticationProject


Click to Enlarge

•  Right click on the project and select properties.A dialog box will appear

•  Go to Directory Security tab

•  Click on Edit.


Click to Enlarge

•  A dialog box will appear

•  Uncheck "Anonymous access"

•  Check "Basic Authentication"

•  Uncheck "Integrated Windows Security"


Click to Enlarge

•  Click OK

•  Click OK and close IIS

•  Open the file through IP address instead of localhost


Click to Enlarge


Posted By  -  Karan Gupta
 
Posted On  -  Thursday, December 23, 2010

Query/Feedback


Your Email Id  
 
Subject 
 
Query/FeedbackCharacters remaining 250