Search The ForumSearch   RegisterRegister  LoginLogin

MailBee.NET Queue

 AfterLogic Forum : MailBee.NET Queue
Subject Topic: Multiple Servers in Queue Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
msinca
Newbie
Newbie


Joined: 21 August 2014
Location: United States
Online Status: Offline
Posts: 11
Posted: 07 October 2014 at 3:45pm | IP Logged Quote msinca

In the Documentation for the Mailbee.Net Queue it says for the app.config

"You can define multiple <SmtpServer> entries in <SmtpServers> section."

I don't see much more info on using multiple servers. Is there some documentation on how to use multiple servers? (I see some info on "Direct Send" but not much on multiple servers)

Is it only for failover? Or, is there a way to use SubmitToPickupFolder and indicate which SMTP server to use?

If I wanted to dynamically specify which SMTP server to use, will I need to have multiple versions of Mailbee.Net Queue running in the background and a dedicated pickup folder for each one?


Thanks for your help.

Back to Top View msinca's Profile Search for other posts by msinca
 
Alex
AfterLogic Support
AfterLogic Support
Avatar

Joined: 19 November 2003
Online Status: Offline
Posts: 2206
Posted: 08 October 2014 at 2:43am | IP Logged Quote Alex

You may check MailBee.NET Objects documentation on that. .NET Queue is just an advanced example of using MailBee.NET Objects.

Send multiple individual e-mails or send through multiple servers

When you add multiple entries to SmtpServers collection, the load will be distributed amongst all of them in case if you add them with the same priority.

Regards,
Alex
Back to Top View Alex's Profile Search for other posts by Alex
 
msinca
Newbie
Newbie


Joined: 21 August 2014
Location: United States
Online Status: Offline
Posts: 11
Posted: 08 October 2014 at 11:44am | IP Logged Quote msinca

Thanks for the reply. So if I wanted to dynamically specify in my code which SMTP server to use, I would need to register two(2) .Net Queue services. Then I could specify that I want to send Email A to SMTP1 and Email B to SMTP2. Would that be correct?

Is there a recommended installation procedure for installing 2 services with the same name on my server?

Back to Top View msinca's Profile Search for other posts by msinca
 
Alex
AfterLogic Support
AfterLogic Support
Avatar

Joined: 19 November 2003
Online Status: Offline
Posts: 2206
Posted: 08 October 2014 at 11:53am | IP Logged Quote Alex

You just set different service name for them. As source code is there, you can easily change this (MailBee.NET Queue\MessageQueue.cs, const QueueServiceName).

Regards,
Alex
Back to Top View Alex's Profile Search for other posts by Alex
 
msinca
Newbie
Newbie


Joined: 21 August 2014
Location: United States
Online Status: Offline
Posts: 11
Posted: 08 October 2014 at 2:36pm | IP Logged Quote msinca

Thanks for the reply. One last question. You say "As the source code is there" but I don't see any VB or C# project code in the Mailbee.Net Queue msi file download.

I see in the help file I should be looking for "MessageQueue.cs" but it was not part of the .msi installation. Should I be looking for it somewhere else?
Back to Top View msinca's Profile Search for other posts by msinca
 
Alex
AfterLogic Support
AfterLogic Support
Avatar

Joined: 19 November 2003
Online Status: Offline
Posts: 2206
Posted: 09 October 2014 at 2:15am | IP Logged Quote Alex

When you run MailBee.NET Queue Menu app, it has Browse Source Code item. That's it.

Regards,
Alex
Back to Top View Alex's Profile Search for other posts by Alex
 
msinca
Newbie
Newbie


Joined: 21 August 2014
Location: United States
Online Status: Offline
Posts: 11
Posted: 09 October 2014 at 11:02am | IP Logged Quote msinca

Hi Alex,

Thanks again for the help. I found the source code - I didn't realize it was in my Documents folder.

Using VS 2013, I made the quick change to the MessageQueue.cs file and changed it to

public const string QueueServiceName = "Mailbee.Net Queue2";

Then I Rebuild the exe and renamed it to MailbeeNetQueue2.exe (and the config file). I modified the installer/uninstaller to point to that file and ran the service installer (InstallAndStartService.bat). Everything seemed to install correctly and I saw the "Mailbee.Net Queue2" service in my list. Great!

However, I could not get the service to run. It kept failing out. I checked the Event Logs and am attaching what I found below.

Sorry to be a pain here. Any advice is welcome.

Regards
Mike


------------------------------------------------------------------------

INFORMATION ERROR #1

Fault bucket , type 0
Event Name: CLR20r3
Response: Not available
Cab Id: 0

Problem signature:
P1: mailbeenetqueue2.exe
P2: 1.0.5395.15087
P3: 5436b65f
P4: MailBeeNetQueue
P5: 1.0.5395.15087
P6: 5436b65f
P7: 4
P8: 3e0
P9: System.IO.FileLoadException
P10:

Attached files:

These files may be available here:
C:\ProgramData\Microsoft\Windows\WER\ReportQueue\AppCrash_mailbeenetqueue2_3fda13d8e38dd5315497e9f6e12cc6e95b745cf5_9e2a2fa4

Analysis symbol:
Rechecking for solution: 0
Report Id: 6c757a04-4fdd-11e4-9429-00155da52275


INFORMATION ERROR #2


Fault bucket , type 0
Event Name: CLR20r3
Response: Not available
Cab Id: 0

Problem signature:
P1: mailbeenetqueue2.exe
P2: 1.0.5395.15087
P3: 5436b65f
P4: MailBeeNetQueue
P5: 1.0.5395.15087
P6: 5436b65f
P7: 4
P8: 3e0
P9: System.IO.FileLoadException
P10:

Attached files:

These files may be available here:
C:\ProgramData\Microsoft\Windows\WER\ReportQueue\AppCrash_mailbeenetqueue2_3fda13d8e38dd5315497e9f6e12cc6e95b745cf5_9efe5cee

Analysis symbol:
Rechecking for solution: 0
Report Id: 7359c62c-4fdd-11e4-9429-00155da52275
Report Status: 4










Version=1
EventType=CLR20r3
EventTime=130573509163962500
ReportType=2
Consent=1
ReportIdentifier=6c757a04-4fdd-11e4-9429-00155da52275
Response.type=4
Sig[0].Name=Problem Signature 01
Sig[0].Value=mailbeenetqueue2.exe
Sig[1].Name=Problem Signature 02
Sig[1].Value=1.0.5395.15087
Sig[2].Name=Problem Signature 03
Sig[2].Value=5436b65f
Sig[3].Name=Problem Signature 04
Sig[3].Value=MailBeeNetQueue
Sig[4].Name=Problem Signature 05
Sig[4].Value=1.0.5395.15087
Sig[5].Name=Problem Signature 06
Sig[5].Value=5436b65f
Sig[6].Name=Problem Signature 07
Sig[6].Value=4
Sig[7].Name=Problem Signature 08
Sig[7].Value=3e0
Sig[8].Name=Problem Signature 09
Sig[8].Value=System.IO.FileLoadException
DynamicSig[1].Name=OS Version
DynamicSig[1].Value=6.1.7601.2.1.0.272.7
DynamicSig[2].Name=Locale ID
DynamicSig[2].Value=1033
UI[2]=C:\MailBeeNetQueue2\MailBeeNetQueue2.exe
LoadedModule[0]=C:\MailBeeNetQueue2\MailBeeNetQueue2.exe
LoadedModule[1]=C:\Windows\SYSTEM32\ntdll.dll
LoadedModule[2]=C:\Windows\SYSTEM32\MSCOREE.DLL
LoadedModule[3]=C:\Windows\system32\KERNEL32.dll
LoadedModule[4]=C:\Windows\system32\KERNELBASE.dll
LoadedModule[5]=C:\Windows\system32\ADVAPI32.dll
LoadedModule[6]=C:\Windows\system32\msvcrt.dll
LoadedModule[7]=C:\Windows\SYSTEM32\sechost.dll
LoadedModule[8]=C:\Windows\system32\RPCRT4.dll
LoadedModule[9]=C:\Windows\Microsoft.NET\Framework64\v4.0.30319\mscoreei.dll
LoadedModule[10]=C:\Windows\system32\SHLWAPI.dll
LoadedModule[11]=C:\Windows\system32\GDI32.dll
LoadedModule[12]=C:\Windows\system32\USER32.dll
LoadedModule[13]=C:\Windows\system32\LPK.dll
LoadedModule[14]=C:\Windows\system32\USP10.dll
LoadedModule[15]=C:\Windows\system32\IMM32.DLL
LoadedModule[16]=C:\Windows\system32\MSCTF.dll
LoadedModule[17]=C:\Windows\Microsoft.NET\Framework64\v2.0.50727\mscorwks.dll
LoadedModule[18]=C:\Windows\WinSxS\amd64_microsoft.vc80.crt_1fc8b3b9a1e18e3b_8.0.50727.4940_none_88df89932faf0bf6\MSVCR80.dll
LoadedModule[19]=C:\Windows\system32\shell32.dll
LoadedModule[20]=C:\Windows\system32\ole32.dll
LoadedModule[21]=C:\Windows\system32\profapi.dll
LoadedModule[22]=C:\Windows\assembly\NativeImages_v2.0.50727_64\mscorlib\fe6ac93181b40a571892e14bfb9d65f2\mscorlib.ni.dll
LoadedModule[23]=C:\Windows\system32\CRYPTBASE.dll
LoadedModule[24]=C:\Windows\assembly\NativeImages_v2.0.50727_64\System\62a2ae4ad514f18668a321ed9a69b1e2\System.ni.dll
LoadedModule[25]=C:\Windows\assembly\NativeImages_v2.0.50727_64\System.ServiceProce#\72c3df4b0f40787ef5940ce4719f3245\System.ServiceProcess.ni.dll
LoadedModule[26]=C:\Windows\Microsoft.NET\Framework64\v2.0.50727\mscorjit.dll
LoadedModule[27]=C:\Windows\assembly\NativeImages_v2.0.50727_64\System.Configuratio#\e7f768314e64d0bfd9d3b5c215ee5c73\System.Configuration.Install.ni.dll
LoadedModule[28]=C:\MailBeeNetQueue2\MailBeeNetQueueCore.dll
LoadedModule[29]=C:\Windows\system32\CRYPTSP.dll
LoadedModule[30]=C:\Windows\system32\rsaenh.dll
LoadedModule[31]=C:\Windows\system32\VERSION.dll
LoadedModule[32]=C:\Windows\system32\apphelp.dll
FriendlyEventName=Stopped working
ConsentKey=CLR20r3
AppName=MailBeeNetQueue2.exe
AppPath=C:\MailBeeNetQueue2\MailBeeNetQueue2.exe
ReportDescription=Stopped working
Back to Top View msinca's Profile Search for other posts by msinca
 
Alex
AfterLogic Support
AfterLogic Support
Avatar

Joined: 19 November 2003
Online Status: Offline
Posts: 2206
Posted: 09 October 2014 at 11:10am | IP Logged Quote Alex

Perhaps, that was not the only place to change. I did search of "MailBee.NET Queue" string over the entire solution and found

public const string ServiceName = "MailBee.NET Queue";

in MailBee.NET Queue API\QueueRunner.cs.

Regards,
Alex
Back to Top View Alex's Profile Search for other posts by Alex
 
msinca
Newbie
Newbie


Joined: 21 August 2014
Location: United States
Online Status: Offline
Posts: 11
Posted: 10 October 2014 at 3:28pm | IP Logged Quote msinca

Hi Alex,

Thanks for the reply. I figured it out.

I changed the name in a few different places (I think I changed it in 3 parts).

However, more importantly, I needed to copy the recompiled "MailBeeNetQueueCore.dll" (different project in the solution) as well as "MailbeeNetQueue.exe". When I rebuilt the entire solution including the Core files, and then used that compiled output in my Mailbee Net Queue 2 folder, it worked and I now have a Mailbee.Net Queue2 service running.

Thanks for the help.
Back to Top View msinca's Profile Search for other posts by msinca
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump

Powered by Web Wiz Forums version 7.9
Copyright ©2001-2004 Web Wiz Guide