Re: System.ApplicationException: Access is denied

From: Joe Kaplan \(MVP - ADSI\) (joseph.e.kaplan_at_removethis.accenture.com)
Date: 07/01/04


Date: Thu, 1 Jul 2004 09:47:19 -0500

I'm not sure what is exactly causing this, but the only times I've gotten an
ApplicationException from WindowsIdentity were when there were Kerberos
problems way down that were causing the token to not resolve properly into a
name. Are you sure everything is working on the box correctly from a logon
perspective?

Joe K.

"D Bishop" <DBishop@discussions.microsoft.com> wrote in message
news:BE73EA2C-C439-420B-9A86-A10B32C6CC9E@microsoft.com...
> I am new to this forum, so please forgive me if my protocol is lacking. I
have developed an asp.net website using vb.net codebehind in visual studio
2003. It connects to a SQL 2000 database. I am using windows authentication
and the users login via an aspx form that queries a table in the database
for access. It works fine on my local server and the qa test server,
however, when I deploy it to the production server, which is supposed to be
identical to the qa server, I get the following error page:
> --------------------
> "System.ApplicationException: Access is denied"
> [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+IExecutionStep.
Execute() +60
> System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean&
completedSynchronously) +87
> --------------------
> I have given the IUSR_xxx and IWAM_xxx accounts proper access and other
asp.net webs on that server have not had this issue, however, this single
web will not even load the default page, even if I create and use a
differently named virtual directory. I have done everything I can think of,
but obviously I am missing something. Can anyone please help soon?
>
> Thanks.



Relevant Pages

  • Re: Frontpage Publishing Host header password problem
    ... Am unable to get my user credentials accepted in Frontpage Server Extensions ... I restored my webs from backups. ... I am able to publish website successfully when publishing ...
    (microsoft.public.frontpage.client)
  • Frontpage Publishing Host header password problem
    ... Am unable to get my user credentials accepted in Frontpage Server Extensions ... I restored my webs from backups. ... I am able to publish website successfully when publishing ...
    (microsoft.public.frontpage.client)
  • Re: Active Directory and SQL Server Connection
    ... You need to switch identities by using the WindowsIdentity class in the .NET ... One is the IIS server the other is ... when we have anonymous access ...
    (microsoft.public.dotnet.framework.adonet)
  • Re: Frontpage2003 using the : my websites folder
    ... You need to learn the difference between Disc based webs and Server based webs ... If you create a FP web/site in a folder on your PC, ...
    (microsoft.public.frontpage.extensions.windowsnt)
  • impersonation IIS6 ASP NTLM Netzwerkzugriff
    ... Impersonation unter dem IIS6. ... Diese ist mit der Identität Netzwerk ... Innerhalb dieses Webs gibt es einen Bereich, ... Das ganze wurde von einem W2k Server mit IIS5 ...
    (microsoft.public.de.inetserver.iis.asp)

Quantcast