ASPUSER account problem?

From: Cwhitmore (Cwhitmore_at_discussions.microsoft.com)
Date: 03/16/05


Date: Wed, 16 Mar 2005 08:57:04 -0800

I've installed an app that requires ASP.NET 1.1. I'm running on Windows 2k
Server, with IIS 5.0, Active Directory and ASP.NET 1.1. I get to the login
screen of the app, but I get an error message after that. Here is what I've
tried so far:
1.) Created ASPUSER account and given it full access on \WINNT\Temp, Apps
Data directory and Asp.NET 1.1 directory
2.) Gave IWAM_servername and IUSR_servername full rights to the apps data
directory
3.) Edited machine.config to change the username to ASPUSER under the
ProcessModel section

Here is the error message below:

Access to the registry key HKEY_CURRENT_USER\Software\VB and VBA Program
Settings\CMA\StaffTracker Demo 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 to the
registry key HKEY_CURRENT_USER\Software\VB and VBA Program
Settings\CMA\StaffTracker Demo 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 to the registry key
HKEY_CURRENT_USER\Software\VB and VBA Program Settings\CMA\StaffTracker Demo
is denied.]
   Microsoft.Win32.RegistryKey.Win32Error(Int32 errorCode, String str) +74
   Microsoft.Win32.RegistryKey.CreateSubKey(String subkey) +503
   Microsoft.VisualBasic.Interaction.SaveSetting(String AppName, String
Section, String Key, String Setting) +81
   StaffTracker.WEB.wfrmLogin.btnOk_Click(Object sender, EventArgs e)
   System.Web.UI.WebControls.Button.OnClick(EventArgs e) +108
   
System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +57
   System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler
sourceControl, String eventArgument) +18
   System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +33
   System.Web.UI.Page.ProcessRequestMain() +1273

 

--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:1.1.4322.2032; ASP.NET
Version:1.1.4322.2032



Relevant Pages

  • Re: 500 error while GetResponse()
    ... You would of course need to handle any Exception thrown by this method with ... >> The first would mean that the server that your WebRequest sent a Request ... >> The second would mean that your ASP.Net app has a problem. ... >> ..Net Developer ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: The namespace, , is a duplicate error when compiling .NET Webservice
    ... Please post the entire exception, complete with stack trace and inner ... the current web request. ... mapping, String ns, Boolean isAny, XmlSchemaElement element) +762724 ... type, HttpContext context, HttpRequest request, HttpResponse response, ...
    (microsoft.public.dotnet.framework.aspnet)
  • Event sink registration via WebDAV
    ... The exception: "The remote server returned an error Method not allowed" at line 68. ... string myExchange = "http://exdevel2k3/exchange/";; ... // Set the request timeout to 5 minutes ... Stream QueryStream = HttpWRequest.GetRequestStream; ...
    (microsoft.public.exchange2000.development)
  • Re: Problems installing Microsoft .NET Framework 1.1 Service Pack
    ... and it worked and I have filled in the request and sent it. ... An unhandled exception occurred during the execution of the ... siteName, String httpVerb, String path, String QS, String httpVersion, ... request, String site, TicketState& ticketState, String& responseHeaders) +100 ...
    (microsoft.public.windowsupdate)
  • Re: Problems installing Microsoft .NET Framework 1.1 Service Pack
    ... and it worked and I have filled in the request and sent it. ... An unhandled exception occurred during the execution of the ... siteName, String httpVerb, String path, String QS, String httpVersion, ... request, String site, TicketState& ticketState, String& responseHeaders) ...
    (microsoft.public.windowsupdate)