Hello,
I followed your advice and gave it a new name.
I also added those code lines to Web.Config and I get an error:
Constructor on type 'MyApp.Application.LinqToSqlErrorLog' not found.
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.MissingMethodException: Constructor on type
'MyApp.Application.LinqToSqlErrorLog' not found.
[MissingMethodException: Constructor on type
'BonsAlunos.Application.LinqToSqlErrorLog' not found.]
System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr,
Binder binder, Object[] args, CultureInfo culture, Object[]
activationAttributes) +1051
System.Activator.CreateInstance(Type type, BindingFlags
bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object
[] activationAttributes) +111
System.Activator.CreateInstance(Type type, Object[] args) +16
Elmah.SimpleServiceProviderFactory.CreateFromConfigSection(String
sectionName) +309
Elmah.ErrorLog.GetDefault(HttpContext context) +132
Elmah.ErrorPageBase.get_ErrorLog() +60
Elmah.ErrorLogPage.OnLoad(EventArgs e) +387
System.Web.UI.Control.LoadRecursive() +50
System.Web.UI.Page.ProcessRequestMain(Boolean
includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
+627
I added the following to my code but keep having the error:
public class LinqToSqlErrorLog : ErrorLog {
public LinqToSqlErrorLog() {
}
// Rest of the code as posted before
}
Any idea what I am doing wrong?
Thanks,
Miguel