Important Notice from AspDotNetStorefront
It is with dismay that we report that we have been forced, through the action of hackers, to shut off write-access to this forum. We are keen to leave the wealth of material available to you for research. We have opened a new forum from which our community of users can seek help, support and advice from us and from each other. To post a new question to our community, please visit: http://forums.vortx.com
Results 1 to 8 of 8

Thread: Global error handler

  1. #1
    96spec is offline Member
    Join Date
    Apr 2009
    Posts
    76

    Default Global error handler

    Currently when we are testing our website locally, we do not get any email notifications of when asp.net exception is thrown or when we see an error page. However, the same code base uploaded to our live server would have email notifications coming whenever we see an error page.

    Was wondering if anyone knows the cause of this and what appconfig value should we be looking at to toggle / change the email address of where the error logs should go?

  2. #2
    George the Great is offline Senior Member
    Join Date
    Nov 2006
    Location
    Cleveland, OH
    Posts
    1,792

    Default

    Check all of the appconfigs in the EMAIL config group (select EMAIL from the Config Groups dropdown box on the appconfig edit page in the admin section). Make sure that the mail server, username, and password are correct, and make sure that the email addresses are correct so that someone will actually get the emails. Also make sure that the SendEMailOnApplicationError appconfig is set to true. The email will be delivered to the email address configured for the MailMe_ToAddress appconfig parameter and will be sent from the MailMe_FromAddress email address. You'll probably also want to check the mail server logs of the mail server that you are using to make sure that the email coming from the local copy of the site isn't being blocked. Also check any anti-virus/firewall/network protection/monitoring software that may be installed on the local machine to ensure it's not blocking the outbound traffic.
    <a href="http://www.aspdotnetstorefront.com">Shopping Cart Software</a>

  3. #3
    jimsawyers is offline Junior Member
    Join Date
    Jul 2008
    Posts
    26

    Default

    Hi George, the app config variable SendEMailOnApplicationError is not setup in our system by default. Can we add it? Also, is there any way to use a separate email address for order confirmations and errors? Our employees who process the orders do not to see all the errors.
    Thx,
    Jim

  4. #4
    Caedmon is offline Junior Member
    Join Date
    Jun 2009
    Posts
    3

    Default

    I'm not finding a reference to the SendEMailOnApplicationError value in the code. Are you sure this will work.

    Same question as above -- How do we setup a global "catch" of system errors.

    Thanks!

  5. #5
    AspDotNetStorefront Staff - Scott's Avatar
    AspDotNetStorefront Staff - Scott is offline Administrator
    Join Date
    Mar 2007
    Location
    Ashland, OR
    Posts
    2,390

    Default

    The code for that is in a section of the source that you don't get access to, where our licensing is done. Just create that AppConfig and set it to true and you should be good.


  6. #6
    ssgumby is offline Senior Member
    Join Date
    Feb 2009
    Posts
    683

    Default

    I can confirm what Scott says will work. I tried it and am getting exception emails now.


    Scott, do you know if we can put a comma delimited list of emails to have this and order emails sent to?

  7. #7
    adamroof is offline Junior Member
    Join Date
    Dec 2007
    Posts
    20

    Default

    "Just create that AppConfig and set it to true and you should be good."

    Under what category? MISC?
    Can you not include this config in the update to latest sql script?

    the SendEMailOnApplicationError not existing causes a null exception in the AppLogic.cs 10300,

    Code:
    public static String AppConfig(String paramName)
            {
                if (AppConfigTable[paramName] != null) <---------------
                {
                    return AppConfigTable[paramName].ConfigValue;
                }
                else
                {
                    return "";
                }
            }

  8. #8
    Dusty is offline Member
    Join Date
    Jun 2009
    Posts
    176

    Default

    You should create the SendEMailOnApplicationError AppConfig under the e-mail group, though it doesn't matter under what group it's created related to the issue you're havving, as the settings are keyed on their name.

    Dusty
    ASPDotNetStorefront Staff