'System.InvalidOperationException' occurred in System.dll in send data by serialport - serial-port

i am trying to send a string to serial port but i got An unhandled exception of type 'System.InvalidOperationException' occurred in System.dll
my code is simple :
serialport.write("110");

Please read this article properly.
You seem to have written to a port that is not open.
SerialPort.Write Method
Exceptions
InvalidOperationException
The specified port is not open.

Related

GRPC io.grpc.StatusRuntimeException: UNAVAILABLE: io exception

The code model looks like as
Iterator iterator = grpc.invokeSomeRequest(requestData) //returns iterator
while(iterator.hasNext()){
//do some code.
}
Sometimes the error occurs at iterator.hasNext() with stack trace:
UNAVAILABLE: io exception
io.grpc.StatusRuntimeException: UNAVAILABLE: io exception
at io.grpc.Status.asRuntimeException(Status.java:533)
A version of grpc is 1.21.0
I figured out that this problem most likely at grpc. I could be wrong.
What is the best workaround for this problem?

Frequent Kusto Error: Insufficient winsock resources available to complete socket connection initiation

From the last few days we have been trying to hunt down some kusto query failures. Time and again we see the following error.
Have looked into any increase in ingestions for the past few days and don't see any.
In few scenarios we use direct ingestion, can this be the issue?
Does this error mean that the server is out of sockets? If so, what is generally the cause for that? ANd ho can that be alleviated?
Couldn't find any troubleshooting guide for this.
Happy to provide more details as needed.
Failure details: Query execution has resulted in error (0x8013153D): Partial query failure: 0x8013153D (message: 'Insufficient winsock resources available to complete socket connection initiation. ==> ExecuteRemoteSubQuery failure: ', details: 'Source: mscorlib System.InsufficientMemoryException: Insufficient winsock resources available to complete socket connection initiation. ---> System.Net.Sockets.SocketException: An operation on a socket could not be performed because the system lacked sufficient buffer space or because a queue was full 11.0.0.82:23107 Server stack trace: Exception rethrown at [0]: --- End of stack trace from previous location where exception was thrown --- [0]Kusto.Data.Exceptions.KustoDataStreamException: Query execution has resulted in error (0x8013153D): Partial query failure: 0x8013153D (message: 'Insufficient winsock resources available to complete socket connection initiation. ==> ExecuteRemoteSubQuery failure: ', details: 'Source: mscorlib System.InsufficientMemoryException: Insufficient winsock resources available to complete socket connection initiation. ---> System.Net.Sockets.SocketException: An operation on a socket could not be performed because the system lacked sufficient buffer space or because a queue was full 11.0.0.82:23107 Server stack trace: Exception rethrown at [0]: --- End of stack trace from previous location where exception was thrown --- Timestamp=2020-12-04T17:47:28.3230123Z
I would recommend that you open a support ticket for your resource, via the Azure portal (https://portal.azure.com)

WCF-SAP adapter Send port failing with 'Unknown Error description' error in BizTalk 2013 R2

A send port configured with WCF-SAP adapter is failing with Unknown error description error logged to Biztalk event log.
In the event of this error we can see that the iDOC is already sent to the SAP system before the error occurred, but due to this error Biztalk thinks that the iDOC has not been sent to SAP and hence retries to send the iDOC after retry interval of 5 minutes which is creating a duplicate of the iDOC in the SAP system as well as in biztalk by archiving 2 files. Not sure of the cause of the error as it is a very generic error.
Can someone please suggest if you had similar situation or cause for this error anyway related to wcf-sap adapter in BT 2013 R2 ? Thank you.
Here is the error:
A message sent to adapter "WCF-SAP" on send port "xx" with URI
"sap://CLIENT=xx;LANG=EN;#a/xx/xx?GWHOST=xx&GWSERV=xx&ListenerGwServ=xx&ListenerGwHost=xx&RfcSdkTrace=False&AbapDebug=False"
is suspended. Error details: Unknown Error Description MessageId:
{DC121ABC-ECD3-4635-B30D-5080322C976B} InstanceID:
{B2802A71-ECBE-4237-A48D-E5DCE284D23F}
Verify at the adapter settings that EnableBizTalkCompatibilityMode is set to True. And the checkbox Use Transactions is enabled and Isolation Level selected is Serializable.
Also are you using the NCo ConnectorType to connect to SAP? This is the recommended way.

Net tcp Binding Service:The request was aborted: The request was canceled

I am uploading files to Amazon S3.
1.While uploading large files(upto 50 MB) I am getting this error:
The request was aborted: The request was canceled.
2.The problem is when I dont use the net tcp binding service and directly upload from UI to business layer without a service layer in between,I am able to upload without any exceptions.
3.Here is the exception details:
System.Net.WebException: The request was aborted: The request was canceled. ---> System.IO.IOException: Cannot close stream until all bytes are written. at System.Net.ConnectStream.CloseInternal(Boolean internalCall, Boolean aborting) --- End of inner exception stack trace --- at System.Net.ConnectStream.CloseInternal(Boolean internalCall, Boolean aborting) at System.Net.ConnectStream.System.Net.ICloseEx.CloseEx(CloseExState closeState) at System.Net.ConnectStream.Dispose(Boolean disposing) at System.IO.Stream.Close() at Amazon.S3.AmazonS3Client.getRequestStreamCallback[T](IAsyncResult result)
4.In the service's web. config I have increased the timeout of both idle and receive to more than half an hour. But still getting the exception.
5.Is this related to any configuration settings for the net tcp binding service?
Any solution?

ODBC Driver General error: attempted two active database requests

I'm using ASP.NET 2.0 to connect to a Sybase SQL Anywhere 5 server. And I get this error sporadically. It just happens sometimes. The error message is:
ERROR [HY000] [Sybase][ODBC Driver]General error: attempted two active database requests
Exception Details: System.Data.Odbc.OdbcException: ERROR [HY000] [Sybase][ODBC Driver]
General error: attempted two active database requests
Anyone has any experience with this problem?
The error message means that you attempted to run two queries at the same time using the same database connection.
Are you trying to use the same database connection for all requests? The requests are handled by several threads, so each request needs to have it's own database connection.
Sounds like you're reusing the same connection for multiple commands. Check that you properly dispose of the connections after each command/batch of commands and that all new commands get a new connection.

Resources