|
security
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
ASPUSER account problem?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 well, as the error message outlines, the error message is on a registry key.
I note you haven't changed any permissions on your registry keys. I am a little intrigued as to why it's trying to access this key though - you're doing something unusual? registry key perms can be set with regedt32.exe, but as always take care... -- Show quoteHide quoteJason Brown Microsoft GTSC, IIS This posting is provided "AS IS" with no warranties, and confers no rights. "Cwhitmore" <Cwhitm***@discussions.microsoft.com> wrote in message news:427F7DD1-2F15-43E4-AE8C-9D155A41072C@microsoft.com... > 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
How to create a client side certificate on a Windows 2000 Server
localhost vs IP address in IE Server security Problem with Integrated Windows authentication on SSL connection Web Application cannot create folder in wwwroot\ Problem with securing of Windows 2000 SP4 IIS with AD Windows 2003 SSL setup problem on IIS 5 Check User's Permissions on a file/folder in IIS 6.0 by ASP or ASP SSL & The page cannot be displayed Permissions wizard |
|||||||||||||||||||||||