WCF error with gridbindingservice.svc

10 posts, 0 answers
  1. Mark
    Mark avatar
    3 posts
    Member since:
    Feb 2011

    Posted 11 Nov 2011 Link to this post


    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.
  2. Mark
    Mark avatar
    3 posts
    Member since:
    Feb 2011

    Posted 11 Nov 2011 Link to this post

    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. 

  3. Tsvetoslav
    Admin
    Tsvetoslav avatar
    1823 posts

    Posted 17 Nov 2011 Link to this post

    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
  4. Amit sharepointer
    Amit sharepointer avatar
    13 posts
    Member since:
    Sep 2010

    Posted 17 Feb 2012 Link to this post

    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?
  5. Tsvetoslav
    Admin
    Tsvetoslav avatar
    1823 posts

    Posted 21 Feb 2012 Link to this post

    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 >>
  6. Amit sharepointer
    Amit sharepointer avatar
    13 posts
    Member since:
    Sep 2010

    Posted 22 Feb 2012 Link to this post

    Hi Tsvetoslav,

    It's working fine with new version. Thanks!
  7. IS Programming
    IS Programming avatar
    2 posts
    Member since:
    Dec 2010

    Posted 20 Jun 2012 Link to this post

    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
  8. Tsvetoslav
    Admin
    Tsvetoslav avatar
    1823 posts

    Posted 21 Jun 2012 Link to this post

    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.
  9. Hans Notelteirs
    Hans Notelteirs avatar
    19 posts
    Member since:
    Apr 2009

    Posted 11 Oct 2012 Link to this post

    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.
  10. Tsvetoslav
    Admin
    Tsvetoslav avatar
    1823 posts

    Posted 16 Oct 2012 Link to this post

    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.
Back to Top