Skip to main content

All Questions

0 votes
3 answers
3k views

Web api not found after deployed in server

I've deployed (with port 9021 and site name Production) an Angularjs Web API application on a test server, and when I hit the URL http://localhost:9021/api/Item/GeAreas?P_Id=US99 on the test server,...
user11130182's user avatar
0 votes
1 answer
122 views

AngularJs $resource not invoking custom 'GET'

I have created a simple RESTful service in .Net which is hosted here. I am trying to invoke getByName action from my angularjs code. But, angularjs code is invoking default 'get' instead of '...
user2243747's user avatar
  • 2,977
5 votes
6 answers
19k views

WebApi "The requested resource does not support http method 'DELETE"

Using WebApi angularjs project and trying to delete function as ` [HttpDelete] public String DeleteCountry(string cntryId) { if (cntryId != null) { return ...
safeena rasak's user avatar
1 vote
1 answer
624 views

Web API Route config not firing by angularjs with multiple parameters

Please check my WebApiConfig, API Controller and angular Service. 1st route is working fine but 2nd and 3rd not calling by angularjs. though web api route is ok. --WebApiConfig public static class ...
sebu's user avatar
  • 2,964
4 votes
0 answers
3k views

Angular call to Web Api 404 error The resource cannot be found

I am developing a back-end Web API application which should be called by an angular front-end application. When I try to make request from the angular application in order to get info about the ...
Rosen Petrov's user avatar
1 vote
1 answer
532 views

Integrate Angular JS project into Web Api project

I currently have a Play project where Angular Front-end is integrated into it with Gulp. Now I need to re-use the angular code into a .Net Web-Api project. Having APP and API as separate project will ...
Keshan Nageswaran's user avatar
1 vote
2 answers
3k views

Multiple HttpPost action with the same parameter in Web API Controller

I'm developing a web application using ASP.NET Web Api and angularJs. I have a web api controller like this: [ActionName("AddNewState")] public object PostAddNewState(RegionInformation newStateParam) ...
Abolfazl Davoodi Shandiz's user avatar
4 votes
2 answers
1k views

Why would the parameter name matter with Web Api id works while memberId ( both int) does not work

Just when after years of writing and consuming web api service methods, I am doing a project in which I was calling from Angular and then when the breakpoint in web api was NOT hit I was using ...
user avatar
0 votes
2 answers
6k views

Call a Web ApI method with Parameters using AngularJS

I am calling a web API with angularJS Service. My webp API method is working fine without parameters '/api/Subpart/' When i tried to pass parameters , Web API method is not firing. Angular service ...
Shakeer Hussain's user avatar
1 vote
1 answer
2k views

Parameters are not getting passed from angular to Web API in the POST call

Below is my angular and Web APi Code.In the post method null is getting passed instead of India Angular Code: HWApp.controller('TestCtrl', function ($scope, $http) { $scope.SendData ...
Rohit Sharma's user avatar
0 votes
1 answer
47 views

Setting WebAPI routing

In WebApiConfig I've added to routes : config.Routes.MapHttpRoute( name: "v1_Api", routeTemplate: "api/v1/{controller}/{id}", defaults: new { id = RouteParameter.Optional } ); ...
demo's user avatar
  • 6,245
0 votes
1 answer
194 views

Angular Ng-File-Upload url cannot find MVC ApiController Method

I am trying to use ng-file-upload to upload files and save blob to database as in my previous question Ng-File-Upload to Save PDF Blob to Database I believe that I have the "correct" code to complete ...
Rani Radcliff's user avatar
1 vote
2 answers
984 views

No action was found on the controller that matches the request from AngularJS and Asp.Net WebApi

My head is fuming. I am learning AnjularJS with Asp.Net Web Api. I have the following AnjularJS controller which has an ajax call to a Web Api service as follows. CustomerController = function ($http,...
VivekDev's user avatar
  • 25.7k
1 vote
1 answer
46 views

Web API resource usages in frontend

I've run into this problem a few times. I change the result or parameters of a resource and I search for where it's used and change that too. But every so often I missed some obscure part of the app. ...
Snæbjørn's user avatar
  • 10.8k
0 votes
2 answers
1k views

404 Not found - consume the Web API by angularjs

I have my controller code: [HttpGet] [ActionName("Email")] public HttpResponseMessage GetByEmail(string email) { Users user = db.Users.Find(email); if (user == null) ...
Abdulrhman Alsri's user avatar

15 30 50 per page