Installing ImageGear for Silverlight

Before installing ImageGear for Silverlight, make sure that your system complies with the requirements detailed in System Requirements.

  1. Start the installer
  2. Click the "Next" button to continue past the welcome dialog.
  3. Carefully read the information contained in the "License Agreement" form before making a decision to accept the terms of the agreement. Choose "I accept the license agreement" to accept the conditions outlined in the License Agreement and then click the "Next" button to continue the installation, or click "Cancel" to exit the installation process.
  4. Once you click the "Next" button, the product "Select Features" form is displayed. In this form you can:
  5. When all these options are chosen, click the "Next" button to continue the installation process
  6. At this point, the installer is ready to begin. Click the "Install" button to start the installation.
  7. After the installation finishes, click "Finish" to close the installer.
  8. Refer to the next section, Post-Installation Procedures, to make sure that your system is configured properly.

Post-Installation Procedures

ImageGear for Silverlight requires the following software to be installed and configured on a computer hosting Silverlight applications, including the ImageGear for Silverlight samples:

Microsoft ASP.NET IIS Registration

If IIS was installed after the .NET Framework 3.5, the service will fail, as IIS does not know how to handle .NET 3.5 applications. This does not prevent the sample from starting, as it does not use aspx.

If you installed IIS after the .NET Framework, you can set up the asp.net IIS registration with one of the following commands:

You may also need to re-register the Windows Communication Foundation by running one of the following commands:

Silverlight MIME Type

The Silverlight MIME type may need to be defined within the IIS server. To check that, go to the Control Panel, click Administrative Tools, and start the Internet Information Services (IIS) Manager.

ImageGear for Silverlight Samples HTTP Port

The samples and the SilverlightWebService URLs use default HTTP port 80 to communicate. If you use a different port for the web site from which the samples and the service are running, please make sure to change the samples URL files and webServiceUrl string used by ImGearLicense.SetService() call in the sample code (Page.xaml.cs) to explicitly specify the port number (by adding ':<port number>' after the hostname), and rebuild the samples. You may also need to clear the browser's cache.

Resolving Common Installation and Configuration Issues

A full installation of ImageGear for Silverlight requires that Microsoft .NET Framework 3.5 SP1 and Microsoft Silverlight 2.0 be installed. If .NET and/or Silverlight are not installed, the ImageGear installer will guide you through those installations, and will not continue installing ImageGear until .NET and Silverlight are installed.

When the installation is complete, you will be given the option to register ASP.NET and re-register WCF with IIS. While this might not be required on your machine, Accusoft recommends that you complete these steps. Doing so will cause no harm and may simplify any future troubleshooting. See Post-Installation Procedures for details.

This section identifies some common installation and configuration issues, and provides solutions to these issues.

Symptom

Affected Operating Systems

Possible Problem

Solution

After completing a full installation of ImageGear for Silverlight (including prerequisite software installations), when attempting to run an ImageGear for Silverlight sample, the browser window is blank white with the message, “InitializeError - 2401 An Error has occurred”, shown at the top left of the window.

Any supported OS

The Silverlight MIME type, .XAP, is not defined in IIS.

Define the .XAP MIME type according the instructions supplied in the Silverlight MIME Type section above.

After completing a full installation of ImageGear for Silverlight (including prerequisite software installations), the ImageGear for Silverlight samples will load, but attempts to license ImageGear fail with the following message: "Fail to obtain License the Licensing WebService [BrowserHttpWebRequest_WebException_RemoteServer] Arguments:Not found"

Windows XP and Windows Vista 32- and 64-bit

The Windows Communications Foundation, WCF, is not registered with IIS.

Register WCF with IIS according the instructions supplied in the Microsoft ASP.NET IIS Registration section above.

ASP.NET is not registered with IIS.

Register ASP.NET with IIS according the instructions supplied in the Microsoft ASP.NET IIS Registration section above.

In some cases it may be that while the ASP.NET Web Service Extension is available, it is marked as Prohibited.

Open IIS and right-click the “Web Service Extensions” Icon and choose “Properties”. Browse through the list of extensions to ASP.NET v2.0.50727 and verify that it is “Allowed”. If it is not, then change it to “Allowed”.

After installing ImageGear for Silverlight, but skipping the optional registration of ASP.NET and WCF, attempting to run the ImageGear for Silverlight samples from the Start menu results in a Failure to obtain license error - "HTTP Error 500.19 - Internal Server Error The requested page cannot be accessed because the related configuration data for the page is invalid."

Windows Vista 32- and 64-bit

ASP.NET and/or WCF may not be registered with IIS.

Register WCF and ASP.NET with IIS according the instructions supplied in the Microsoft ASP.NET IIS Registration section above.

After completing a full installation of ImageGear for Silverlight (including prerequisite software installations), when attempting to run the ImageGear for Silverlight samples from the Start menu, an “HTTP 404 Error” occurs.

This issue has only been encountered on Windows Vista 64-bit SP1 to date, but may not be limited to that OS

When IIS has more than one website, you need to make sure that the Web Site containing the ImageGear for Silverlight samples is up and running, and also check the port on which are they running, if not on the default port 80.

  1. Go to Control Panel Information Services Internet Manager.

  2. Expand the tree under Connections on the Left panel and go to Sites.

  3. Expand Sites to see at least one node named Default Web Sites, and make sure it is running.

  4. If there is more than one website under Site's then makes sure the one that has the ImageGear for Silverlight samples is running.

If the site is not running on Port 80, the ImageGear for Silverlight samples will require slight modifications as outlined in the ImageGear for Silverlight Samples HTTP Port section above.

Using ImageGear for Silverlight

Before you can use any ImageGear functionality, you need to call the ImageGear licensing API. When you evaluate the product or develop your application using ImageGear, you have to call the Set Solution Name API function: 

In C# applications, the call to SetSolutionName() method looks like this:

ImGearLicense.SetSolutionName("AccuSoft 5-44-17");

The ImageGear samples installed with the product already have this call included, so you can simply copy/paste this call from the source code of the samples. 

NOTE: The samples and the SilverlightWebService URLs use default HTTP port 80 to communicate. If you use a different port for the web site from which the samples and the service are running, please make sure to change the samples URL files and webServiceUrl string used by ImGearLicense.SetService() call in the sample code (Page.xaml.cs) to explicitly specify the port number (by adding ':<port number>' after the hostname), and rebuild the samples. You may also need to clear the browser's cache.

NOTE: ImageGear reads the license information from the registry. You have to obtain the product license (evaluation or development) using the AccuSoft License Manager (see "Installing and Distributing ImageGear" Chapter of the product documentation included in your package) in order for the product to work.

When you’re ready to deploy your application you will need to use all three licensing API calls.  Please refer to the product documentation for the details of how to use these calls. Please contact Accusoft Pegasus about obtaining a License Deployment Kit. It will explain additional steps (including the API calls) that you need to take to deploy your application.