How to Use the Examples

I had download all zipo file in "how to use the examples"
I do as you tell me in readme.text, choose vsshape as starup project but when I try example I receipt information as show on attached image


Please tell how to do?
Hi Dang,

Thank you for your inquiry.

The projects (CSharp, VisualBasic) contain classes with their own Main methods. Each example is provided in a separate class. So, you have to tell the compiler which class you want to execute. Follow the steps given below to get rid of this message. A screen shot is attached for your reference.

  • Right-click either CSharp or VisualBasic.
  • Select Properties.
  • On the Application tab, expand Startup objects dropdown box.
  • Select a class from the list and save.

Selected example should run without any error. Hope the information helps. Feel free to contact us in case you have any query or comments.

Thanks for reply.

I had build soluton as you tell me and have in the output as follow:
‘CSharp.vshost.exe’ (CLR v4.0.30319: CSharp.vshost.exe): Loaded ‘C:\Windows\Microsoft.Net\assembly\GAC_32\mscorlib\v4.0_4.0.0.0__b77a5c561934e089\mscorlib.dll’. Cannot find or open the PDB file.
‘CSharp.vshost.exe’ (CLR v4.0.30319: CSharp.vshost.exe): Loaded ‘C:\Windows\assembly\GAC_MSIL\Microsoft.VisualStudio.HostingProcess.Utilities\12.0.0.0__b03f5f7f11d50a3a\Microsoft.VisualStudio.HostingProcess.Utilities.dll’. Cannot find or open the PDB file.
‘CSharp.vshost.exe’ (CLR v4.0.30319: CSharp.vshost.exe): Loaded ‘C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Windows.Forms\v4.0_4.0.0.0__b77a5c561934e089\System.Windows.Forms.dll’. Cannot find or open the PDB file.
‘CSharp.vshost.exe’ (CLR v4.0.30319: CSharp.vshost.exe): Loaded ‘C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System\v4.0_4.0.0.0__b77a5c561934e089\System.dll’. Cannot find or open the PDB file.
‘CSharp.vshost.exe’ (CLR v4.0.30319: CSharp.vshost.exe): Loaded ‘C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Drawing\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Drawing.dll’. Cannot find or open the PDB file.
‘CSharp.vshost.exe’ (CLR v4.0.30319: CSharp.vshost.exe): Loaded ‘C:\Windows\assembly\GAC_MSIL\Microsoft.VisualStudio.HostingProcess.Utilities.Sync\12.0.0.0__b03f5f7f11d50a3a\Microsoft.VisualStudio.HostingProcess.Utilities.Sync.dll’. Cannot find or open the PDB file.
‘CSharp.vshost.exe’ (CLR v4.0.30319: CSharp.vshost.exe): Loaded ‘C:\Windows\assembly\GAC_MSIL\Microsoft.VisualStudio.Debugger.Runtime\12.0.0.0__b03f5f7f11d50a3a\Microsoft.VisualStudio.Debugger.Runtime.dll’.
‘CSharp.vshost.exe’ (CLR v4.0.30319: CSharp.vshost.exe): Loaded ‘E:\Aspose_OCR_NET-master\Examples\CSharp\bin\Debug\CSharp.vshost.exe’. Cannot find or open the PDB file.
‘CSharp.vshost.exe’ (CLR v4.0.30319: CSharp.vshost.exe): Loaded ‘C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Core\v4.0_4.0.0.0__b77a5c561934e089\System.Core.dll’. Cannot find or open the PDB file.
‘CSharp.vshost.exe’ (CLR v4.0.30319: CSharp.vshost.exe): Loaded ‘C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Xml.Linq\v4.0_4.0.0.0__b77a5c561934e089\System.Xml.Linq.dll’. Cannot find or open the PDB file.
‘CSharp.vshost.exe’ (CLR v4.0.30319: CSharp.vshost.exe): Loaded ‘C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Data.DataSetExtensions\v4.0_4.0.0.0__b77a5c561934e089\System.Data.DataSetExtensions.dll’. Cannot find or open the PDB file.
‘CSharp.vshost.exe’ (CLR v4.0.30319: CSharp.vshost.exe): Loaded ‘C:\Windows\Microsoft.Net\assembly\GAC_MSIL\Microsoft.CSharp\v4.0_4.0.0.0__b03f5f7f11d50a3a\Microsoft.CSharp.dll’. Cannot find or open the PDB file.
‘CSharp.vshost.exe’ (CLR v4.0.30319: CSharp.vshost.exe): Loaded ‘C:\Windows\Microsoft.Net\assembly\GAC_32\System.Data\v4.0_4.0.0.0__b77a5c561934e089\System.Data.dll’. Cannot find or open the PDB file.
‘CSharp.vshost.exe’ (CLR v4.0.30319: CSharp.vshost.exe): Loaded ‘C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Xml\v4.0_4.0.0.0__b77a5c561934e089\System.Xml.dll’. Cannot find or open the PDB file.
The thread 0xddc has exited with code 259 (0x103).
The thread 0x11ac has exited with code 259 (0x103).
‘CSharp.vshost.exe’ (CLR v4.0.30319: CSharp.vshost.exe): Loaded ‘E:\Aspose_OCR_NET-master\Examples\CSharp\bin\Debug\CSharp.exe’. Symbols loaded.
‘CSharp.vshost.exe’ (CLR v4.0.30319: CSharp.vshost.exe): Loaded ‘E:\Aspose_OCR_NET-master\Examples\CSharp\bin\Debug\Aspose.OCR.dll’. Module was built without symbols.
The thread 0x10c0 has exited with code 259 (0x103).
The thread 0xbec has exited with code 259 (0x103).
The program ‘[1364] CSharp.vshost.exe’ has exited with code 0 (0x0).



Please tell me how to do

Hi Dang,

Thank you for writing us back.

The output you shared is the messages of the console application. For example if you want to perform OCR on an image, tell the compiler to execute the PerformOCROnImage class( Steps shared in my previous post). Screen shot is attached for your reference. After successful execution of the program, you can find the output on the following path:

Aspose_OCR_NET-master\Examples\Data\Features\PerformOCROnImage\Output.txt

Hope the above information helps. Feel free to contact us in case you have any query or comments.