Web API 2 Odata Controller Scaffolding seems to be broken
I have a Web API 2 project and scaffolding works fine whenever I add new OData Controllers with EntityFramework CRUD operations. However the moment I rename the default namespace and assembly name in...
View ArticleAsp.Net Web API Entityframework Concurrency
Hi,i have following Scenario: I have 2 web api functions, which delete / insert data into a SQL Server database. The data Access is handeld via .net entityframework v6. The insert / delete methods were...
View Articleweb api and phone gap
hi i am developing web api 2 application and mobile apps using phonegap .now i need track request what generate only mobile apps .[EnableCors(origins: "*", headers: "*", methods: "*")]
View ArticleForm data not reaching Web Api when using Angular
Hello,I am trying to post form data to an ASP.NET Web API with angular. So I have:<form name="form" data-ng-controller="SubscriberController"><input data-ng-model="subscriber.name" name="name"...
View ArticleoData and JSON-Error in Power Query
HiI'm using Web.API OData 5.3.1 with Excel Power Query. When I load Products und Productgroups, I get the follow error on Products-Table.Productgroups is ok.When I use the same OData-Feed-URL in Power...
View ArticleHttpWebRequest C# with controller WebAPI
hi, I am new to asp.net, I encountered a small problem, i create a new webapi controller in MVC project, when i try to get response from this controlle i get 404 error :s here is the code of...
View ArticleAdd Route and getting 'Inheritance security rules violated'
I am trying to implement web API into an existing web-site project. I have made an example project to try the concept and everything was OK. The difference is it was a web-application. I have added the...
View ArticleError in WebApi
hey i am new to web API where i need to request web api project from mvc project but it throws an error that unable to connect remote serverhere is the code following for mvc public class...
View ArticleDebugging OData 406 Responses
I've been working with an OData v4 endpoint and although it is up and running I have lost a lot of time troubleshooting problems when all I have is a 406 Not Acceptable response.Usually it has turned...
View ArticleConvert Stream into model object in Asp.net mvc
hey i am sending request to web api where api process my request and return data from db to my viewmodel where as in mvc project i am getting the result in stream please provide me the way to convert...
View ArticleCan I add Web API to project that has WebService files
I am trying to add web API to an existing project and having problems when I try and build the project. It complains about System.Net.Http not being referenced, but it is. As the WebService uses it. I...
View ArticleHelp with Net and jason and IP port
Hello,I am following an example for Rest/Jason using c# in .net and when I do a debug run the site fires properly and has an ip port of 11545. This is fine, but I would like to be able to change this...
View ArticleMethod not found: 'System.Web.Http.Controllers.ServicesContainer...
Ok, this is driving me crazy. My application was working fine until recently. I know server admins have been installing patches, but not sure if this is the problem.The app runs fine locally. Any time...
View ArticleWhat is the best way to track the authenticated user on the server side?
For a web app, the client side is javascript in the browser. The server side is Web API 2 with a REST API. At present there is a single server but we plan to scale out with a server each in the US, UK,...
View ArticleHow to retrive the sent data from httpwebrequest
I have sent data from mvc controller in HttpWebRequest Stream now i want to get that data in api how to do this here is the code for mvc and i get there empty modelpublic ActionResult...
View Articleget token OAuthor from linkedIn ?
hi,first, you can see the code below:var client = new HttpClient(); client.BaseAddress = new Uri("https://www.linkedin.com/"); var responseLinkedIn =...
View ArticleNull parameter in Web API httpwebrequest
Hi I am sending data from mvc to web api using httpwebrequest where as i debug it it sends the string in stream but i get null parameter on webapi end what is problemhere is mvc code[HttpPost] public...
View ArticlePlease help me in implementing Yahoo Oath 2.0 in asp.net & C#
I am implementing Yahoo OAuth 2.0 according to the guide given by yahoo at https://developer.yahoo.com/oauth2/guide/ . My code is failing on the step 4 of the guide which says "Exchange authorization...
View Articleweb api help page / documentation
Hi, I was trying to create documentation for my web api project. i have dome for the normal webapi but i am not able to generate OData controllers. i added property attribute for the Odata controller...
View ArticleError Cannot send a content-body with this verb-type in asp.net
I am getting this error while sending a int? id to web api here is the code for mvc i tried a lot to change parameters to send but i did not get the solution please solve it for mepublic ActionResult...
View Article