maoyuan121 / elmah

Automatically exported from code.google.com/p/elmah
Apache License 2.0
0 stars 0 forks source link

XmlFileErrorLog can't find xml file #154

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.setup elmah as per instructions
2.
<errorLog type="Elmah.XmlFileErrorLog, Elmah" logPath="C:\OfstedErrors.xml" />
3.use the elmah.axd/test

What is the expected output? What do you see instead?
should log the error in the xml file.
instead gives the following error:-
Could not find a part of the path 'C:\OfstedErrors.xml'.

Please use labels and text to provide additional information.
running VS2008 sp1 on XP

Original issue reported on code.google.com by hughgall...@gmail.com on 29 Jan 2010 at 12:02

GoogleCodeExporter commented 9 years ago
Hi there!

From what you've put, I think you may be a little confused as to how the 
XmlErrorLog 
works. The logPath attribute specifies a FOLDER where the Xml files are stored. 
Each 
unhandled exception results in a separate Xml file being created. They are not 
amalgamated into one large Xml file.

So you probably want to create a folder called C:\OfstedErrors\ and then set 
logPath="C:\OfstedErrors\".

Please advise on the outcome so this issue can be progressed or closed.

Thanks,

James

Original comment by jamesdriscoll71 on 29 Jan 2010 at 12:14

GoogleCodeExporter commented 9 years ago
Thanks for your help that fixed it.

I couldn't see any installation instructions on the download page for your 
project. I
think that even some basic installation instructions might help developers.

Anyway, great project, keep up the good work, we need you!

Original comment by hughgall...@gmail.com on 29 Jan 2010 at 12:37

GoogleCodeExporter commented 9 years ago

Original comment by jamesdriscoll71 on 29 Jan 2010 at 12:54