log file not found

Posted By Supermac Mon 20 Jul 2015
Add to Favorites0
Author Message
Supermac
 Posted Mon 20 Jul 2015
Supreme Being

Supreme Being - (84,851 reputation)Supreme Being - (84,851 reputation)Supreme Being - (84,851 reputation)Supreme Being - (84,851 reputation)Supreme Being - (84,851 reputation)Supreme Being - (84,851 reputation)Supreme Being - (84,851 reputation)Supreme Being - (84,851 reputation)Supreme Being - (84,851 reputation)

Group: Forum Members
Last Active: Wed 22 Jul 2020
Posts: 153, Visits: 874
Maybe I found a couple of errors in \UserControls\Back\_AdminErrorLogs.ascx.vb code.

In btnRefresh_Click function and in lbxFiles_SelectedIndexChanged function, strFilePath string is malformed... correct format should be:
Dim strFilePath As String = Server.MapPath("~/" & ConfigurationManager.AppSettings("errorlogpath") & "/Errors/" & lbxFiles.SelectedValue)


I'm debated if it's correct that log files deletion it deletes even Errors folder....
Paul
 Posted Mon 20 Jul 2015
große Käse

große Käse - (522,286 reputation)große Käse - (522,286 reputation)große Käse - (522,286 reputation)große Käse - (522,286 reputation)große Käse - (522,286 reputation)große Käse - (522,286 reputation)große Käse - (522,286 reputation)große Käse - (522,286 reputation)große Käse - (522,286 reputation)

Group: Administrators
Last Active: Tue 10 Sep 2024
Posts: 807, Visits: 2,748
Well spotted.

Deleting the Errors folder should be fine. If it is not found, the code that writes error messages will create it. I tried and got it to both delete, and get rewritten if I generated an error, so I think your fix is all that is required. I've update the file and checked into source control, it should be in the next zip build but is available already through the source control on codeplex.


--
If my post solves your issue, can you 'Mark as Answer' so it's easier for other users to find in future.

If you would like to be informed of new features, new releases, developments and occasional special bonuses, please sign up to our mailing list: http://bit.ly/19sKMZb

Similar Topics

Expand / Collapse

Reading This Topic

Expand / Collapse

Back To Top