This is a migrated thread and some comments may be shown as answers.
Ajax Enabled WCF Service + HTTPS + IE9
3 Answers 48 Views
This is a migrated thread and some comments may be shown as answers.
JULIA
Top achievements
Rank 1
JULIA asked on 13 May 2011, 06:56 AM
Hello,

it seems that the ComboBox isn't working with IE9 if HTTPS is used. With FireFox or Chrome everything works fine. 
Create an selfsigend certificate in IIS (https://localhost/TelerikAjaxTest/) and enter a value in the combobox. nothing is happen.
Is there any solution for this issue?

aspx:
<body>
        <form id="form1" runat="server">
            <asp:ScriptManager ID="ScriptManager1" runat="server">
            </asp:ScriptManager>
            <div>
               <telerik:RadComboBox ID="testCombo" runat="server" ShowToggleImage="false" EnableLoadOnDemand="true" Width="200px" AllowCustomText="false" AppendDataBoundItems="true">
                <Items>
                    <telerik:RadComboBoxItem Text="Eingabe zur Suche..." Selected="true" Font-Italic="true" ForeColor="Silver" />
                </Items>
                <WebServiceSettings Path="~/Services/AgentService.svc" Method="GetAgents" />
            </telerik:RadComboBox>
            </div>
        </form>
    </body>

AgentService:
[ServiceContract( Namespace = "http://TelerikAjaxTest/AgentService" )]
    [AspNetCompatibilityRequirements( RequirementsMode = AspNetCompatibilityRequirementsMode.Allowed )]
    public class AgentService
    {      
        [OperationContract]
        public RadComboBoxData GetAgents( RadComboBoxContext context )
        {
            List<RadComboBoxItemData> list = new List<RadComboBoxItemData>()
            {
                new RadComboBoxItemData { Text = "Value1", Value = "Value1" },
                new RadComboBoxItemData { Text = "Value2", Value = "Value2" },
                new RadComboBoxItemData { Text = "Value3", Value = "Value3" },
                new RadComboBoxItemData { Text = "Value4", Value = "Value4" },
                new RadComboBoxItemData { Text = "Value5", Value = "Value5" }
            };
             
            RadComboBoxData result = new RadComboBoxData();
            result.Items = list.ToArray();
            result.EndOfItems = true;
            return result;
        }  
    }

web.config
<system.serviceModel>
    <behaviors>
        <endpointBehaviors>
            <behavior name="aspNetAjaxBehavior">
                <enableWebScript/>
            </behavior>
        </endpointBehaviors>
    </behaviors>
    <services>
        <service name="TelerikAjaxTest.Services.AgentService">
            <endpoint address="" behaviorConfiguration="aspNetAjaxBehavior" binding="webHttpBinding" bindingConfiguration="webBinding" contract="TelerikAjaxTest.Services.AgentService"/>
        </service>
    </services>
    <serviceHostingEnvironment aspNetCompatibilityEnabled="true"/>
    <bindings>
        <webHttpBinding>
            <binding name="webBinding">
                <security mode="Transport">
                </security>
            </binding>
        </webHttpBinding>
    </bindings>
</system.serviceModel>

Regards,
Timo

3 Answers, 1 is accepted

Sort by
0
Dimitar Terziev
Telerik team
answered on 01 Jun 2011, 08:41 AM
Hello Timo,

We are currently working on this issue, so once we have a solution I'll share it here.

Kind regards,
Dimitar Terziev
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

0
Muhammad
Top achievements
Rank 1
answered on 01 Dec 2011, 07:47 PM
I am having similar issue. RadComboBox successfully pulls data from an AJAX Enabled WCF over http. But it fails over https. I get "The server method <method-name> failed." error message when I use https. I tried IE, Chrome and Safari but behavior is same. Have you resolved it?
0
Simon
Telerik team
answered on 02 Dec 2011, 06:19 PM
Hi Muhammad,

In order to enable access to the WCF service over HTTPS you should configure a secure binding and another endpoint configuration for the service using that binding. For instance if this is the binding:
<webHttpBinding>
  <binding name="webHttpsBinding">
    <security mode="Transport" />
  </binding>
</webHttpBinding>

here is the corresponding endpoint behavior:
<endpoint address="" behaviorConfiguration="[EndpointBehavior]"
     binding="webHttpBinding" bindingConfiguration="webHttpsBinding" contract="[WcfService]" />

I hope this helps.

Regards,
Simon
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
Asked by
JULIA
Top achievements
Rank 1
Answers by
Dimitar Terziev
Telerik team
Muhammad
Top achievements
Rank 1
Simon
Telerik team
Share this question
or