Click here to Skip to main content
15,885,925 members
Home / Discussions / Web Development
   

Web Development

 
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 
GeneralRe: Asp.Net MVC Delete Method Not Allowed Pin
Kevin Marois6-Feb-19 10:18
professionalKevin Marois6-Feb-19 10:18 
That did it. I set the FromBody attrib and it worked.

As far as the Executor, here's the Execute code:
public void Execute()
{
    URL = client.BaseUrl + request.Resource;

    IRestResponse result = null;

    try
    {
        result = client.Execute(request);

        //TODO: Handle this differently.
        int resultCode = (int)result.StatusCode;

        //if (result.StatusCode != HttpStatusCode.OK)
        if (resultCode > 299)
        {
            string message = string.Format("An error occured calling the WebAPI. {0} The status code is '{1}'. {2} The error message is {3}",
                                            Environment.NewLine, result.StatusCode, Environment.NewLine, result.Content);

            throw new Exception(message);
        }
    }
    catch (Exception e)
    {
        throw e;
    }
}
Not sure what in here I could await. The RestClient doesn't expose any async methods.

Your thoughts?
If it's not broken, fix it until it is.
Everything makes sense in someone's mind.
Ya can't fix stupid.

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 
AnswerRe: Creating PIVOT data not producing correct result Pin
Richard Deeming11-Jan-19 2:01
mveRichard Deeming11-Jan-19 2:01 

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.