Data dodania Pytanie
2017-03-18 13:03 What is causing the model to null »
Angular Service:- app.service('loginService', ['$http', function ($http) { this.userLogin = function (user) { console.log(user); //prints {'usern...
(1) odpowiedzi
2017-03-18 13:03 Exception on GET call on a table using Entity Framework in WebAPI »
I'm trying to create a WebApi to read a data from the DB using Entity Framework. My data model design looks like this: I have added a WebApi contr...
(1) odpowiedzi
2017-03-18 11:03 The requested resource does not support http method 'GET' in vb.net web api »
I am working on Web API 2 in vb.net and I am getting issue with GET method. First of all I am able able to put HttpGet or AcceptVerbs on either class ...
(1) odpowiedzi
2017-03-17 22:03 Nested Tables Using a DTO »
I need help getting my WebApi Controller to work. I have a 3 table Models like this. First Table public class MainTable{ public int MainTab...
(2) odpowiedzi
2017-03-17 15:03 How do you store the current user as a property on a web api model »
I am using a web api 2 and creating a message object to save to the database. This message object needs to have the current user stored on it as an ap...
(2) odpowiedzi
2017-03-17 06:03 ASP.Net WebApi: return data in json and xml formats »
My ASP.Net WebAPI needs to return data that can be consumed in XML or Json format. The get method returns an object that contains objects of other typ...
(3) odpowiedzi
2017-03-16 15:03 How to serve(GET) Complex(Nested) JSON from C# Web API Visual Studio 2017 RTM that has a Many-to-Many relationship? »
I've been stuck on this problem for a long time now. My environment: Visual Studio 2017 RTM (Using the default .net core version of this IDE) Web...
(3) odpowiedzi
2017-03-16 15:03 How to do .Net Web Api versioning/routing for an app client? »
So there are several parts to this question. The 2 example endpoints (in simplest form): user/{id}/profile movie/{id}/info I expect to create 2 con...
(0) odpowiedzi
2017-03-16 13:03 Unable to display file in browser angularjs via webapi »
I am trying to download a file returned from Web API to angular client. The problem is that the file does not open, i.e pdf the browser displays "fail...
(1) odpowiedzi
2017-03-15 19:03 Cannot find type name in schema definitions »
I've started using Swashbuckle with Web API. None of my types are getting rendered correctly in my Swagger UI. On every method, I see something like...
(1) odpowiedzi
2017-03-15 13:03 Self referencing loop detected »
I have read a lot of previous solutions for this problem but none worked for me. I have a circular relation between Event and User object: public cl...
(2) odpowiedzi
2017-03-15 01:03 DependencyResolver in System.Web.Http.HttpConfiguration vs DependencyResolver in System.Web.Mvc »
I am working on the new ASP.Net Web API project using Microsoft Unity as IoC container. I am a little confused which one is correct. If I set the De...
(1) odpowiedzi
2017-03-14 16:03 Why does the order of auth middleware declaration matter in Owin Startup class? »
I read some examples(1,2,3,4) about setting up authentication in the owin pipeline when using web api and the examples declare the authentication mid...
(1) odpowiedzi
2017-03-14 15:03 Noob in ASP MVC Routing - 404 error »
I'm new to API designing with VS2017 and I'm trying to make my simple API work with few SQL objects in a DB. I have a fairly simple project which loo...
(3) odpowiedzi
2017-03-14 10:03 Web API Request is null in ExecuteAsync method of ApiController »
I am trying to access the Request property in my ApiController-derived class. For some reason, Request is null in ExecuteAsync method. I've seen the ...
(1) odpowiedzi
2017-03-13 14:03 Web API 2 - Communication between controllers »
Have anyone experience with communication between controllers in Web API 2 ?? Let's assume, we are working in web zone. Little example: public class...
(2) odpowiedzi
2017-03-13 12:03 Web Api C# .net params POST »
I'm trying to send a list of products for my web api in C# via JavaScript but my API doesn't accepts the products. How do I should pass it? This is m...
(2) odpowiedzi
2017-03-13 08:03 ASP.NET webapi odata put, The property 'ID' is part of the object's key information and cannot be modified »
I am a nooby with ASP.NET webapi, and this is a very simple situation that i am stuck in. I am using webapi+odata My Model: public class CategoryMo...
(0) odpowiedzi
2017-03-12 18:03 How to get a token from an ASP API in ionic 2 »
I have created an ASP API and used the option of individual user accounts upon creation. I have registered a User wonderfully and have even check that...
(0) odpowiedzi
2017-03-12 17:03 Add Property Value in Message Handler »
I want to add property value in message handler of asp.net webapi. scenario is I implement webapi in which authenticationToken is part of different re...
(2) odpowiedzi
2017-03-12 17:03 WebAPI exception - Make sure that the controller has a parameterless public constructor error »
I have this "known" issue below, but couldn't find a solution to that. This works perfectly on my local VS2015, but fails in the remote 2008R2 server ...
(0) odpowiedzi
2017-03-11 22:03 Angular 2 api call responds with 404 even though service works when tested »
I am trying to call a web service from my Angular 2 app. private baseUrl: string = 'http://localhost:3000/api'; getPatterns(): Observable<Patter...
(1) odpowiedzi
2017-03-11 16:03 Asp.net Web Api Token Authentication »
How to implement Token Based Authentication without using Katana ? there is any way to implement without Katana ? ...
(1) odpowiedzi
2017-03-11 10:03 How to address this DI caching »
I am using windsor castle DI along the Generic Repository pattern for my WebAPI project. User forgets the password, so he calls ForgotPassword API. ...
(1) odpowiedzi
2017-03-10 17:03 What is the advantage of using Web API in wpf? »
I need to calling our C# Methods from another server to perform some Action. I use C# in both servers. One is our Service Application, another one is ...
(1) odpowiedzi
2017-03-10 09:03 Why getting exception message as null »
I have ASP.Net WebAPI based application. Below is my DTO. public class CustomerTO { [Required(ErrorMessage="Name required")] [StringLength(...
(3) odpowiedzi
2017-03-10 06:03 Fire observable sequentially (or parallel) not working, when making http calls angular2 »
I've create an "array" of observables, and what to fire them sequentially (or parallel will also make the job). let listObservables: Observable<an...
(2) odpowiedzi
2017-03-09 19:03 How to add MessageHandler for a specific controller that is using Routing Attributes in ASP.NET WebAPI 2? »
It is possible to add a MessageHandler only for a specific controller that is using Route Attributes? I want to cut the request earlier in the pipeli...
(2) odpowiedzi
2017-03-09 17:03 http.post Simple object from angularJS to c# Web api either null or all properties are null »
First off, I'll acknowledge there are lots of questions close to my one here, but having tried every solution I can find on SO I'm still stuck. My Se...
(2) odpowiedzi
2017-03-09 11:03 Return error message from Web Api to $http »
I am using Angular 1.5 and ASP.Net WebApi 2. I want to show a error message when a $http.get request fails. Unfortunately, the error callback only con...
(1) odpowiedzi
2017-03-08 23:03 OAuth authorization returns "Authorization has been denied for this request" in a Azure Mobile App project »
I implemented OAuth authorization in a .Net Web Api project following this tutorial. I need to do the same, but within an Azure Mobile App project. It...
(1) odpowiedzi
2017-03-08 19:03 Newtonsoft serialization vs ASP.NET serialization »
If I have a simple class: public class UserId { public string Id { get; set; } } and I pass it to HttpRequest.CreateResponse() the output is: ...
(1) odpowiedzi
2017-03-08 01:03 Get the controller's return type in ExceptionFilterAttribute - HttpActionExecutedContext »
If somewhere within the request lifecycle, an exception is thrown, the HttpActionExecutedContext has a null response. public class MyExceptionFilter...
(1) odpowiedzi
2017-03-07 21:03 I can access libraries not referenced directly »
I was following this tutorial for me to be familiar with ASP.NET core and other related tech. https://www.codeproject.com/articles/997216/restful-day-...
(1) odpowiedzi
2017-03-07 09:03 Azure API App multiple actions with same verb and different routes gives swagger error »
I have a ApiController with those GETs: public class UsersController : ApiController { public IHttpActionResult GetUsers() { [...] ...
(1) odpowiedzi