Configuring ELMAH: Unrecognized config section error

后端 未结 1 1848
北海茫月
北海茫月 2021-01-11 22:11

Setup:

  • Windows XP
  • .NET Framework 3.5 SP1
  • ASP .NET MVC Version 1

I\'ve been trying to set up ELMAH by following the instruction

相关标签:
1条回答
  • 2021-01-11 22:29

    Xml is case sensitive:

    <section name="errorLog" type="Elmah.ErrorLogSectionHandler, Elmah"/>
    

    vs

    <elmah>
      <errorlog type="Elmah.XmlFilerErrorLog, Elmah" logPath="~/App_Data" />
    </elmah>
    

    Rename the errorlog element to errorLog and it will (should) work.

    0 讨论(0)
提交回复
热议问题