Re: Confused
From: Svein Terje Gaup (stgaup_at_broadpark.no.spam)
Date: 05/17/04
- Next message: Joe Reazor: "Re: Secure Multiple Applications in one Domain"
- Previous message: Miro: "Files become ReadOnly"
- In reply to: Aaron: "Confused"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Mon, 17 May 2004 13:16:15 +0200
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
"Aaron" <a_benage@hotmail.com> wrote in message
news:Xns94E870DB4FE55aaronjonharveycom@207.46.248.16...
> 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
>
>
- Next message: Joe Reazor: "Re: Secure Multiple Applications in one Domain"
- Previous message: Miro: "Files become ReadOnly"
- In reply to: Aaron: "Confused"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|
|