Encountering issues when attempting to call a server-side controller using AngularJS, these two error messages are being displayed.
The parameters dictionary contains a null entry for parameter 'problemId' of non-nullable type 'System.Guid' for method 'Boolean ReadOnly(System.Guid)'
[11:55:27 GMT+0000 (GMT Standard Time)] Browser Link: Failed to send message to browser link server:
Error: SignalR: Connection must be started before data can be sent. Call .start() before .send()
Server Side Controller Despite placing a break point in this controller, it never seems to get triggered.
public bool ReadOnly(Guid problemId)
{
var problem = new Problem(problemId);
return problem.ProblemCompleted();
}
Angular Controller After going through the Angular code, a valid GUID is maintained throughout.
$scope.problemCompleted = stepService.readOnly($scope.problemId);
Angular Service
//readOnly
this.readOnly = function (problemId) {
$http.post(ROOT + '/step/ReadOnly/' + problemId)
.then(function (result) {
this.problemCompleted = result.data;
return this.problemCompleted
});
}
Attempting to retrieve the boolean value back to the scope but unable to reach the controller.