This is a migrated thread and some comments may be shown as answers.

DeleteObject doesn't work

3 Answers 68 Views
Web Services
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Bruno
Top achievements
Rank 1
Bruno asked on 07 Apr 2015, 10:35 AM

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

 

3 Answers, 1 is accepted

Sort by
0
Doroteya
Telerik team
answered on 10 Apr 2015, 10:07 AM
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.
 
0
Bruno
Top achievements
Rank 1
answered on 16 Apr 2015, 08:31 AM

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

0
Doroteya
Telerik team
answered on 21 Apr 2015, 06:59 AM
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.
 
Tags
Web Services
Asked by
Bruno
Top achievements
Rank 1
Answers by
Doroteya
Telerik team
Bruno
Top achievements
Rank 1
Share this question
or