Click here to Skip to main content
14,362,565 members

Web Development

 
QuestionOutlook Current User Context Pin
Member 1106951823-Jun-19 23:08
memberMember 1106951823-Jun-19 23:08 
AnswerRe: Outlook Current User Context Pin
Richard MacCutchan23-Jun-19 23:47
protectorRichard MacCutchan23-Jun-19 23:47 
QuestionASP.Net Web API2 in IIS Pin
Kevin Marois18-Jun-19 9:10
professionalKevin Marois18-Jun-19 9:10 
AnswerRe: ASP.Net Web API2 in IIS Pin
Richard Deeming18-Jun-19 9:44
mveRichard Deeming18-Jun-19 9:44 
GeneralRe: ASP.Net Web API2 in IIS Pin
Kevin Marois18-Jun-19 9:53
professionalKevin Marois18-Jun-19 9:53 
GeneralRe: ASP.Net Web API2 in IIS Pin
Richard Deeming18-Jun-19 11:52
mveRichard Deeming18-Jun-19 11:52 
GeneralRe: ASP.Net Web API2 in IIS Pin
Kevin Marois18-Jun-19 11:54
professionalKevin Marois18-Jun-19 11:54 
GeneralRe: ASP.Net Web API2 in IIS Pin
Mycroft Holmes18-Jun-19 13:30
memberMycroft Holmes18-Jun-19 13:30 
GeneralRe: ASP.Net Web API2 in IIS Pin
Richard Deeming19-Jun-19 1:43
mveRichard Deeming19-Jun-19 1:43 
GeneralRe: ASP.Net Web API2 in IIS Pin
Mycroft Holmes19-Jun-19 13:24
memberMycroft Holmes19-Jun-19 13:24 
GeneralRe: ASP.Net Web API2 in IIS Pin
Kevin Marois19-Jun-19 8:49
professionalKevin Marois19-Jun-19 8:49 
QuestionAnyone has chrome debugging issue today.... Pin
Super Lloyd17-Jun-19 18:33
memberSuper Lloyd17-Jun-19 18:33 
AnswerRe: Anyone has chrome debugging issue today.... Pin
OriginalGriff18-Jun-19 3:02
protectorOriginalGriff18-Jun-19 3:02 
GeneralRe: Anyone has chrome debugging issue today.... Pin
Super Lloyd18-Jun-19 3:12
memberSuper Lloyd18-Jun-19 3:12 
GeneralRe: Anyone has chrome debugging issue today.... Pin
OriginalGriff18-Jun-19 3:23
protectorOriginalGriff18-Jun-19 3:23 
GeneralRe: Anyone has chrome debugging issue today.... Pin
Super Lloyd18-Jun-19 15:20
memberSuper Lloyd18-Jun-19 15:20 
Questionjquery chatbot code example for static answers Pin
byka17-Jun-19 9:40
memberbyka17-Jun-19 9:40 
AnswerRe: jquery chatbot code example for static answers Pin
Mycroft Holmes17-Jun-19 13:15
memberMycroft Holmes17-Jun-19 13:15 
Questiondoes anyone here use ELMAH? Pin
#realJSOP14-Jun-19 10:08
mve#realJSOP14-Jun-19 10:08 
QuestionDraw 3*3 Rubik’s cube Pin
Member 1449931913-Jun-19 7:53
memberMember 1449931913-Jun-19 7:53 
AnswerRe: Draw 3*3 Rubik’s cube Pin
#realJSOP13-Jun-19 8:48
mve#realJSOP13-Jun-19 8:48 
AnswerRe: Draw 3*3 Rubik’s cube Pin
ZurdoDev17-Jun-19 12:33
professionalZurdoDev17-Jun-19 12:33 
QuestionProblems Calling Asp.Net WebAPI 2 Pin
Kevin Marois11-Jun-19 13:07
professionalKevin Marois11-Jun-19 13:07 
AnswerRe: Problems Calling Asp.Net WebAPI 2 Pin
Richard Deeming12-Jun-19 1:45
mveRichard Deeming12-Jun-19 1:45 
GeneralRe: Problems Calling Asp.Net WebAPI 2 Pin
Kevin Marois12-Jun-19 5:02
professionalKevin Marois12-Jun-19 5:02 
Richard Deeming wrote:
if (isPrimitive || type == typeof(string) || type == typeof(decimal))

OK, so I changed this.

I now tried
Controller
[HttpGet]
public Response<List<string>> ExecuteRuleGroup(string trigger, List<AssayResultEntity> results )
{
    var response = new Response<List<string>>();

    try
    {
        IRulesBL bl = GetBL();
        response.Data = bl.ExecuteRuleGroup(trigger, results);
    }
    catch (Exception e)
    {
        response.Exception = e;
    }

    return response;
}
Client
public async Task<Response<List<string>>> ExecuteRuleGroupAsync(string trigger, List<AssayResultEntity> results)
{
    var webAPIExecutor = new WebAPIExecutor(Credentials, ServerUrl, "/Rules/ExecuteRuleGroup/", Method.GET);
    webAPIExecutor.AddParameter(trigger, "trigger");
    webAPIExecutor.AddParameter(results, "results");
    return await webAPIExecutor.ExecuteAsync<Response<List<string>>>();
}
And the list is null on the controller.

Should the controller method be a POST? I've tried that but I then get a Not Found exception when I call it.

I'm really stuck here. What else could be causing the list to be null?
If it's not broken, fix it until it is.
Everything makes sense in someone's mind.
Ya can't fix stupid.

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.