Re: Access is denied
From: Matjaz Ladava (matjaz_at__nospam_ladava.com)
Date: 06/23/03
- Next message: Matjaz Ladava: "Re: authorization element in web.config"
- Previous message: Scott Sivorn: "Access is denied"
- In reply to: Scott Sivorn: "Access is denied"
- Next in thread: Scott: "Re: Access is denied"
- Reply: Scott: "Re: Access is denied"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Mon, 23 Jun 2003 20:01:24 +0200
the question here is, what are permissions set on your object that you are
trying to instantiate ? What are you trying to instantiate ? If this object
is in your Component services, then check permissions on that object. Try
using impersonation, disable anonymous access trough <deny users="?" /> in
your web.config. Is the object, that you are instantiating a remote object ?
What do you mean by all permissions (for ASP account) ?
-- Regards Matjaz Ladava, MCSE (NT4 & 2000) matjaz@ladava.com http://ladava.com "Scott Sivorn" <ssivorn@bolidenmkm.co.uk> wrote in message news:040101c33977$dc505710$a001280a@phx.gbl... > I have installed from a clean installation WinXP, and > visual studio (2003) and all associated patches. I have > created a sample application that uses the > Server.CreateObject method. The following is the error i > continually receive whatever i try to do. The ASP account > has every privilege it can be given yet the error is still > received, i have also tried tweaking the privileges for > the IIS account. > > This is the same installation as on a Win2K machine which > has no problems at all. > > Does anyone have any ideas that could shed some light on > this? Or know what could be causing the problem? > > > > Server Error in '/WebApplication1' 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.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.
- Next message: Matjaz Ladava: "Re: authorization element in web.config"
- Previous message: Scott Sivorn: "Access is denied"
- In reply to: Scott Sivorn: "Access is denied"
- Next in thread: Scott: "Re: Access is denied"
- Reply: Scott: "Re: Access is denied"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|
|