Ver Mensaje Individual
  #1 (permalink)  
Antiguo 09/10/2009, 17:04
Avatar de gakutaru
gakutaru
 
Fecha de Ingreso: agosto-2005
Ubicación: frente a mi NtbK
Mensajes: 239
Antigüedad: 19 años, 5 meses
Puntos: 6
Pregunta Registrar Eventos en un .LOG

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>