Azman System.UnauthorizedAccessException in web services

bestteo_at_yahoo.com
Date: 04/12/05


Date: 11 Apr 2005 20:05:55 -0700

hi,

i have big problem on the above. I m using Winxp sp2 for development.
i had downloaded the win server 2003 admin pack. i created a store in
xml using Azman. I have created 3 users, A, B, and C(domain users) and
assigned them to role D.

I have a web service ws.asmx. I deny access to those who are not
allowed role D. When i logged in as user A, i could access the web
service. The asmx was written when i was logged in as user A.
However, when i logged in as B and C, i got System.UnauthorizedAccess
Exception:

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.UnauthorizedAccessException: Access is
denied.

ASP.NET is not authorized to access the requested resource. Consider
granting access rights to the resource to the ASP.NET request identity.
ASP.NET has a base process identity (typically {MACHINE}\ASPNET on IIS
5 or Network Service on IIS 6) that is used if the application is not
impersonating. If the application is impersonating via <identity
impersonate="true"/>, the identity will be the anonymous user
(typically IUSR_MACHINENAME) or the authenticated request user.

To grant ASP.NET write access to a file, right-click the file in
Explorer, choose "Properties" and select the Security tab. Click "Add"
to add the appropriate user or group. Highlight the ASP.NET account,
and check the boxes for the desired access.

[UnauthorizedAccessException: Access is denied.]
   AZROLESLib.AzAuthorizationStoreClass.Initialize(Int32 lFlags, String
bstrPolicyURL, Object varReserved) +0
   priceboard_mini_www.Global.Application_AuthenticateRequest(Object
sender, EventArgs e) in c:\inetpub\wwwroot\pbmini_www\global.asax.cs:96

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

My impersonate is set to true and i have given all the access i could.
what am i missing? is it a bug with Winxp sp2 or i missed out something
important?



Relevant Pages

  • ASP.NET and creating a word document
    ... to the ASP.NET request identity. ... Network Service on IIS 6) that is used if the application ... If the application is impersonating ...
    (microsoft.public.dotnet.framework.interop)
  • Server Error in Photos Application
    ... granting access rights to the resource to the ASP.NET request identity. ... Network Service on IIS 6) that is used if the application is not ... If the application is impersonating via <identity ... IUSR_MACHINENAME) or the authenticated request user. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Unable to write files to the server.
    ... granting access rights to the resource to the ASP.NET request identity. ... Network Service on IIS 6) that is used if the application is not ... If the application is impersonating via <identity ... adding aspnet to the admin group to hunting through gpedit.msc to find ...
    (microsoft.public.dotnet.framework.aspnet)
  • pass data to a text file! What this error means?
    ... Network Service on IIS 6) that is used if the application is not ... If the application is impersonating via <identity ... IUSR_MACHINENAME) or the authenticated request user. ... and can u please suggest me how to trigger searching capability? ...
    (microsoft.public.dotnet.framework.aspnet)
  • pass data to a text file! What this error means?
    ... Network Service on IIS 6) that is used if the application is not ... If the application is impersonating via <identity ... IUSR_MACHINENAME) or the authenticated request user. ... and can u please suggest me how to trigger searching capability? ...
    (microsoft.public.dotnet.framework.aspnet)