I built a simple VS 2010 .net app that contains only one form. I added a reference to aspose.barcode.dll (have tried version 4.0, 3.5 and 2.0). It allows me to add the reference with no issue and it allows me to add the following code Imports Aspose.BarCode Public Class Form1 Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim license As Aspose.BarCode.License = New Aspose.BarCode.License() license.SetLicense("Aspose.BarCode.lic") End SubEnd Class everything looks good until I compile it At that point I get this error in the error list Type 'Aspose.BarCode.License is not defined and in the imports statement that did look good, I now get an error of "namespace or type specified in the Imports 'Aspose.Barcode' doesn't contain any public members or cannot be found. Make sure the namespace or the type is defined and contains at least one public member. Make sure the imported element name doesn 't use any aliases I can run the sample BarcodeVB but I cannot run any app that I create with this control.
This message was posted using Aspose.Live 2 Forum
Hi Rabih,
Just a side note: If you're using an eval version, you don't need to register a license. If you're running an eval version, you'll only be able to read Code39 barcodes I believe.
If you ARE running a licensed version, make sure you you include the license file that Aspose sent you in the bin directory of your application.
Hope that helps.
Mike
Also, double and triple-check all of the assembly references and versions in the sample project against the assembly references and versions in your demo project. They should be the same providing you’re writing code for the latest version of the SDK.
It did not work. I am using Visual Studio 2010 .NET4.0
Could you tell me which files need to be added to the reference.
Could you send me all the files that need to be added to my project which runs on .NET4.0
I already have the license file.
Rabih Hantour
(517) 543-6400 x 3264
Thanks
Hi Rabih,
Thank you for inquiry.
Could you please check that the “Target framework” is selected as “.Net framework 4.0” in project properties? If it is “.Net framework 4 client profile”, please change it. After this setting, the project should compile and run successfully. I have also attached a sample project in VS 2010 that sets license, creates a barcode in stream and then recognize the barcode.