Ask a Question related to ASP.NET Web Services, Design and Development.
-
JMMB #1
Security Exception when writting to EventLog
When trying to execute the following code in a web service, I get the
enclosed error. Everyone has full control do the registry and Security System
configured with the default "Full Control" for all code.
thanks a lot.
WEBMETHOD:
EventLog log = new EventLog("ContosoLog");
log.Source = "MyServiceApplication";
log.WriteEntry("My sessionID", EventLogEntryType.Warning);
ERROR:
System.Web.Services.Protocols.SoapException: Server was unable to process
request. ---> System.Security.SecurityException: Requested registry access is
not allowed. at Microsoft.Win32.RegistryKey.OpenSubKey(String name, Boolean
writable) at System.Diagnostics.EventLog.FindSourceRegistration (String
source, String machineName, Boolean readOnly) at
System.Diagnostics.EventLog.SourceExists(String source, String machineName)
at System.Diagnostics.EventLog.WriteEntry(String message, EventLogEntryType
type, Int32 eventID, Int16 category, Byte[] rawData) at
System.Diagnostics.EventLog.WriteEntry(String message, EventLogEntryType
type, Int32 eventID, Int16 category) at
System.Diagnostics.EventLog.WriteEntry(String message, EventLogEntryType
type, Int32 eventID) at System.Diagnostics.EventLog.WriteEntry(String
message, EventLogEntryType type) at MyService.Service1.SessionID() in
c:\inetpub\wwwroot\myservice\service1.asmx.cs:line 79 --- End of inner
exception stack trace ---
JMMB Guest
-
UserControl Security Exception
I am trying to write directly to the printer as in article KB322090 but via a usercontrol hosted in an ASPX page. When I get the the OpenPrinter... -
Security Exception
On Tue, 06 Jul 2004 20:56:52 GMT, "jamie" <jamie.jones@virgin.net> wrote: It's not an IIS issue. Try annoying just the other five groups for... -
Security Exception on ASP.Net app
I've recently moved an ASP.Net app to our deployment server after it was verified on our integration test server. On the deployment server I am... -
strange xsl security exception under asp.net
hey all, if anyone has any info on the following (or any experiments to suggest), i'd be grateful. i'm at a complete loss. exception: ... -
help with Security Exception ??
Hi, I am getting the following error: Security Exception Description: The application attempted to perform an operation not allowed by the...



Reply With Quote

