ImageGear .NET
ImageServicePath Property




Gets or sets the RESTful WCF image service path.
Syntax
'Declaration
 
<BrowsableAttribute(True)>
<DescriptionAttribute("Gets or sets RESTful WCF image service path.")>
<DefaultValueAttribute()>
<CategoryAttribute("ImGearThumbnailList Properties")>
Public Property ImageServicePath As String
'Usage
 
Dim instance As ImGearThumbnailList
Dim value As String
 
instance.ImageServicePath = value
 
value = instance.ImageServicePath
[Browsable(true)]
[Description("Gets or sets RESTful WCF image service path.")]
[DefaultValue()]
[Category("ImGearThumbnailList Properties")]
public string ImageServicePath {get; set;}
[Browsable(true)]
[Description("Gets or sets RESTful WCF image service path.")]
[DefaultValue()]
[Category("ImGearThumbnailList Properties")]
public: __property string* get_ImageServicePath();
public: __property void set_ImageServicePath( 
   string* value
);
[Browsable(true)]
[Description("Gets or sets RESTful WCF image service path.")]
[DefaultValue()]
[Category("ImGearThumbnailList Properties")]
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

 

 


©2017. Accusoft Corporation. All Rights Reserved.

Send Feedback