Tengo un Codigo que Registra Eventos de mi aplicacion en un .LOG
pero debuelve el siguiente error
que debo configurar para poder generar el .LOG?
se que el error no esta en el codgio, pero lo adjunto de todas maneras
Código HTML:
<%@ Import Namespace="System.Diagnostics" %>
<%@ Page Language="VB" Debug="true" %>
<Script Runat="Server">
Sub Button_Click( s As Object, e As EventArgs )
Dim objLog As EventLog
If Not EventLog.SourceExists( "myApp" ) Then
EventLog.CreateEventSource( "myApp", "Application" )
End If
objLog = New EventLog
objLog.Source = "myApp"
objLog.WriteEntry( txtLogEntry.Text, EventLogEntryType.Information )
End Sub
</Script>
<html>
<head><title>AddEventLog.aspx</title></head>
<body>
<form Runat="Server">
<asp:TextBox ID="txtLogEntry" Runat="Server" />
<asp:Button Text="Add Event!" OnClick="Button_Click" Runat="Server" />
</form>
</body>
</html>