Host LEADTOOLS services on IIS 5 and 6
The LEADTOOLS installation program will automatically configure your version of IIS to host the LEADTOOLS WCF Services. If you wish to host the LEADTOOLS WCF Services on another computer then you should follow these steps. Also, for more information about hosting WCF services, refer to: MSDN - Hosting Services
When using LEADTOOLS WCF services, it is recommended to put the LEADTOOLS assemblies in the Global Assembly Cache for the following reasons:
For more information, refer to the Global Assembly Cache topic in MSDN online.
Create a virtual directory and map the Services directory. Here are the steps:
Create a Host directory: <LEADTOOLS_INSTALLDIR>\WCFHost
Create a Bin directory: <LEADTOOLS_INSTALLDIR>\WCFHost\Bin
Copy the Leadtools.Services.*
from <LEADTOOLS_INSTALLDIR>\Bin
to <LEADTOOLS_INSTALLDIR>\WCFHost\Bin
Files to copy include:
Create a web.config
at <LEADTOOLS_INSTALLDIR>\WCFHost
[ See details:MSDN - Configuring Services Using Configuration Files ]
<LEADTOOLS_INSTALLDIR>\WCFHost
[ See details:MSDN - Create an .svc File for the WCF Service ]For example if you want to host the IOcrService
, create OcrService.svc
file and add the following line to it (Add to this line the percent sign after < and before >):
< @ServiceHost Language=C# Debug="true" Service="Leadtools.Services.Forms.ServiceImplementations.OcrService" >
Go to Start > Control Panel > Administrative Tools > Internet Information Services (IIS) Manager [See details:MSDN - How to: Host a WCF Service in IIS ]
Right click Default Web Site and select New > Virtual Directory to create a new virtual directory. Enter the following parameters:
Alias: | LEADTOOLSWCFServices |
Directory: | <LEADTOOLS_INSTALLDIR>\WCFHost |
Right-click on the LEADTOOLSWCFServices node you just created in the IIS manager. Go to Properties to view the resulting settings. The dialog will look like this:
Special notes for OCR service
Hosting our IOCRService requires the following:
Modify the security for the ltthunkserver.exe:
IIS Hosting Services Resources
MSDN - Configuring Services Using Configuration Files
MSDN - Create an .svc File for the WCF Service
MSDN - How to: Host a WCF Service in IIS
Help Collections
Raster .NET | C API | C++ Class Library | HTML5 JavaScript
Document .NET | C API | C++ Class Library | HTML5 JavaScript
Medical .NET | C API | C++ Class Library | HTML5 JavaScript
Medical Web Viewer .NET
Multimedia
Direct Show .NET | C API | Filters
Media Foundation .NET | C API | Transforms
Supported Platforms
.NET, Java, Android, and iOS/macOS Assemblies
Imaging, Medical, and Document
C API/C++ Class Libraries
Imaging, Medical, and Document
HTML5 JavaScript Libraries
Imaging, Medical, and Document