Forcing certain code to always run on the same thread

We have an old 3rd party system (let’s call it Junksoft® 95) that we interface with via PowerShell (it exposes a COM object) and I’m in the process of wrapping it in a REST API (ASP.NET Framework 4.8 and WebAPI 2). I use the System.Management.Automation nuget package to create a PowerShell in which I instantiate Junksoft’s COM API as a dynamic object that I then use:

Getting a ASP Error: Mailbox unavailable. The server response was: Access denied – Invalid HELO name (See RFC2821 4.1.1.1)

I am getting an error and I know my credentials are correct. Any ideas? This is on a Windows Server but I am wanting to use Hostgator SMTP settings for my email. This is what happens when I submit a simple contact form. ERROR: Mailbox unavailable. The server response was: Access denied – Invalid HELO … Read more

data insert using input output stored procedure

I am creating a web application using ASP.net C#. I have a booking form and I need to insert data into a table using a Stored Procedure. The table has several columns, out of which second column is a computed column. The Stored Procedure is set up to insert the data and fetch the value from the second column after insert. Below is the code for Stored Procedure: