1-888-365-2779
+1-888-365-2779
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

4 posts, 0 answered
  1. Ajay
    Ajay avatar
    46 posts
    Registered:
    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
    Registered:
    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">
      <system.web>
        <httpHandlers>
          <add path="*" type="ServiceStack.HttpHandlerFactory, ServiceStack" verb="*" />
        </httpHandlers>
      </system.web>
      <!--Required for IIS7-->
      <system.webServer>
        <modules runAllManagedModulesForAllRequests="true" />
        <validation validateIntegratedModeConfiguration="false" />
        <handlers>
          <remove name="ServiceStack.Factory" />
          <add path="*" name="ServiceStack.Factory" type="ServiceStack.HttpHandlerFactory, ServiceStack" verb="*" preCondition="integratedMode" resourceType="Unspecified" allowPathInfo="true" />
        </handlers>
      </system.webServer>
    </location>
    <!-- END SERVICE STACK-->

    I hope this information is helpful to you.


    Regards,
    Kristian Smilenov
    Telerik
     
    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
     
  3. Jinad
    Jinad avatar
    0 posts
    Registered:
    04 Oct 2016
    04 May in reply to Kristian Smilenov
    Link to this post

    Hi,

    ServiceStack configurations is already added in my web.config file. Still I am getting "Failed to load resource: the server responded with a status of 405 (Method Not Allowed)" error. Please tell me a solution for this.

  4. Jinad
    Jinad avatar
    0 posts
    Registered:
    04 Oct 2016
    04 May in reply to Kristian Smilenov
    Link to this post

    Hi,

    I have added the Service Stack configurations in the web.config file. Still I am getting same error. Please provide a solution.

4 posts, 0 answered