Author Topic: Message Handler quit working  (Read 2872 times)

ddddd13

  • Full Member
  • ***
  • Posts: 118
    • View Profile
Message Handler quit working
« on: August 05, 2019, 06:43:59 PM »
Archie;

It used to work. I have attached the event and error logs for emailsrvr.com

« Last Edit: August 05, 2019, 07:17:29 PM by ddddd13 »

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5322
    • View Profile
    • AdvancedHMI
Re: Message Handler quit working
« Reply #1 on: August 05, 2019, 08:43:19 PM »
This looks like it reverted back to the original version that is not mult-threaded. Check MessageHandler.vb and see how many lines of code it has.

ddddd13

  • Full Member
  • ***
  • Posts: 118
    • View Profile
Re: Message Handler quit working
« Reply #2 on: August 05, 2019, 08:51:34 PM »
Archie;

403 it is attached

Thanks,
Dave

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5322
    • View Profile
    • AdvancedHMI
Re: Message Handler quit working
« Reply #3 on: August 05, 2019, 09:48:45 PM »
Something doesn't seem to match up. If you look at MessageHandler.vb at line 295, you will see the error log will write this:

ErrorLogging.LogError("Send Message(v1.1) : " & ex.Message)

But in the ErrorLog.txt you attached above does not have the "(1.1)"

Put a break point at line 295 and run the program again.

ddddd13

  • Full Member
  • ***
  • Posts: 118
    • View Profile
Re: Message Handler quit working
« Reply #4 on: August 05, 2019, 10:14:05 PM »
Archie;

I redownloaded and reinstalled the message handler it is now

    ErrorLogging.LogError("Send Message(v1.1) : " & ex.Message)
at line 295

I put the break point in at 295 and got the attached error and event log

The output window has

Exception thrown: 'System.InvalidOperationException' in System.dll
Exception thrown: 'System.InvalidOperationException' in System.dll

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5322
    • View Profile
    • AdvancedHMI
Re: Message Handler quit working
« Reply #5 on: August 05, 2019, 10:25:07 PM »
You forgot to attach ErrorLog.txt

ddddd13

  • Full Member
  • ***
  • Posts: 118
    • View Profile
Re: Message Handler quit working
« Reply #6 on: August 05, 2019, 10:27:46 PM »
Archie;

here it is

Thanks,
Dave

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5322
    • View Profile
    • AdvancedHMI
Re: Message Handler quit working
« Reply #7 on: August 05, 2019, 10:40:11 PM »
There still seems to be a version difference from what I have. I see no code that generates this message:

8/5/2019 9:09:37 PM - Send Message : This operation cannot be performed while a message is being sent.

1) View the MessageHandler code
2) Ctrl-F to search
3) Search for "- Send Message", then tell me what line and file it goes to.

In the files I have, there is no match, so I am unable to find where that error originates.

Maybe that is the old remnants. Delete the ErrorLog.txt, then run again to generate a new one.


ddddd13

  • Full Member
  • ***
  • Posts: 118
    • View Profile
Re: Message Handler quit working
« Reply #8 on: August 05, 2019, 10:58:37 PM »
Archie;

Its on line 295
  ErrorLogging.LogError("Send Message(v1.1) : " & ex.Message)
I found an old version of the program that DID send the emails and copied the settings to the new message handler properties. The following is the error and event log.

Thanks,
Dave

ddddd13

  • Full Member
  • ***
  • Posts: 118
    • View Profile
Re: Message Handler quit working
« Reply #9 on: August 05, 2019, 10:59:27 PM »
error log

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5322
    • View Profile
    • AdvancedHMI
Re: Message Handler quit working
« Reply #10 on: August 05, 2019, 11:15:30 PM »
When I Google the error message, it says it could be a lot of things such as an incorrect email address:

https://askleo.com/what_does_mailbox_unavailable_mean/

ddddd13

  • Full Member
  • ***
  • Posts: 118
    • View Profile
Re: Message Handler quit working
« Reply #11 on: August 05, 2019, 11:19:49 PM »
Archie;

I found a version that works. It will take me a little time to copy my changes from the lastest version back to this version.

To be sure I have the latest version of message handler. It has 403 lines, correct?

The next problem I can't remember where to set the server address for the SQL server. There doesn't seem to be a properties window for it.

Thanks,
Dave

ddddd13

  • Full Member
  • ***
  • Posts: 118
    • View Profile
Re: Message Handler quit working
« Reply #12 on: August 05, 2019, 11:21:01 PM »
Archie;

FYI the version that works is a version prior to all the problems with VS.

Thanks,
Dave

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5322
    • View Profile
    • AdvancedHMI
Re: Message Handler quit working
« Reply #13 on: August 05, 2019, 11:32:03 PM »
I found a version that works. It will take me a little time to copy my changes from the lastest version back to this version.

To be sure I have the latest version of message handler. It has 403 lines, correct?

The next problem I can't remember where to set the server address for the SQL server. There doesn't seem to be a properties window for it.
The version I have that I think is the latest has 403 lines of code.

SQL Server for the MessageHandler?

ddddd13

  • Full Member
  • ***
  • Posts: 118
    • View Profile
Re: Message Handler quit working
« Reply #14 on: August 05, 2019, 11:35:56 PM »
Archie;

No, for the Data Base. I think its under solution explore SQL. Is that right?

Thanks,
Dave