This is a migrated thread and some comments may be shown as answers.

WCF error with gridbindingservice.svc

9 Answers 89 Views
WebParts for SharePoint
This is a migrated thread and some comments may be shown as answers.
Mark
Top achievements
Rank 1
Mark asked on 11 Nov 2011, 12:34 PM

When I try to use the AJAX SharePoint Rad Data grid web part, it returns no data. The designer also doesn't allow me to select columns - it comes back in the event log with an error about the WCF service Telerik installs:-

Security settings for this service require 'Anonymous' Authentication but it is not enabled for the IIS application that hosts this service.

How can I make this go away, it is a standard team site, I don't want to enable anonymous authentication.

9 Answers, 1 is accepted

Sort by
0
Mark
Top achievements
Rank 1
answered on 11 Nov 2011, 02:33 PM
I have discovered what this is. Our site is under a managed path under a URL like this:-

http://somesite/app1/default.aspx

This is a site collection root under managed path app1. We do not have any site collection under the root / managed path, all the sites exist under /sites or othere managed paths.

I think the web part is trying to communicate with http://somesite/_vti_bin/Telerik... when it should communicate through the current site collection root NOT the web application root. I temporarily created a dummy site under / and everything started to work again.

Is there anyway around this? Makes the controls unusable for us. 
0
Tsvetoslav
Telerik team
answered on 17 Nov 2011, 03:35 PM
Hi Mark,

Does your problem appear with the new version of the telerik controls for sharepoint?

Regards, Tsvetoslav
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
0
Amit
Top achievements
Rank 1
answered on 17 Feb 2012, 12:11 PM
Cool, I also have the same issue of managed path as Mark said. I am getting
ErrorText=Security settings for this service require Anonymous Authentication but it is not enabled for the IIS application that hosts this service.

Mark- how did you create empty site and on which path can you please elaborate?
0
Tsvetoslav
Telerik team
answered on 21 Feb 2012, 10:50 AM
Hello amit,

The SPRadGrid web services should work all right without anonymous authentication. Once again, have you downloaded the latest installer for the acceleration kit?

Regards,
Tsvetoslav
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
0
Amit
Top achievements
Rank 1
answered on 22 Feb 2012, 02:51 PM
Hi Tsvetoslav,

It's working fine with new version. Thanks!
0
IS Programming
Top achievements
Rank 1
answered on 20 Jun 2012, 03:50 PM
Hi, am seeing the same problem. I am using the 2012 Q1 version of the SharePoint Acceleration Kit, is this the most recent version? If so please advise.
Thanks
0
Tsvetoslav
Telerik team
answered on 21 Jun 2012, 06:43 AM
Hi Mark,

Try downloading the ajax installer for the SharePoint 2010 telerik controls - it contains a more recent version of the TelerikSPRadGrid web part. It should be found once you click download on the ajax producs panel.


Greetings,
Tsvetoslav
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.
0
Hans Notelteirs
Top achievements
Rank 1
answered on 11 Oct 2012, 12:27 PM
Hi,

I had the same problem, even after updating to the latest version of the controls (2012.2.912.35).
The problem occures because SharePoint works with authentication and the "Anonymous Authentication" is disabled.
The gridbindingservice.svc has it's separte config file, which by default is not configured to take authentication into account and thus fails.
I managed to get the service to work after updating the web.config on the following location:

C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\ISAPI\Telerik.Ajax.SharePoint\web.config

<?xml version="1.0" encoding="utf-8" ?>
<configuration>
  <system.serviceModel>
    <bindings>
      <webHttpBinding>
        <binding name="webHttpEndpointBinding">
          <security mode="TransportCredentialOnly">
            <transport clientCredentialType="Ntlm" />
          </security>
        </binding>
      </webHttpBinding>
    </bindings>
    <serviceHostingEnvironment aspNetCompatibilityEnabled="true"/>
    <behaviors>
      <endpointBehaviors>
        <behavior name="webScriptBehavior">
          <enableWebScript/>       
        </behavior>
      </endpointBehaviors>
    </behaviors>   
    <services>
      <service name="Telerik.Ajax.SharePoint.GridBindingService">
        <endpoint address="/javascript" behaviorConfiguration="webScriptBehavior"
          binding="webHttpBinding" bindingConfiguration="webHttpEndpointBinding"
          contract="Telerik.Ajax.SharePoint.IGridBindingService" />
      </service>
      <service name="Telerik.Ajax.SharePoint.SchedulerBindingService">
        <endpoint address="" behaviorConfiguration="webScriptBehavior"
          binding="webHttpBinding" bindingConfiguration="webHttpEndpointBinding"
          contract="Telerik.Ajax.SharePoint.ISchedulerBindingService" />
      </service>
    </services>
  </system.serviceModel>
</configuration>

A bindingconfiguration is defined now on the endpoint which makes the endpoint use the security.
This got the communication with the service working. This is one step closer, but although the communication is working now, I don't get any data in the grid yet. So I continue my search...

I hope this configuration helps out some people who had the same problem.
0
Tsvetoslav
Telerik team
answered on 16 Oct 2012, 11:41 AM
Hello Hans,

Could you check with FireBug (or another tool) what the call to the service is returning?

Regards, Tsvetoslav
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.
Tags
WebParts for SharePoint
Asked by
Mark
Top achievements
Rank 1
Answers by
Mark
Top achievements
Rank 1
Tsvetoslav
Telerik team
Amit
Top achievements
Rank 1
IS Programming
Top achievements
Rank 1
Hans Notelteirs
Top achievements
Rank 1
Share this question
or