[CLOSED] Error in "RESTful Store" MVC Sample

  1. #1

    [CLOSED] Error in "RESTful Store" MVC Sample

    Hi Daniil, how are you?

    Please, can you fix the "RESTful Store" MVC Sample (http://mvc.ext.net/#/GridPanel_Update/Restful/ ).
    Updating and deleting causes a "resource not found" error.

    This sample is exactly what I need now in my project.

    Thanks in advance
    Marco
    Last edited by Daniil; Oct 09, 2014 at 5:50 AM. Reason: [CLOSED]
  2. #2
    Hi Marco,

    Thank you for the report.

    I guess the host/IIS has been updated and now it doesn't operate PUT and DELETE requests.

    I've found this:
    http://odetocode.com/blogs/scott/arc...a-windows.aspx

    I've tried the solution adding the following into Web.config.
    <remove name="ExtensionlessUrl-Integrated-4.0" />
    <add name="ExtensionlessUrl-Integrated-4.0"
          path="*."
          verb="GET,HEAD,POST,DEBUG,DELETE,PUT"
          type="System.Web.Handlers.TransferRequestHandler"
          preCondition="integratedMode,runtimeVersionv4.0" />
    It helps.

    I will ask my colleagues to look at that as well if there are any backstage effects of such changes. If they think it is OK, I will update Web.configs in SVN as well.

    Or, maybe, it could/should be configured in the IIS settings. I am not sure.

    I've just discovered that the same is reproducible with the WebForms Examples Explorer. Though, for some reason the solution above doesn't help. I will investigate further.
    Last edited by Daniil; Oct 01, 2014 at 2:32 PM.
  3. #3
    I've just discovered that the same is reproducible with the WebForms Examples Explorer. Though, for some reason the solution above doesn't help. I will investigate further.
    I've found that adding the following
    <remove name="SimpleHandlerFactory-Integrated-4.0" />
    <remove name="SimpleHandlerFactory-Integrated" />
    <add name="SimpleHandlerFactory-Integrated" path="*.ashx" verb="GET,HEAD,POST,DEBUG,PUT,DELETE" type="System.Web.UI.SimpleHandlerFactory" resourceType="Unspecified" preCondition="integratedMode" />
    <add name="SimpleHandlerFactory-Integrated-4.0" path="*.ashx" verb="GET,HEAD,POST,DEBUG,PUT,DELETE" type="System.Web.UI.SimpleHandlerFactory" resourceType="Unspecified" preCondition="integratedMode,runtimeVersionv4.0" />
    to
    Web.config => <system.webServer> => <handlers>
    helps for the WebForms Examples Explorer.

    I've updated the online application and will commit to SVN soon.

    Thank you for pointing out the problem.

Similar Threads

  1. Replies: 6
    Last Post: May 31, 2013, 3:04 AM
  2. Replies: 5
    Last Post: May 02, 2012, 5:37 PM
  3. Replies: 4
    Last Post: Oct 11, 2011, 2:42 AM
  4. Replies: 2
    Last Post: Jun 26, 2011, 1:59 AM
  5. Replies: 2
    Last Post: Feb 18, 2011, 10:27 AM

Posting Permissions