Anonymous access is disabled, but

My web app (asp VB 2005) uses Windows Authentication. If the user is not a member of a specific AD security group, they cannot edit the data; instead, I redirect the user to a read-only page.

The program works fine in the IDE.

I published a web app for my laptop and turned off anonymous access. When I ran the program, I was redirected to a read-only page. I added a write event to the application event log to see what was going on and found that the WindowsPrincipal.Identity.Name contains the ID of my laptop and not my username.

I'll reaffirm: Anonymous access is disabled in IIS and the web.config file is Windows Authenticated.

Can anyone suggest what else to check? Or can you explain what's going on?

+2


a source to share


1 answer


You probably need to set <identity impersonate="true" />

in your web.config:

<configuration>
   <system.web>
      <identity impersonate="true" />

      



See http://msdn.microsoft.com/en-us/library/72wdk8cc.aspx for details .

+1


a source







All Articles