Data dodania Pytanie
2018-02-15 23:02 Best practices for connecting from ASP.NET Core to SQL Server? »
I've had some recent difficulty with SQL Server not liking the default AppIdentityUser for logins, so I went ahead and created a custom DB user with w...
(1) odpowiedzi
2018-01-29 04:01 HttpClient call to web api method with integer parameter Returns error 404 »
I really can't see what I am doing wrong here. I am trying to call a asp.net core web api method that accepts an integer via HttpClient but it returns...
(1) odpowiedzi
2018-01-29 01:01 WebAPI Core routing issues »
So, I am playing around with Web API (ASP.NET Core 2) and having routing issues. I have several controllers such as: SchoolController TeacherControl...
(1) odpowiedzi
2018-01-06 18:01 ASP.NET Core Authorization based on query string »
I have an endpoint in my Web API which looks like this: api/customers?salesRepId=123 Now, if I don't supply the salesRepId in the querystring, I wa...
(2) odpowiedzi
2018-01-05 17:01 External authentication in ASP.NET core Web API and Angular Client »
I have an angular application that uses asp.net core Web API. I need to add external authentication for google and facebook sign in so that my web and...
(0) odpowiedzi
2018-01-03 18:01 Multiple types [FromBody] on same method .net core web api »
I have a controller with one POST method, which will receive an xml string which can be of 2 types. Eg: [HttpPost("postObj")] public async Task&l...
(2) odpowiedzi
2017-12-25 16:12 Identity: reset password by phone »
With aspnetcore and Identity, how to reset password by phone? Since the api is mainly used by mobile app, so most of the time, user will use phone to ...
(0) odpowiedzi
2017-12-23 17:12 Cannot serialise to XML in ASP.NET Core 2 »
I'm very confused at the moment with a basic ASP.NET Core 2 API project and content negotiation and returning something other than JSON. I've had th...
(1) odpowiedzi
2017-12-07 17:12 Running dotnet core api from compiled dll »
I'm trying to run a dotnet core WebApi on a MacOs. Running the project with dotnet run works fine, since it runs from source code. Now i want to pac...
(0) odpowiedzi
2017-11-30 16:11 MVC AddJsonOptions ReferenceLoopHandling configuration not applied »
I have an ASP.NET Core 2 API C# project used by another ASP.NET Core 2 / Angular 2 application. I've configured the API project MVC service JSON optio...
(1) odpowiedzi
2017-11-25 00:11 .Net Core Web API »
New to .NET Core. What am I doing wrong? Here is my controller [Route("api/[controller]")] public class customerController : Controller { // GE...
(1) odpowiedzi
2017-11-20 11:11 ASP.NET Web API custom post action not working »
So I have a GebruikerController in my API. Gebruiker is dutch for User, what this controller does is that it logs the user in, gets list of users, add...
(1) odpowiedzi
2017-11-13 14:11 Spa app w/ Web API security concern. Can a logged in user with a JWT make random requests to API »
I have a security concern about building a SPA application. What is stopping an end user to make calls to my Web API as long as they have a token? F...
(1) odpowiedzi
2017-11-06 18:11 Equivalent of HttpResponseException/IHttpActionResponse for .net Core webapi 2 (not mvc) »
When I am reading about webapi for responding to requests and handling errors everything is based around: IHttpActionResult HttpResponseException B...
(1) odpowiedzi
2017-10-19 21:10 ASP.NET Core Web API showing warning for no reason »
I'm using Visual Studio 2017 15.3.5. Just created a new ASP.NET Core Web API project. Anytime I make changes to a file, I see the yellow warning icon...
(1) odpowiedzi
2017-10-12 21:10 How do I enable CORS in Giraffe? »
I am unable to successfully perform a Post operation using the Giraffe framework on the server with an Elm client sending the request. I receive the ...
(1) odpowiedzi
2017-10-12 20:10 How do I handle a failed post operation using Giraffe? »
How do I handle a failed post operation using Giraffe? What's the recommended practice for a failed post operation using Giraffe? let private regist...
(1) odpowiedzi
2017-10-12 04:10 Deleting PrecompiledViews.dll from ASP.Net Core 2 API »
In .NET Core 2 Web API app, Publish to folder feature in MS VS 2017 produce: <ProjectAssembly>.PrecompiledViews.dll <ProjectAssembly>.Pre...
(1) odpowiedzi
2017-10-08 00:10 StatusCode Helper Method »
I'm creating a helper method for my ASP.NET Core 2.0 API method that will return a status code based on response I get from my back-end logic. I'm cre...
(1) odpowiedzi
2017-10-06 10:10 Accessing MVC DI Service inside other services »
I am constructing a HealthAPI Class Library Which provides a list of statistics to our HealthMonitor Service. I have successfully got this working, T...
(2) odpowiedzi
2017-10-05 13:10 How do I exclude verbs in ASP.NET Core API? »
I need to exclude verbs allowed for an API solution, but I can't find examples how to do it in web.config. I did find an example for MVC that looks l...
(1) odpowiedzi
2017-10-04 04:10 Custom authentication asp.net core web api »
I want to use a secret key (api key) authorization asp.net core web api. The key will be passed in Authorization header like given below, ex. Authori...
(1) odpowiedzi
2017-09-27 09:09 Posting to web api path as a string via swagger/postman getting null »
I have in my controller a post method like this: public IActionResult Post([FromBody]string directoryPath) { _log.Debug($"Got ScanDirectory req...
(1) odpowiedzi
2017-09-13 06:09 .Net Core ValidateAntiForgeryToken throwing web api 400 error »
Visual Studio 2017 with Web Api using .net Core 1.1 I'm using, but I am getting a 400 Bad Request Error. Error Occurs in every way: Angular http ...
(1) odpowiedzi
2017-09-11 10:09 ASP.NET Core ApiVersioning change middleware hierarchy »
I have a problem with middleware hierarchy. I created very simple web api with one controller/action [Route("api/v1/values")] public class ValuesCo...
(1) odpowiedzi
2017-09-09 16:09 .Net Core 2 API How To Get Current Logged In User? »
This issue is trolling me quite hard at the moment. Never had a problem in Web API 2, now in Core, I can't get the current claims or identity for the ...
(0) odpowiedzi
2017-08-22 03:08 ASP.NET Core 2.0 JWT Validation fails with `Authorization failed for user: (null)` error »
I'm using ASP.NET Core 2.0 application (Web API) as a JWT issuer to generate a token consumable by a mobile app. Unfortunately, this token couldn't be...
(1) odpowiedzi
2017-08-20 23:08 ASP.NET Core Web API Facebook JWT Authentication »
I am trying to implement Facebook based authentication in asp.net core Web Api. I searched a lot and read most of the blog related to the authenticati...
(0) odpowiedzi
2017-08-16 18:08 Angular Post json to .net core web api is null (Updated) »
I am trying to post some JSON to a web api .net core but for some reason this is always null no matter what i have tried see code below. this is my ....
(1) odpowiedzi
2017-08-14 19:08 How to make valid route for {id}/visit? »
I am new at asp.core , so I try to make valid route to {id}/visits My code: [Produces("application/json")] [Route("/Users")] public class UserContro...
(1) odpowiedzi
2017-08-08 20:08 How create a middleware with api endpoints in .NET Core »
I have created the web application with the web api. The application contains some Controllers for example TodoController: namespace TodoApi.Controll...
(2) odpowiedzi
2017-07-21 18:07 How to stop thread reuse while still having uncompleted child-threads in ASP .NET Core request pipeline? »
I have a webapi with a custom execution context set on the request pipeline using a middleware something like this: public async Task Invoke(HttpCont...
(1) odpowiedzi
2017-07-12 16:07 Disable ModelBinder in .NetCore »
HeyGuys I'm working on a WebApi project that receives requests from clients and redirects these requests to other services that are not open for dire...
(1) odpowiedzi
2017-07-05 00:07 How to add Web API controller to an existing ASP.NET Core MVC? »
I created a project using the default ASP.NET Core MVC template. I would like to also create a RESTful API under /api/{Controller}. I added a new Web ...
(2) odpowiedzi
2017-07-02 18:07 Best practices to handle Web API status codes »
I have a web API project done with .NETCore. My web API receives a request from another Service A, with the information I have I need to do some conv...
(0) odpowiedzi