EldoS | Feel safer!

Software components for data protection, secure storage and transfer

Format Exception Sending an AS2 message

Also by EldoS: RawDisk
Access locked and protected files in Windows, read and write disks and partitions and more.
#30398
Posted: 08/18/2014 03:11:07
by Jesús López (Basic support level)
Joined: 08/18/2014
Posts: 2

I receive the following error using the AS2 sender demo:

System.FormatException.
Message: Input string was not in a correct format.
StackTrace:
at System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal)
at System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info)
at SBStrUtils.__Global.StrToInt(String S)
at SBStrUtils.__Global.ParseURL(String URL, Boolean SingleNameIsPage, String& Protocol, String& Username, String& Password, String& Host, UInt16& Port, String& Path, String& anchor, String& Parameters, String DefaultProtocol)
at SBHTTPSClient.TElHTTPSClient.InitiateRequest(Int32 Method, String URL)
at SBHTTPSClient.TElHTTPSClient.PerformRequest(Int32 Method, String URL)
at SBHTTPSClient.TElHTTPSClient.Post(String URL, Stream Content, Boolean CloseStream)
at SBAS2.TElAS2Client.Send(String URL, Stream Message, Stream Receipt)
at SBAS2.TElAS2Client.Send(String URL, String MessageFile, String ReceiptFile)
at Sender.Main.buttonSendMessage_Click(Object sender, EventArgs e) in C:\Users\Public\Documents\EldoS\SecureBlackbox.NET\Samples\C#\EDIBlackbox\Desktop\AS2\Sender\Main.cs:line 50

The error is raised in the following line:

result = as2Client.Send(textURL.Text, textMessageFile.Text, textReceiptFile.Text);

where:
textURL.Text is "http://localhost:8080/as2handler"
textMessageFile.Text is "C:\Users\Public\Documents\EldoS\SecureBlackbox.NET\Samples\C#\EDIBlackbox\Desktop\AS2\Sender\bin\Debug\Files\message.as2m"
textReceiptFile.Text is "C:\Users\Public\Documents\EldoS\SecureBlackbox.NET\Samples\C#\EDIBlackbox\Desktop\AS2\Sender\bin\Debug\Files\message.as2r"

if I change txtURL.Text to "http://localhost/as2handler" no FormatException is raised
#30399
Posted: 08/18/2014 03:19:38
by Vsevolod Ievgiienko (EldoS Corp.)

Thank you for contacting us.

Most likelly you are testing some old build. Please try the latest 12.0.258 as the problem is already fixed.

Reply

Statistics

Topic viewed 558 times

Number of guests: 1, registered members: 0, in total hidden: 0




|

Back to top

As of July 15, 2016 EldoS Corporation will operate as a division of /n software inc. For more information, please read the announcement.

Got it!