Biztalk - MSMQ messages are being lost intermittently while receiving from queue in remote server - warnings

I keep receiving below warning messages in event viewer . If there is any message being received from the queue at the time of warning then message is being lost . Surprisingly while sending message to the queue he message is not getting lost . Biztalk ports are configured to send and receive message from queue .
The description for Event ID 5740 from source BizTalk Server cannot be found. Either the component that raises this event is not installed on your local computer or the installation is corrupted. You can install or repair the component on the local computer.
If the event originated on another computer, the display information had to be saved with the event.
The following information was included with the event:
MSMQ The remote procedure call failed and did not execute.
The handle is invalid
this is happening in production Can not afford more message loss.

there are some known issues, look at this thread :
https://social.msdn.microsoft.com/Forums/en-US/519e915a-488e-48bf-bd6c-8e5892689e83/failed-to-connect-to-remote-private-queue?forum=biztalkgeneral

Related

"The request failed or the service did not respond in a timely fashion. Consult the event log or other applicable error logs for details."

I already have a 2019 SQL server on my laptop. I recently downloaded the SQL server 2017 instance and trying to access it, but I am getting this error.
"The request failed or the service did not respond in a timely fashion Consult the event log or other applicable error logs for details"
I tried multiple fixes, but still I am getting this error. Can some help me resolve this issuue?

SQLException when deploying ASP.NET Boilerplate application to Azure

I've been trying to deploy an ASP.NET Boilerplate application to Azure for the last couple of days and I haven't been able to do so. I keep stumbling upon this error:
First I make a Web App + SQL resource and then publish my project to it from inside Visual Studio using the right click -> deploy option, and then importing the publication profile I got from Azure. I make sure the database connection string in the appsettings.production.json are correct but I can't seem to connect to the database. If I try to connect to the database through the SQL Server Management Studio I get a similar error. This means something is wrong with the database itself.
Do I need to create a separate SQL database in Azure that makes use of the SQL database server that comes with the Web App + MySQL resource?
Any help would be greatly appreciated! I have been spending way too much time on this problem already.
This is a screenshot of all the resources in the Azure portal, these were created while creating the Web app + MySQL resource:
Edit: This is the error I am getting:
Win32Exception: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. Unknown location SqlException: A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: TCP Provider, error: 0 - A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.) Microsoft.Data.ProviderBase.DbConnectionPool.CheckPoolBlockingPeriod(Exception e) InvalidOperationException: An exception has been raised that is likely due to a transient failure. Consider enabling transient error resiliency by adding 'EnableRetryOnFailure()' to the 'UseSqlServer' call. Microsoft.EntityFrameworkCore.SqlServer.Storage.Internal.SqlServerExecutionStrategy.Execute<TState, TResult>(TState state, Func<DbContext, TState, TResult> operation, Func<DbContext, TState, ExecutionResult<TResult>> verifySucceeded) Win32Exception: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.
Since you mentioned you can't access db in any other way, I provided step-by-step instruction
You can get your connection string from Azure resource panel
Navigate to Connection security tab and enable access from other Azure resources. This way WebApp will be able access database server inside Azure network. I also added my client IP to test db connection from my PC later. Click Save at the top when you are done
On the same page there is setting called configure SSL connection. Certificate can be downloaded from https://learn.microsoft.com/uk-ua/azure/mysql/howto-configure-ssl. I used this file https://www.digicert.com/CACerts/BaltimoreCyberTrustRoot.crt.pem . Optionally, you could disable this feature for now.
Now we have everything to test db connection. I will show it with the use of HeidiSQL client.
Click open and see your databases
According to this you need to have CACertificateFile parameter appended to connection string to use SSL, so you need to put file into repository and provide its relative path in connection string
This was all caused by a stupid mistake, in the Azure portal I selected the Web App + MySQL resource instead of the Web App + SQL resource. For the ASP.NET Boilerplate project I am using you need a Web App + SQL resource.

Send mail task failure with error due to SMTP Connection

I've created an SSIS package which runs perfect when scheduled as a job.Now I've have a requirement that a mail ought to be sent every time it runs stating if the package was successfully completed or failed.
I've created an SMTP Connection with server name as mx.xxxxxxxx(organization).I've neither checked windows authentication or Enable Secure Socket Layer Options(as suggested in various blogs).
The Job runs fine and sends mail when run manually but is failing when scheduled as a job.
I've tried running it by editing the command line as suggested by many but with no success.
Can you please suggest where I might be going wrong,
Below is the error:
Argument "SMTP" for option "connection" is not valid. The command line parameters are invalid. The step failed.
Since it fails when you run it from your production server, regardless of whether you run it manually or from the job, it is probably related either to connectivity (can your production server connect to the smtp server), or it could be permissions related, if you are using some kind of proxy account on the server that is different from the one you use in your local BIDS.

SSIS Sending MSMQ message to remote Server Private Queue

I am new to SSIS . I am trying to send a MSMQ text message to a Remote Private MSMQ Queue.
I have the following questions
What should be the path for the remote private queue in the MSMQ Connection Manager?
I tried using XYZ\private$\remoteprivatequeue where XYZ is the machine name for the remote server and "remoteprivatequeue" is the name of the queue.
It is possible that the permissions on the remote server MSMQ queues might be incorrect, How should I identify that it is indeed a permissions problem
The private queues were created by NServiceBus (hence the NServiceBus tag to the question), Does this affect the queues in any way. I get the following error on both my local and remote servers when I go to
Computer Management -> Services and Applications -> Message Queuing
-> (right click)Properties
-> Security Tab
Error :
The security descriptor cannot be obtained.
Error : This operation is not supported for Message Queuing installed in workgroup mode
I tried sending the message to a private queue on my local machine where I get the same error on clicking the properties tab described above but posting the message works!!
I tried using the task mentioned here : http://technet.microsoft.com/en-us/library/ms403349.aspx but got connection errors.
Edit :
I get the following error when I test the Connection when using the format XYZ\private$\remoteprivatequeue
Program Location:
at System.Messaging.MessageQueue.ResolveFormatNameFromQueuePath(String queuePath, Boolean throwException)
at System.Messaging.MessageQueue.Exists(String path)
at Microsoft.DataTransformationServices.Design.MsmqConnectionManagerForm.buttonTest_Click(Object sender, EventArgs e)
You'll need to include the format name when talking to those queues:
FormatName:DIRECT=TCP: IPAddress\QueueName
FormatName:DIRECT=OS: MachineName\QueueName

Intermittant SMTP email exception - Service not available, closing transmission channel. The server response was: 4.4.2 service timed out

I have started to see an intermittant error when sending email via my application.
System.Net.Mail.SmtpException: Service not available, closing transmission channel. The server response was: 4.4.2 service timed out.
Now obviously it's timing out for some reason, but any ideas as to why this is happening now? This is the first time I've seen it happen.
Some things to check:
has anything on the server side changed? Did the admins add some kind of greylisting, perhaps?
what happens if you connect to the server directly via telnet on port 25?
does this occur from other applications, as well (e.g. your desktop E-mail client) ?