Hi,
Is this application running in the default app pool? What is the identity
for the app pool?
Jim Cheshire, MCSE, MCSD [MSFT]
ASP.NET
Developer Support
(E-Mail Removed)
This post is provided as-is with no warranties and confers no rights.
--------------------
>Thread-Topic: Deploy ASP.net Application On Windows 2003 server.
>thread-index: AcQAk+ZvDggn8bsERfaTilWvu7xncw==
>X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
>From: "=?Utf-8?B?Um95SGU=?=" <(E-Mail Removed)>
>Subject: Deploy ASP.net Application On Windows 2003 server.
>Date: Tue, 2 Mar 2004 12:21:09 -0800
>Lines: 42
>Message-ID: <048A7F72-35F3-489A-8C6D-(E-Mail Removed)>
>MIME-Version: 1.0
>Content-Type: text/plain;
> charset="Utf-8"
>Content-Transfer-Encoding: 7bit
>X-Newsreader: Microsoft CDO for Windows 2000
>Content-Class: urn:content-classes:message
>Importance: normal
>Priority: normal
>X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
>Newsgroups: microsoft.public.dotnet.framework.aspnet
>Path: cpmsftngxa06.phx.gbl
>Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.framework.aspnet:215288
>NNTP-Posting-Host: tk2msftcmty1.phx.gbl 10.40.1.180
>X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
>
>I developed an Asp.net Application on Windows XP, and try to deploy it to
windwos 2003 server. After the deployment, I try to run the application, I
get the following Error:
Server Error in '/GISOnlineReservation' 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.
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:
[UnauthorizedAccessException: Access is denied.]
OnlineReservation.Reservation.ResBasicInfo.Page_Load(Object sender,
EventArgs e) +602
System.Web.UI.Control.OnLoad(EventArgs e) +67
System.Web.UI.Control.LoadRecursive() +35
System.Web.UI.Control.LoadRecursive() +98
System.Web.UI.Control.LoadRecursive() +98
System.Web.UI.Control.LoadRecursive() +98
System.Web.UI.Page.ProcessRequestMain() +731
----------------------------------------------------------------------------
----
Version Information: Microsoft .NET Framework Version:1.1.4322.573; ASP.NET
Version:1.1.4322.573
I try all Serarios, grant all permsions to ASP.net or Network SErverice or
IUSR_MACHINENAME, still it does't work. Can anyone told me why?
Thanks
>