Azman System.UnauthorizedAccessException in web services
bestteo_at_yahoo.com
Date: 04/12/05
- Next message: Valery Pryamikov: "Re: Running a program with elevated priveleges"
- Previous message: Joseph MCAD: "Re: Protect ASP.Net Dll"
- Next in thread: richlm: "Re: Azman System.UnauthorizedAccessException in web services"
- Reply: richlm: "Re: Azman System.UnauthorizedAccessException in web services"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
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?
- Next message: Valery Pryamikov: "Re: Running a program with elevated priveleges"
- Previous message: Joseph MCAD: "Re: Protect ASP.Net Dll"
- Next in thread: richlm: "Re: Azman System.UnauthorizedAccessException in web services"
- Reply: richlm: "Re: Azman System.UnauthorizedAccessException in web services"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|