Click here to Skip to main content
13,348,874 members (77,614 online)
Rate this:
Please Sign up or sign in to vote.
See more:

I have deployed a site in IIS 7 in Windows 2008 server. When ever I try to browse the site from my computer, it is asking for credentials. I have enabled

<authentication mode="Windows" />

but not working...How can I solve this.

any idea please.
Posted 22-May-11 23:52pm
Updated 22-May-11 23:59pm
Prerak Patel142.1K
Rate this: bad
Please Sign up or sign in to vote.

Solution 1

Try using impersonation, or change the authentication mode.

Here[^] you'll find more details.
Sreenath Gv 23-May-11 5:02am
Hi Patel,

I have tried with impersonate as true..but was no use..
Prerak Patel 23-May-11 5:08am
Share some more code from your config file then.
Prerak Patel 23-May-11 5:10am
One more guess, do you have anonymous authentication enabled?
Sreenath Gv 23-May-11 5:37am
The <authentication> section enables configuration
of the security authentication mode used by
ASP.NET to identify an incoming user.
<authentication mode="Windows" />

The <customerrors> section enables configuration
of what to do if/when an unhandled error occurs
during the execution of a request. Specifically,
it enables developers to configure html error pages
to be displayed in place of a error stack trace.

<customErrors mode="RemoteOnly" defaultRedirect="GenericErrorPage.htm">
<error statusCode="403" redirect="NoAccess.htm" />
<error statusCode="404" redirect="FileNotFound.htm" />


<add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<add tagPrefix="asp" namespace="System.Web.UI.WebControls" assembly="System.Web.Extensions, Version=, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>

Prerak Patel 23-May-11 5:44am
Post the whole web.config if you cannot make out the relevant part. What you have posted is not helpful or indicative at all.
Sreenath Gv 23-May-11 5:37am
In IIS u mean..?
Rate this: bad
Please Sign up or sign in to vote.

Solution 3

Solved..plzz check out..

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

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web04 | 2.8.180111.1 | Last Updated 23 May 2011
Copyright © CodeProject, 1999-2018
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