Confused

A

Aaron

When I use these lines in the web.config on my local development machine
everything works great.

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

I have a label on the form telling me which user is logged in and I when
I run the application, I get prompted for a username/password/domain and
when I enter my credntials, my domain\username shows up as DEVELOPMENT
\Aaron.My local IIS is using Integrated auth only.

If I move my application to the production server I get access denied.
I have set IIS to Integrated Auth only and even given EVERYONE full
control permissions on the files in the webbizdev directory where the app
is running from.

What am I missing?

Here is the error message when running from the server.

Thanks,




Server Error in '/' Application.
-------------------------------------------------------------------------
-------

Access is denied.
Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information
about the error and where it originated in the code.

Exception Details: System.ApplicationException: Access is denied.

Source Error:

An unhandled exception was generated during the execution of the current
web request. Information regarding the origin and location of the
exception can be identified using the exception stack trace below.

Stack Trace:


[ApplicationException: Access is denied.
]
System.Security.Principal.WindowsIdentity._ResolveIdentity(IntPtr
userToken) +0
System.Security.Principal.WindowsIdentity.get_Name() +71
System.Web.Configuration.AuthorizationConfigRule.IsUserAllowed
(IPrincipal user, String verb) +100
System.Web.Configuration.AuthorizationConfig.IsUserAllowed(IPrincipal
user, String verb) +81
System.Web.Security.UrlAuthorizationModule.OnEnter(Object source,
EventArgs eventArgs) +178

System.Web.SyncEventExecutionStep.System.Web.HttpApplication+IExecutionSt
ep.Execute() +60
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean&
completedSynchronously) +87
 
S

Svein Terje Gaup

Have you tried to fetch
System.Web.HttpContext.Current.Request.ServerVariables["LOGON_USER"]? Does
this return anything?
Could you perhaps post the bit of code that fails?

Sincerely
Svein Terje Gaup
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,994
Messages
2,570,223
Members
46,813
Latest member
lawrwtwinkle111

Latest Threads

Top