ImageGear .NET v25.2 - Updated
ImageGear.Web Assembly / ImageGear.Web.UI Namespace / ImGearThumbnailList Class / ImageServicePath Property




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

    • .NET Framework 3.5 (Includes .NET 2.0 and 3.0) \ WCF HTTP Activation
    • .NET Framework 3.5 (Includes .NET 2.0 and 3.0) \ WCF Non-HTTP Activation
    • .NET Framework 4.6 Advanced Services \ WCF Services \ HTTP Activation
    • .NET Framework 4.6 Advanced Services \ WCF Services \ Message Queuing (MSMQ) Activation
    • .NET Framework 4.6 Advanced Services \ WCF Services \ Named Pipe Activation
    • .NET Framework 4.6 Advanced Services \ WCF Services \ TCP Activation
    • .NET Framework 4.6 Advanced Services \ WCF Services \ Port Sharing

    See Also