ImageGear .NET - Updated
ImageServicePath Property




ImageGear24.Web Assembly > ImageGear.Web.UI Namespace > ImGearThumbnailList Class : ImageServicePath Property
Gets or sets the RESTful WCF image service path.
Syntax
'Declaration
 
<CategoryAttribute("ImGearThumbnailList Properties")>
<DefaultValueAttribute()>
<DescriptionAttribute("Gets or sets RESTful WCF image service path.")>
<BrowsableAttribute(True)>
Public Property ImageServicePath As String
'Usage
 
Dim instance As ImGearThumbnailList
Dim value As String
 
instance.ImageServicePath = value
 
value = instance.ImageServicePath
[Category("ImGearThumbnailList Properties")]
[DefaultValue()]
[Description("Gets or sets RESTful WCF image service path.")]
[Browsable(true)]
public string ImageServicePath {get; set;}
[Category("ImGearThumbnailList Properties")]
[DefaultValue()]
[Description("Gets or sets RESTful WCF image service path.")]
[Browsable(true)]
public: __property string* get_ImageServicePath();
public: __property void set_ImageServicePath( 
   string* value
);
[Category("ImGearThumbnailList Properties")]
[DefaultValue()]
[Description("Gets or sets RESTful WCF image service path.")]
[Browsable(true)]
public:
property String^ ImageServicePath {
   String^ get();
   void set (    String^ value);
}

Property Value

A string value.
Remarks
The value provided must be a fully qualified URL (absolute URL), a relative URL is not acceptable. Note: It is not necessary to have this property defined if the ImageServicePath setting already exists in the web.config file.

The default value is “~/ImageGearService.svc”

This property is a string that contains the name of the RESTful WCF service path that obtains and processes images on the server.

To successfully refer to an IG.NET WCF service from another site, the service endpoint must allow Cross-Origin Resource Sharing (CORS). The Windows features WCF Activation and WCF Services must also be installed.

If the ImageGear .NET WCF service returns HTTP OPTION Response 405 Method Not Allowed, then enable CORS at the service endpoint. This can be accomplished for IIS by adding the following entry to web.config for the IIS website hosting the IG.NET WCF service:

... <httpProtocol> <customHeaders> <add name="Access-Control-Allow-Origin" value="*" /> <add name="Access-Control-Allow-Headers" value="Content-Type" /> </customHeaders> </httpProtocol> ...

If the ImageGear .NET WCF service returns HTTP GET Response 404 Resource Not Found, enable the following Windows features and retry:

See Also

Reference

ImGearThumbnailList Class
ImGearThumbnailList Members