ImageGear23.Web Assembly > ImageGear.Web.UI Namespace > ImGearThumbnailList Class : ImageServicePath Property |
'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); }
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: