DeleteObject doesn't work

4 posts, 0 answers
  1. Bruno
    Bruno avatar
    3 posts
    Member since:
    Feb 2015

    Posted 07 Apr 2015 Link to this post

    Hi,

    I'm using the telerik data access service. I can successfully Create, Read and Update entities from my underlying entitiesModel,

    but deleting objects doesn't work:

     

            Dim deletableCall As Com_call = dataManager.Calls.Where(Function(c) c.CallID = item.CallID).FirstOrDefault
            dataManager.DeleteObject(deletableCall)
            dataManager.SaveChanges()   

    The application gives an error when SaveChanges() gets called:

     

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/>
    <title>405 - HTTP verb used to access this page is not allowed.</title>
    <style type="text/css">
    <!--
    body{margin:0;font-size:.7em;font-family:Verdana, Arial, Helvetica, sans-serif;background:#EEEEEE;}
    fieldset{padding:0 15px 10px 15px;} 
    h1{font-size:2.4em;margin:0;color:#FFF;}
    h2{font-size:1.7em;margin:0;color:#CC0000;} 
    h3{font-size:1.2em;margin:10px 0 0 0;color:#000000;} 
    #header{width:96%;margin:0 0 0 0;padding:6px 2% 6px 2%;font-family:"trebuchet MS", Verdana, sans-serif;color:#FFF;
    background-color:#555555;}
    #content{margin:0 0 0 2%;position:relative;}
    .content-container{background:#FFF;width:96%;margin-top:8px;padding:10px;position:relative;}
    -->
    </style>
    </head>
    <body>
    <div id="header"><h1>Server Error</h1></div>
    <div id="content">
     <div class="content-container"><fieldset>
      <h2>405 - HTTP verb used to access this page is not allowed.</h2>
     
    <h3>The page you are looking for cannot be displayed because an invalid method (HTTP verb) was used to attempt access.</h3>
     </fieldset></div>
    </div>
    </body>
    </html>


     

    Can someone please help me with this?

     regards,

    Bruno

     

  2. Doroteya
    Admin
    Doroteya avatar
    502 posts

    Posted 10 Apr 2015 Link to this post

    Hi Bruno,

    The subject of the discussion in this forum thread seems the same as the one discussed the Telerik Data Access Service one. If this is the case, I would kindly ask you to continue our conversation in the latter.

    Nevertheless, I will leave this thread opened, so that the community can provide its input.

    I am looking forward to your feedback.


    Regards,
    Doroteya
    Telerik
     
    OpenAccess ORM is now Telerik Data Access. For more information on the new names, please, check out the Telerik Product Map.
     
  3. DevCraft banner
  4. Bruno
    Bruno avatar
    3 posts
    Member since:
    Feb 2015

    Posted 16 Apr 2015 Link to this post

    Hi,

     after some research it seems that the IIS Manager is using WebDAV that claims the Delete request but doesn't allow it, 

    i removed the WebDAV module but then i get an other error "Can not process the request"

    Do you know how i have to configure the IIS so he uses REST correctly?

     regards,

    Bruno

  5. Doroteya
    Admin
    Doroteya avatar
    502 posts

    Posted 21 Apr 2015 Link to this post

    Hello Bruno,

    Here are a few resources I found, which might be useful in your situation:

    How to Host ASP.Net Web API on IIS Server
    Deploying an ASP.NET Web Application with SQL Server Compact using Visual Studio or Visual Web Developer: Deploying to IIS as a Test Environment - 5 of 12 - disregard the fact that they use SQL Server Compact.
    The Web API Forum

    I hope this helps.


    Regards,
    Doroteya
    Telerik
     
    OpenAccess ORM is now Telerik Data Access. For more information on the new names, please, check out the Telerik Product Map.
     
Back to Top