Try Now
More in this section

Forums / Developing with Sitefinity / Get error from this service /restapi/sitefinity/related-data/data-types

Get error from this service /restapi/sitefinity/related-data/data-types

2 posts, 0 answered
  1. Ajay
    Ajay avatar
    46 posts
    14 Nov 2013
    23 Dec 2014
    Link to this post
    We have a "Sample" module created with module builder(Version 7.0). When we try to add a new field of type "Related Data" we are not getting any records in the dropdown. We saw the console error as "Failed to load resource: the server responded with a status of 405 (Method Not Allowed)". I have attached the files for your reference.
  2. Kristian Smilenov
    Kristian Smilenov avatar
    32 posts
    18 Mar 2015
    25 Dec 2014
    Link to this post
    Hi Ajay,

    The RelatedData feature uses ServiceStack services for manipulating the data. The Comments do it as well. Can you please go to Content -> Comments and check if you get some error there too.

    If this is the case, there is a highly change that you do not have ServiceStack configurations in your web.config file. Please add the following code:

    <!-- SERVICE STACK-->
    <location path="RestApi">
          <add path="*" type="ServiceStack.HttpHandlerFactory, ServiceStack" verb="*" />
      <!--Required for IIS7-->
        <modules runAllManagedModulesForAllRequests="true" />
        <validation validateIntegratedModeConfiguration="false" />
          <remove name="ServiceStack.Factory" />
          <add path="*" name="ServiceStack.Factory" type="ServiceStack.HttpHandlerFactory, ServiceStack" verb="*" preCondition="integratedMode" resourceType="Unspecified" allowPathInfo="true" />

    I hope this information is helpful to you.

    Kristian Smilenov
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Sitefinity CMS Ideas&Feedback Portal and vote to affect the priority of the items
2 posts, 0 answered