Data dodania Pytanie
2017-08-11 15:08 mvc call api controller PostAsJsonAsync action Method name Get »
I am doing an Asp .Net MVC 5 APP and I am calling an API Controller using PostAsJsonAsync like this int value=0; HttpResponseMessage response = await...
(1) odpowiedzi
2017-08-11 13:08 Autofac and scope issues »
Ok, this is starting to get on my nerves. I wish I had never started using Autofac, it has just become too difficult to use. I have created a Module ...
(0) odpowiedzi
2017-08-11 05:08 Webapi2 - Return from controller action after one task completes, but continue with further Async processing »
I have a question about Webapi2 My application is fully async/await, but I want to optimize the last part. I have a hard time finding out, so is ther...
(3) odpowiedzi
2017-08-10 22:08 HttpConfiguration method EnableCors not found »
Enabled CORS on one project, trying to do it on another existing project, however the "EnableCors" method cannot be found in during compilation: publ...
(1) odpowiedzi
2017-08-10 21:08 "The requested resource does not support http method 'OPTIONS'" when using EnableCors »
I want to enable CORS on one specific action in an Asp.net Web Api. Here's how I'm trying to do it: [Route("api/mycontroller/myaction")] [HttpPost] [...
(2) odpowiedzi
2017-08-10 15:08 Re use jwt to call API from another API »
I have a single tenant scenario in Azure Active Directory where an API1 needs to call another API2 using authentication, and where the API1 was called...
(1) odpowiedzi
2017-08-09 22:08 How to configure NServiceBus 6 to use an existing StructureMap container in Web API? »
I have a Web API application working with StructureMap and I've introduced the latest version of NServiceBus (version 6) to introduce pub/sub for chan...
(1) odpowiedzi
2017-08-09 18:08 passing a list to a list<T> »
I am working with openxml, and have something that is pulling my hairs up, basicly i am editing a pré existing document, it is a template, the templa...
(1) odpowiedzi
2017-08-09 09:08 Using Web API ODATA $expand=* for TPH entities »
The ODATA $expand=* term expands all properties of an entity. But in the TPH pattern, it expands only the base class reference properties: public abs...
(0) odpowiedzi
2017-08-08 20:08 MVC Api Controller Method HttpPost not working »
I am using Visual Studio 2013... I am having some problems with Api Controller Method. I understand the differences between HTTPGET, HTTPPUT, [FromU...
(1) odpowiedzi
2017-08-08 17:08 Pass JSON nested object to Post() method - C# WebAPI »
I have a C# WebAPI (I'm new to web API) which work fine as I can perform GET & POST request from Postman and from another C# program using HttpCli...
(1) odpowiedzi
2017-08-08 12:08 WebApi is using Web Server culture »
Our servers are running in Denmark using the Da-DK culture. We have not specified any culture in the ASP.NET WebApi solution. When an endpoint is ca...
(1) odpowiedzi
2017-08-07 22:08 How to retrieve POST parameters from AuthorizeAttribute in Web Api .Net? »
I am working on an authentication method using a token for me Web Api .Net project, so I am overriding some methods like this: public class Authorize...
(1) odpowiedzi
2017-08-07 21:08 Fill form with angularJs »
This is my HTML and AngularJs Controller. When I start the app, the form is filled with data by ng-repeat... My question and problem is: When I cli...
(1) odpowiedzi
2017-08-07 20:08 How to route an API and use a query string? »
I am trying to make an API that will Get a list of people depending on what you search by - PhoneNumber, Email, Name My issue is I am not sure how to...
(1) odpowiedzi
2017-08-06 18:08 How can we use web api services in other projects like we use in wcf services in other projects? »
my question is when we create project in wcf after completion we can use the project service in other project too by writing just local address in ref...
(0) odpowiedzi
2017-08-06 14:08 Calling webapi only when client has install certificate in his machine »
i wanted to add a layer of security via certificate to access hosted asp.net webapi. i want that only those client who have install certificate in th...
(1) odpowiedzi
2017-08-06 09:08 C# .net OWIN - starting a route for a WebAPI with a Wildcard dynamic URL »
I have a WebApi hosted in OWIN and I was wondering if it was possible to have the beginning of the URL a "wildcard", so for example if I have a WebAPI...
(2) odpowiedzi
2017-08-05 21:08 mvc Api optimization: return ihhtpresult from a custom class to api action »
I am working with C#, MVC , ASP.Net Web API and I realized that I have code that is repeated in my API controller. public IHttpActionResult PutSometh...
(3) odpowiedzi
2017-08-05 16:08 Is it good/bad design to join composite key with underscore in url? »
I'm looking for the best practices on RESTful API design for the following use case: Table1 Table2 Id1 Id1 Id2 Id2 Id3 Id3 N...
(2) odpowiedzi
2017-08-05 15:08 File Upload with AngularJS and ASP.NET MVC »
I am new to ASP.NET MVC and AngularJS, How can I Upload file (Image/PDF/Doc) to server Folder By AngularJS Controller with ASP.NET MVC Controller ...
(1) odpowiedzi
2017-08-04 15:08 .NET Web API, Return Data To Client, Then Process Transaction? »
I have a VB.NET Web API controller, that performs two functions: when a request comes in, it processes the request, and then returns data to the clien...
(0) odpowiedzi
2017-08-04 10:08 receive complex object and handle it »
I am working with asp.net web api, and my client side is in vuejs, i pass a object with json that is like this: [ { "key": "Table", "rows":...
(1) odpowiedzi
2017-08-04 00:08 Task vs Void In Terms Of Controller Disposal »
When I use void for the controller's return type, I see that controller is disposed before the action is completed and I get the "An asynchronous...
(1) odpowiedzi
2017-08-03 23:08 How do I get the bearer token claims that azure b2c promises? »
Background I have two applications registered in azure, one is a web-based client and the other is a web-based service. The setup is similar to the e...
(1) odpowiedzi
2017-08-03 22:08 It's worth configuring CSRF Prevention with antiforgery in JWT Backed Web Api? »
Well I have a Net Core Api project and I was trying to protect those endpoints that cause side effects on my database, I was reading a lot of XSRF Att...
(0) odpowiedzi
2017-08-03 11:08 Web API versioning URL »
I'm having a bit of a problem trying to version my Web API: [ApiVersion("1.0")] [ApiVersion("2.0")] [System.Web.Http.Route("api/v{version:apiVersion}...
(1) odpowiedzi
2017-08-03 10:08 How to auto log every request in .NET Core WebAPI? »
I'd like to have every request logged automatically. In previous .Net Framwork WebAPI project, I used to register a delegateHandler to do so. WebApiC...
(3) odpowiedzi
2017-08-02 14:08 c# mvc 5 call json web service and save on database »
Greetings i want to call a web api that returns a json string from From Controller and i want to map it on a class so i can save the data on the datab...
(3) odpowiedzi
2017-08-02 13:08 is it possible to return sequential responses from asp.net web api or WCF or Restful Services? »
is it possible to return multiple sequential responses with asp.net web api or WCF or any other possible REST methodologies? So basically there will ...
(1) odpowiedzi
2017-08-02 08:08 OWIN Web API authorization in User Interface »
I prepare User Interface in MVC and Web API. Authorization in Web API via OWIN is correct. In login method you can see I just log on to Web API and I ...
(1) odpowiedzi
2017-08-01 14:08 SimpleInjector verifies OK, but throws Parameterless constructor error on first request »
I've created a .NET 4.5 WebApi app and I'm attempting to use SimpleInjector. Everything seems to register OK - when I do container.Verify(), my WebAp...
(1) odpowiedzi
2017-08-01 11:08 Async controller returning too soon »
The idea here is to run some long running methods concurrently, 5 at a time. When 15 of them are done (3 blocks of 5), I should return from the contro...
(0) odpowiedzi
2017-08-01 01:08 Serialization Failed for application/xml in Webapi »
I have Updated the Question, Please see under Update 1 I am getting an error when my WebAPI tries to return the data in XML format. The JSON format w...
(1) odpowiedzi
2017-07-31 17:07 Receiving FileActionResult between Services »
I have a route returning a pdf file as a FileActionResult: [HttpGet] [Route("getPdf")] public async Task<IHttpActionResult> GetPdf() { retu...
(0) odpowiedzi