Click here to Skip to main content
14,270,343 members

Web Development

 
QuestionOpenID, ADSF, custom LoginID Pin Pin
Super Lloyd4-Mar-19 5:09
memberSuper Lloyd4-Mar-19 5:09 
QuestionMenu's in HTML Pin
BobInNJ2-Mar-19 19:32
memberBobInNJ2-Mar-19 19:32 
AnswerRe: Menu's in HTML Pin
David Mujica4-Mar-19 10:48
memberDavid Mujica4-Mar-19 10:48 
AnswerRe: Menu's in HTML Pin
V.11-Mar-19 3:09
professionalV.11-Mar-19 3:09 
AnswerRe: Menu's in HTML Pin
Bohdan Stupak15-Mar-19 5:45
professionalBohdan Stupak15-Mar-19 5:45 
QuestionVS2017 IIS Question Pin
Kevin Marois1-Mar-19 8:29
professionalKevin Marois1-Mar-19 8:29 
QuestionImageButton inside Datalist Pin
byka1-Mar-19 7:28
memberbyka1-Mar-19 7:28 
QuestionAsp.Net Web API Call Incorrect [MODIFIED - FIXED] Pin
Kevin Marois1-Mar-19 5:57
professionalKevin Marois1-Mar-19 5:57 
I have a controller called Operator. In it I have these two methods:
[HttpGet]
public Response<IEnumerable<OperatorEntity>> GetAllOperators()
{
    return GetBL().GetAll();
}

[HttpGet]
public Response<OperatorEntity> GetOperator(Guid id)
{
    return GetBL().Get(id);
}

In my WPF app I call this:
Response<List<OperatorEntity>> getAllOpsResponse = await _operatorWebAPIProxy.GetAllOperatorsAsync();
Note that I'm calling GetAllOperatorsAsync

The call fails with the message
The request is invalid.The parameters dictionary contains a null entry for parameter 'id' of non-nullable type 'System.Guid' for method 'RemoteServices.Shared.Classes.Response`1[RemoteServices.Shared.Entities.OperatorEntity] GetOperator(System.Guid)' in 'RemoteServices.ServicesWebAPI.Controllers.OperatorController'. An optional parameter must be a reference type, a nullable type, or be declared as an optional parameter.
The message is saying that it's trying to reach GetOperator, not GetAllOperatorsAsync.

The URL I'm passing is http://localhost:53122/api/Operator/GetAllOperators/

This was working yesterday. This morning, the only change was me removing and re-adding the web API project. I copied the controller classess out, removed the Web API Project, re-added it and the two controllers, and this started.

Anyone know what's going on?

[UPDATE]
I have multiple GET methods in my controller. Fix is here.
If it's not broken, fix it until it is.
Everything makes sense in someone's mind.
Ya can't fix stupid.


modified 1-Mar-19 14:17pm.

QuestionSample Web application with login Form, On Login capture the IP address , Host Name etc of the User Pin
Member 1416781128-Feb-19 23:59
memberMember 1416781128-Feb-19 23:59 
AnswerRe: Sample Web application with login Form, On Login capture the IP address , Host Name etc of the User Pin
Peter_in_27801-Mar-19 1:54
professionalPeter_in_27801-Mar-19 1:54 
AnswerRe: Sample Web application with login Form, On Login capture the IP address , Host Name etc of the User Pin
Afzaal Ahmad Zeeshan1-Mar-19 3:46
mveAfzaal Ahmad Zeeshan1-Mar-19 3:46 
QuestionJquery-ui - non-minified file works, minified file doesn't Pin
#realJSOP25-Feb-19 1:13
mve#realJSOP25-Feb-19 1:13 
AnswerRe: Jquery-ui - non-minified file works, minified file doesn't Pin
Richard Deeming25-Feb-19 9:05
mveRichard Deeming25-Feb-19 9:05 
GeneralRe: Jquery-ui - non-minified file works, minified file doesn't Pin
#realJSOP26-Feb-19 0:36
mve#realJSOP26-Feb-19 0:36 
GeneralRe: Jquery-ui - non-minified file works, minified file doesn't Pin
Richard Deeming26-Feb-19 1:50
mveRichard Deeming26-Feb-19 1:50 
GeneralRe: Jquery-ui - non-minified file works, minified file doesn't Pin
#realJSOP26-Feb-19 5:48
mve#realJSOP26-Feb-19 5:48 
GeneralRe: Jquery-ui - non-minified file works, minified file doesn't Pin
Richard Deeming26-Feb-19 6:02
mveRichard Deeming26-Feb-19 6:02 
QuestionHelp with shopping cart Pin
Member 225362218-Feb-19 4:07
memberMember 225362218-Feb-19 4:07 
QuestionWhite space removed by minifier tools affects look and feel of HTML Pin
adi007me13-Feb-19 8:39
memberadi007me13-Feb-19 8:39 
AnswerRe: White space removed by minifier tools affects look and feel of HTML Pin
Richard Deeming13-Feb-19 10:49
mveRichard Deeming13-Feb-19 10:49 
Question[UPDATED ]MVC Web API Controller - Pass List<string> Pin Pin
Kevin Marois12-Feb-19 6:32
professionalKevin Marois12-Feb-19 6:32 
AnswerRe: [UPDATED ]MVC Web API Controller - Pass List<string> Pin Pin
Richard Deeming12-Feb-19 7:54
mveRichard Deeming12-Feb-19 7:54 
GeneralRe: [UPDATED ]MVC Web API Controller - Pass List<string> Pin Pin
Kevin Marois12-Feb-19 8:08
professionalKevin Marois12-Feb-19 8:08 
AnswerRe: [UPDATED ]MVC Web API Controller - Pass List<string> Pin Pin
F-ES Sitecore12-Feb-19 23:14
mveF-ES Sitecore12-Feb-19 23:14 
QuestionASP.Net MVC Serialization Problem - "No parameterless constructor defined for this object" Pin
Kevin Marois11-Feb-19 8:30
professionalKevin Marois11-Feb-19 8:30 

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.