Ask a Question related to ASP.NET Security, Design and Development.
-
A.M #1
Access to registery
Hi,
When i call :
System.Diagnostics.EventLog.WriteEntry(string);
ASP.NET says :
System.Security.SecurityException: Requested registry access is not allowed.
What kind of permission should i give to ASPNET user?
Thanks,
Ali
A.M Guest
-
Web Service + Anon Access, but getting 401 Access Denied Error
I have a simple webservice that just returns a string. The security for this is set to windows authentication in IIS (XP Professional) and anonymous... -
Access 2002 PDFWriter VBA Code w/WinXP does not work like Access 2000
I am trying to print an Access 2002 report (Windows XP OS) as a PDF. I had success with Access 2000 in a Windows 2000 environment, but as soon as I... -
Access Violation when using Visual Interdev to access Oracle
I am running Windows 200 Pro, IIS 5.0 and trying to connect to an Oracle 8.1 database. Prior to applying a security patch to W2k, the ASP... -
#26093 [NEW]: access variable cause access violation
From: bruno dot faust at ig dot com dot br Operating system: XP SP1 latest PHP version: 4.3.3 PHP Bug Type: Reproducible... -
Access denied when creating Access application object
In an ASP file I am running the following in VBScript in order to extract data from an Access 2002 MDB file which is physically located in the... -
Steven Cheng[MSFT] #2
RE: Access to registery
Hi Ali,
Thank you for using MSDN Newsgroup! My name is Steven, and I'll be
assisting you on this issue.
From your description, you encountered the
"System.Security.SecurityException: Requested registry access is not
allowed."
exception when try to add eventlog via
"System.Diagnostics.EventLog.WriteEntry(string );" in ASP.NET application.
If there is anything I misunderstood, please feel free to let me know.
Based on my research, this seem to be a common issue which is due to :
By default, the user token of the ASP.NET worker process is ASPNET (or
NetworkService for applications that run on Internet Information Services
[IIS] 6.0). The problem in the "Symptoms" section occurs because your
account does not have the correct user rights to create an event source.
Also, there is a KB article which has provided the solution on this issue,
you may check it out to see whether it helps:
#PRB: "Requested Registry Access Is Not Allowed" Error Message When ASP.NET
Application Tries to Write New EventSource in the EventLog
[url]http://support.microsoft.com/?id=329291[/url]
If you have need any further assistance, please feel free to let me know.
Regards,
Steven Cheng
Microsoft Online Support
Get Secure! [url]www.microsoft.com/security[/url]
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
Steven Cheng[MSFT] Guest



Reply With Quote

