orchardcms - Orchard Emailing Errors -
I'm using an orchard to enable my new theme and whenever I try to enable my theme to preview (even in preview mode) I get it.
"The page can not be displayed due to internal server error." I have tried to close customErrors in web.config and nothing has changed, so I started playing with the configuration of log4net. I have the structure below:
& lt; Epander Name = "Error-File" Type = "Orchard.Living.Orchardfile Apache" & gt; & Lt ;! - Error log: FATAL subsets of error and debug logs - & gt; & Lt; File value = "App_Data / log / garden-error" /> & Lt; AppendToFile value = "true" /> & Lt ;! - Instant flush on error log, to avoid data loss with sudden end - & gt; & Lt; Instant flush value = "wrong" /> & Lt; StaticLogFileName value = "wrong" /> & Lt; Rolling style value = "date" /> & Lt; Date pattern = "- yyyy.mm.dd'log '" /> & Lt ;! - Stop ORCHARD.exe from displaying locking error messages - & gt; & Lt; Locking model type = "log4net.Appender.FileAppender + MinimalLock" /> & Lt; Layout type = "log4net.Layout.PatternLayout" & gt; & Lt; Conversion value = "% date [% thread]% logger -% message% newline" /> & Lt; / Layout & gt; & Lt; / Appender & gt; & Lt; Appender name = "smartapaker" type = "log4net.Appender.SmtpAppender" & gt; & Lt; Threshold value = "warn" /> & Lt; To value = "to@email.com" /> & Lt; Value = "from@email.com" /> & Lt; Subject value = "Site error" /> & Lt; SmtpHost value = "mailserver.com" /> & Lt; Buffer Size = "2147483647" /> & Lt; Loss value = "wrong" /> & Lt; Layout type = "log4net.Layout.PatternLayout" & gt; & Lt; Conversion value = "% new line% date [% thread]% -5 level% logger [% properties {NDC}} -% message% newline% newline% newline" & gt; & Lt; / Layout & gt;
In the first part of the config, it is incredibly emotional if I change the appendToFile incorrectly (creating a new file for every error) So nothing was found and no files were created. When this is wrong, an error log is created but nothing is written for it (which means it is buffard). Also, when I change the "instant flush" correctly, an error log has not been created / created / I tried to add email configuration information based on Bing / Google based on search, but it does nothing (1 and int Buffer size of .MaxValue was tried). That error has not been logged and no email has been sent.
What I have to do is that what is the error, but I have been blocked at every turn and I have to see the web server event log myself. Any suggestions here? Another thing is that I have restarted the app pool some times, hopefully there will be a reason for logging errors, but there is no luck - the file size remains at 0.
In your example, & lt; Epander Name = "smtpAppender" type = "log4net.Appender.SmtpAppender" & gt; is not closed with & lt; / Appender & gt; Is this off well on your server?
Comments
Post a Comment