configure Board.Mailer.Service.exe.config
Hello Davide Genini,
I would like to comment this document: Board Mailer Service (version 3), but i don't see any comment features at the bottom at the document as i am used to see it, e.g. in How to setup Microsoft IIS with Board 10 Web Server (HTML 5).
- Is it possible to add the "add a comment" feature to the document Board Mailer Service?
- otherwise i ask here my question: I try to configure the Board Mailer service and i have the error named in the document:
Windows error when attempting to start the Board Mailer Service: "1053 - The server did not
respond to the start or control request in a timely fashion."
I have configured the fles according to the document (i hope) and to the release notes for B11.1:
Broadcasting features installation
The broadcasting features (subscription, send to and broadcasting) require an additional service that execute the mailing function. The web API Engine installation (self-hosted) deploys a new service "BoardMailerService" that is used for the Broadcasting like functions. If the Web API Engine has been deployed under IIS, this new service is not automatically deployed on the instance. An additional set of CMD commands must be run on the server to deploy that service.
Below the commands for the "BoardMailerService" deploy:
"C:\Windows\Microsoft.NET\Framework\v4.0.30319\installutil.exe" "C:\inetpub\wwwroot\B10WEB\Bin\Board.Mailer.Service.exe"
sc config BoardMailerService start=auto
sc start BoardMailerService
Where "C:\inetpub\wwwroot\B10WEB" is the IIS path where the BOARD web application is hosted.
I have an on premises Server installation (Board 11.1 with IIS)
The files are configured as follow:
- Broadcasting.config (in folder C:\inetpub\wwwroot\BOARDWEB11_1\App_Data\config)
<broadcastingConfiguration><br /> <add key="internalSmtpAddress" value="smtp.xyz"/><br /> <add key="internalSmtpPort" value="587"/><br /> <add key="internalSmtpEnableSsl" value="on"/><br /> <add key="mailerUsername" value="smtp-blabla"/><br /> <add key="mailerPassword" value="Clear_Pwd_value"/><br /> <add key="workingFolder" value="C:\...\BOARD\BoardApps\Board\z_Broadcasted_Files"/><br /> <add key="mailerSender" value="board_broadcast@blabla.com"/><br /> <add key="pollingMinutes" value="5"/><br /></broadcastingConfiguration>
- Board.Mailer.Service.exe.config (in folder C:\inetpub\wwwroot\BOARDWEB11_1\bin)
<span class="prolog token"><?xml version="1.0" encoding="utf-8"?></span><br /><span class="token tag"><span class="token tag"><span class="punctuation token"><</span>configuration</span><span class="punctuation token">></span></span><br /> <span class="token tag"><span class="token tag"><span class="punctuation token"><</span>appSettings</span> <span class="attr-name token">configSource</span><span class="attr-value token"><span class="punctuation token">=</span><span class="punctuation token">"</span>App_Data\config\mailer.config<span class="punctuation token">"</span></span><span class="punctuation token">/></span></span><br /> <span class="token tag"><span class="token tag"><span class="punctuation token"><</span>startup</span><span class="punctuation token">></span></span><br /> <span class="token tag"><span class="token tag"><span class="punctuation token"><</span>supportedRuntime</span> <span class="attr-name token">version</span><span class="attr-value token"><span class="punctuation token">=</span><span class="punctuation token">"</span>v4.0<span class="punctuation token">"</span></span> <span class="attr-name token">sku</span><span class="attr-value token"><span class="punctuation token">=</span><span class="punctuation token">"</span>.NETFramework,Version<span class="punctuation token">=</span>v4.5.2<span class="punctuation token">"</span></span><span class="punctuation token">/></span></span><br /> <span class="token tag"><span class="token tag"><span class="punctuation token"></</span>startup</span><span class="punctuation token">></span></span><br /> <span class="token tag"><span class="token tag"><span class="punctuation token"><</span>runtime</span><span class="punctuation token">></span></span><br /> <span class="token tag"><span class="token tag"><span class="punctuation token"><</span>assemblyBinding</span> <span class="attr-name token">xmlns</span><span class="attr-value token"><span class="punctuation token">=</span><span class="punctuation token">"</span>urn:schemas-microsoft-com:asm.v1<span class="punctuation token">"</span></span><span class="punctuation token">></span></span><br /> <span class="token tag"><span class="token tag"><span class="punctuation token"><</span>dependentAssembly</span><span class="punctuation token">></span></span><br /> <span class="token tag"><span class="token tag"><span class="punctuation token"><</span>assemblyIdentity</span> <span class="attr-name token">name</span><span class="attr-value token"><span class="punctuation token">=</span><span class="punctuation token">"</span>Newtonsoft.Json<span class="punctuation token">"</span></span> <span class="attr-name token">publicKeyToken</span><span class="attr-value token"><span class="punctuation token">=</span><span class="punctuation token">"</span>30ad4fe6b2a6aeed<span class="punctuation token">"</span></span> <span class="attr-name token">culture</span><span class="attr-value token"><span class="punctuation token">=</span><span class="punctuation token">"</span>neutral<span class="punctuation token">"</span></span><span class="punctuation token">/></span></span><br /> <span class="token tag"><span class="token tag"><span class="punctuation token"><</span>bindingRedirect</span> <span class="attr-name token">oldVersion</span><span class="attr-value token"><span class="punctuation token">=</span><span class="punctuation token">"</span>0.0.0.0-10.0.0.0<span class="punctuation token">"</span></span> <span class="attr-name token">newVersion</span><span class="attr-value token"><span class="punctuation token">=</span><span class="punctuation token">"</span>10.0.0.0<span class="punctuation token">"</span></span><span class="punctuation token">/></span></span><br /> <span class="token tag"><span class="token tag"><span class="punctuation token"></</span>dependentAssembly</span><span class="punctuation token">></span></span><br /> <span class="token tag"><span class="token tag"><span class="punctuation token"></</span>assemblyBinding</span><span class="punctuation token">></span></span><br /> <span class="token tag"><span class="token tag"><span class="punctuation token"></</span>runtime</span><span class="punctuation token">></span></span><br /><span class="token tag"><span class="token tag"><span class="punctuation token"></</span>configuration</span><span class="punctuation token">></span></span><span class="line-numbers-rows"><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span></span>
- Mailer.config (in folder C:\inetpub\wwwroot\BOARDWEB11_1\App_Data\config)
<span class="token tag"><span class="token tag"><span class="punctuation token"><</span>appSettings</span><span class="punctuation token">></span></span><br /> <span class="token tag"><span class="token tag"><span class="punctuation token"><</span>add</span> <span class="attr-name token">key</span><span class="attr-value token"><span class="punctuation token">=</span><span class="punctuation token">"</span>webUrl<span class="punctuation token">"</span></span> <span class="attr-name token">value</span><span class="attr-value token"><span class="punctuation token">=</span><span class="punctuation token">"</span><a class="jive-link-external-small" href="http://my_Server_IP_address:80/" rel="nofollow noopener" target="_blank">http://my_Server_IP_address:80/</a><span class="punctuation token">"</span></span> <span class="punctuation token">/></span></span><br /> <span class="token tag"><span class="token tag"><span class="punctuation token"><</span>add</span> <span class="attr-name token">key</span><span class="attr-value token"><span class="punctuation token">=</span><span class="punctuation token">"</span>WatchPath<span class="punctuation token">"</span></span> <span class="attr-name token">value</span><span class="attr-value token"><span class="punctuation token">=</span><span class="punctuation token">"</span>C:\inetpub\wwwroot\BOARDWEB11_1\App_Data\broadcasting<span class="punctuation token">"</span></span><span class="punctuation token">/></span></span><br /> <span class="token tag"><span class="token tag"><span class="punctuation token"><</span>add</span> <span class="attr-name token">key</span><span class="attr-value token"><span class="punctuation token">=</span><span class="punctuation token">"</span>LogFolder<span class="punctuation token">"</span></span> <span class="attr-name token">value</span><span class="attr-value token"><span class="punctuation token">=</span><span class="punctuation token">"</span>C:\inetpub\wwwroot\BOARDWEB11_1\App_Data\broadcasting\log<span class="punctuation token">"</span></span><span class="punctuation token">/></span></span><br /><span class="token tag"><span class="token tag"><span class="punctuation token"></</span>appSettings</span><span class="punctuation token">></span></span><span class="line-numbers-rows"><span></span><span></span><span></span><span></span><span></span></span>
Has anyone an idea of the reason why i got the error 1053 while trying to start the Board mailer service?
Answers
-
Dear interested typ,
your Config File is wrong concerning the following line:
Please change to<add key="internalSmtpEnableSsl" value="true"/>
<add key="internalSmtpEnableSsl" value="on"/><br/>I checked my local configuration at the moment, which is working proper, this is the only difference.
Hope it helped
regards
Alexander Kappes
0 -
Thanks ! I have corrected it to true.
I still have the issue, but i will ask the colleagues responsible for the SMTP account, i may have wrote the wrong parameters in broadcasting.config
However, could you organize that the document Board Mailer Service (version 3), is corrected?
Currently, the document says the valid values are on or off, see screenshot:
0 -
Dear Alexander Kappes,
if the value must be "true" or "false" please correct the other documents in the community, e.g. Board Mailer Service
0 -
Dear Alexander Kappes,
running this command in cmd program
sc start BoardMailerService<span class="line-numbers-rows"><span></span></span>
still gives the error message 1053 on my on-premises Server, regardless of the value (true or false) of this parameter
<add key="internalSmtpEnableSsl" value="true"/><span class="line-numbers-rows"><span></span></span>
do you have any suggestion, what would have to be checked, to make the Board Mailer service run?
Or where (some log files on the server?) i could read more details regarding the error 1053.
Many thanks in advance,
0 -
Dear interested typ,
did you check the Eventviewer of the machine where IIS is hosted?
In 10.5.1 we had some problems running Broadcasting in combination to IIS, perhaps the solution will also help with your problem.
You can try the following:
1. STOP IIS Website
2. Copy your \inetpub\wwwroot\BWEB10\App_Data folder to \inetpub\wwwroot\BWEB10\App_Data\bin that it looks like
3. Restart IIS Website
and try to start the mailerservice again.
Hope it helps
regards
Alexander Kappes
0 -
thanks for your suggestion.
One question, before I try: is the result of your suggestion that the content of the \inetpub\wwwroot\BWEB10\App_Data folder will be cut and put into \inetpub\wwwroot\BWEB10\App_Data\bin ?
or will it be duplicated ?
0 -
ok i duplicated the folder \inetpub\wwwroot\BWEB10\App_Data into \inetpub\wwwroot\BWEB10\App_Data\bin
then i ran the command sc start BoardMailerService in cmd got this result:
SERVICE_NAME: BoardMailerService<br/>        TYPE               : 10  WIN32_OWN_PROCESS<br/>        STATE              : 2  START_PENDING<br/>                                (NOT_STOPPABLE, NOT_PAUSABLE, IGNORES_SHUTDOWN)<br/>        WIN32_EXIT_CODE    : 0  (0x0)<br/>        SERVICE_EXIT_CODE  : 0  (0x0)<br/>        CHECKPOINT         : 0x0<br/>        WAIT_HINT          : 0x7d0<br/>        PID                : 6656<br/>        FLAGS              :<br/><br/>C:\Users\admin><span class="line-numbers-rows"><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span></span>
so this workaround worked Alexander Kappes
However, i am not comfortable with the fact that the content of one folder has been duplicated. Can I delete the folder \inetpub\wwwroot\BWEB10\App_Data now?
0 -
Dear interested typ,
you can´t delete the whole folder.
You can delete the mailer.config file inside \inetpub\wwwroot\BWEB10\App_Data. The other files are needed to configure the web api.
Inside the "bin\app_data" folder you just have to host the mailer.config only and can delete the other files.
regards
Alexander Kappes
0 -
Dear Alexander Kappes
Thanks for this piece of information.
So actually from your initial hint
2. Copy your \inetpub\wwwroot\BWEB10\App_Data folder to \inetpub\wwwroot\BWEB10\App_Data\bin that it looks like
i can reformulate it like this:
Copy your \inetpub\wwwroot\BWEB10\App_Data\config folder into \inetpub\wwwroot\BWEB10\bin, so that the result is \inetpub\wwwroot\BOARDWEB10\bin\App_Data\config. Then in this folder delete all files except mailer.config
0 -
Hello,
It is mandatory for the WatchPath key in the mailer config file and the WorkingFolder key in the broadcasting config file to be the same.
<add key="WatchPath" value="C:\inetpub\wwwroot\BOARDWEB11_1\App_Data\broadcasting"/>
<add key="workingFolder" value="C:\...\BOARD\BoardApps\Board\z_Broadcasted_Files"/>
It appears to be different in your setup.
Regards,
Aamir.
0