Barcodereader.read() occure InvalidOperationException

I'm use c# (VS2010, dot net ver4.0 client profile).

Barcode.net version is 6.6.0

I was buy it at this week.

and I downloaded it 1st Dec. 2014. ( a few days ago. )

first of all, Review simple code.

--------- Begin my CODE -----------------

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

using Aspose.BarCode;
using Aspose.BarCodeRecognition;

namespace BarcodeReader
{
public partial class cBarcodeReader : Form
{
cBarcode myBar;
public cBarcodeReader()
{
InitializeComponent();
myBar = new cBarcode();
MessageBox.Show(myBar.GetBarcode(@"D:\barcode\TestImg.bmp"));
this.Close ();
}
}

class cBarcode {
public cBarcode() {
Aspose.BarCode.License lic = new Aspose.BarCode.License();
lic.SetLicense(@"D:\barcode\Aspose.BarCode.lic");
}
public string GetBarcode(string filename) {
string ret = "";

BarCodeReader br = new BarCodeReader(filename, BarCodeReadType.Code128 |
BarCodeReadType.DeutschePostIdentcode |
BarCodeReadType.DeutschePostLeitcode |
BarCodeReadType.QR);
if (br.Read()) ret = br.GetCodeText(); // get only first code/
br.Close();
return ret;
}
}
}
--------- Finish my CODE -----------------

when I run this code (both debug and release mode). I got a InvalidOperationException at br.Read().

I don't know why.

please solve it.

Help me.

Hi Jiyoung,


Thank you for contacting support. Please also attach your problematic barcode image in this forum thread.We’ll take a closer look and reply you accordingly.

I attched TestImg.zip which is Barcode image bmp file.

Hi Jiyoung,


Thank you for sharing the problematic barcode image. We’ve tested against the latest build of Aspose.BarCode for .NET 6.6.0 and managed to replicate the error message said. We’ve logged it under ticket id BARCODENET-34047 in our issue tracking system. We’ll keep you informed regarding any available updates. We’re sorry for the inconvenience caused.

That means
You tested my code and You also got same exception, right?

I think, It takes a few days or a few weeks for bug fixing...
I can wait but my boss and client do not wait...

So please tell me older version's URL that runs nomally.

I will make program older version until You Release bug-fix version.

Please....

Good bye..
Have a nice week end..
(maybe I work hole weekend... T.T )






Hi Jiyoung,


In addition to the above reply, please note that the DLL file stored in net2.0_Compact folder, is compiled on .NET Framework 2.0 compact version, which works perfect on the .NET Framework versions greater than or equal to 2.0. You may use this DLL (Aspose.Diagram.dll file in NET2.0_Compact folder). We have tested your sample code against the .NET 2.0 Compact DLL. We can recognize this barcode image correctly as follows:

[.NET, C#]
BarCodeReader reader = new BarCodeReader(@“C:\temp\TestImg.bmp”, BarCodeReadType.Code128 |
BarCodeReadType.DeutschePostIdentcode |
BarCodeReadType.DeutschePostLeitcode |
BarCodeReadType.QR);
while (reader.Read())
{
Console.WriteLine("Type: " + reader.GetReadType() + " Code Text: " + reader.GetCodeText());
}

Result:
Type: Interleaved2of5 Code Text: 00332940

We hope, this helps. Please let us know in case of further assistance or questions.

Hi Jiyoung,
Jiyoung:
That means
You tested my code and You also got same exception, right?
Yes, we tested and got the same exception message against the latest build of Aspose.BarCode for .NET 6.6.0 and the said environment details.

Hi Jiyoung,

Thank you for being patient. We have a good news for you that the issue id BARCODENET-34047 has now been resolved. If there is no issue in the QA phase, then this fix will be included in the next version of Aspose.BarCode for .NET 6.7.0. We'll inform you via this forum thread as soon as the new release is published.

The issues you have found earlier (filed as BARCODENET-34047) have been fixed in this update.


This message was posted using Notification2Forum from Downloads module by Aspose Notifier.