Click here to Skip to main content
15,891,184 members
Home / Discussions / Web Development
   

Web Development

 
GeneralRe: Local IIS Development Question Pin
Kevin Marois12-Mar-19 12:48
professionalKevin Marois12-Mar-19 12:48 
GeneralRe: Local IIS Development Question Pin
Richard Deeming13-Mar-19 1:33
mveRichard Deeming13-Mar-19 1:33 
GeneralRe: Local IIS Development Question Pin
Kevin Marois13-Mar-19 6:14
professionalKevin Marois13-Mar-19 6:14 
Question"The requested resource does not support http method 'GET" Pin
Kevin Marois7-Feb-19 10:05
professionalKevin Marois7-Feb-19 10:05 
AnswerRe: "The requested resource does not support http method 'GET" Pin
Richard Deeming7-Feb-19 10:28
mveRichard Deeming7-Feb-19 10:28 
GeneralRe: "The requested resource does not support http method 'GET" Pin
Kevin Marois7-Feb-19 11:05
professionalKevin Marois7-Feb-19 11:05 
QuestionAsp.Net MVC Delete Method Not Allowed Pin
Kevin Marois6-Feb-19 6:53
professionalKevin Marois6-Feb-19 6:53 
AnswerRe: Asp.Net MVC Delete Method Not Allowed Pin
Richard Deeming6-Feb-19 7:12
mveRichard Deeming6-Feb-19 7:12 
I suspect it's because you're passing the parameter in the request body, rather than in the URL:
ASP.NET web API HTTP Delete 405 Method Not Allowed - Stack Overflow[^]

You might need to add the [FromBody] attribute to your parameter:
Using [FromBody] | Parameter Binding in ASP.NET Web API | Microsoft Docs[^]


Slightly off-topic:
C#
public async Task DeleteOperatorAsync(Guid id)
{
    await Task.Factory.StartNew(() =>
    {
        var webAPIExecutor = new WebAPIExecutor(ServerUrl, "/Operator/Delete/", Method.DELETE);
        webAPIExecutor.AddParameter(id, "id");
        webAPIExecutor.Execute();
    });
}

That just looks nasty. It would be better to make your WebAPIExecutor class expose async methods. The Execute method is IO-bound, not CPU-bound, so pushing the work onto a background thread doesn't make much sense.



"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer

GeneralRe: Asp.Net MVC Delete Method Not Allowed Pin
Kevin Marois6-Feb-19 10:18
professionalKevin Marois6-Feb-19 10:18 
GeneralRe: Asp.Net MVC Delete Method Not Allowed Pin
Richard Deeming7-Feb-19 0:44
mveRichard Deeming7-Feb-19 0:44 
GeneralRe: Asp.Net MVC Delete Method Not Allowed Pin
Kevin Marois7-Feb-19 8:35
professionalKevin Marois7-Feb-19 8:35 
QuestionASP.NET CORE AUTHENTICATION AGAINST ADFS Pin
_dk66072-Feb-19 6:18
_dk66072-Feb-19 6:18 
AnswerRe: ASP.NET CORE AUTHENTICATION AGAINST ADFS Pin
Mycroft Holmes2-Feb-19 13:33
professionalMycroft Holmes2-Feb-19 13:33 
GeneralRe: ASP.NET CORE AUTHENTICATION AGAINST ADFS Pin
_dk66073-Feb-19 2:52
_dk66073-Feb-19 2:52 
AnswerRe: ASP.NET CORE AUTHENTICATION AGAINST ADFS Pin
Kornfeld Eliyahu Peter3-Feb-19 3:38
professionalKornfeld Eliyahu Peter3-Feb-19 3:38 
QuestionDiscussion - MVC vs Core Razor Pages (Core 2.1) and other CRaP stuff Pin
#realJSOP28-Jan-19 3:51
mve#realJSOP28-Jan-19 3:51 
AnswerRe: Discussion - MVC vs Core Razor Pages (Core 2.1) and other CRaP stuff Pin
Richard Deeming28-Jan-19 6:19
mveRichard Deeming28-Jan-19 6:19 
GeneralRe: Discussion - MVC vs Core Razor Pages (Core 2.1) and other CRaP stuff Pin
#realJSOP28-Jan-19 7:27
mve#realJSOP28-Jan-19 7:27 
QuestionCore 2.1 Razor Pages Solution Pin
#realJSOP22-Jan-19 1:52
mve#realJSOP22-Jan-19 1:52 
QuestionBS Carousel local images Pin
Member 1097549721-Jan-19 7:46
Member 1097549721-Jan-19 7:46 
AnswerRe: BS Carousel local images Pin
Pete O'Hanlon22-Jan-19 2:03
mvePete O'Hanlon22-Jan-19 2:03 
GeneralRe: BS Carousel local images Pin
Member 1097549723-Jan-19 8:55
Member 1097549723-Jan-19 8:55 
QuestionCreating a 'design your own' feature on my website Pin
Member 1411577011-Jan-19 17:27
Member 1411577011-Jan-19 17:27 
AnswerRe: Creating a 'design your own' feature on my website Pin
Nathan Minier16-Jan-19 1:45
professionalNathan Minier16-Jan-19 1:45 
QuestionCreating PIVOT data not producing correct result Pin
samflex10-Jan-19 20:31
samflex10-Jan-19 20:31 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.