Data dodania Pytanie
2017-05-27 19:05 ASP.NET Webapi with parameter »
I am building a webapi to getBalance of a customer from Db.It works well and i can retrieve the data.But the problem is in the parameter part. For eg...
(2) odpowiedzi
2017-05-27 00:05 MVC favicon.ico routing for WebAPI »
I have a ASP.NET Core MVC/WebAPI project using .NET Framework 4.6.2. In my solution I have different favicon images for each environment (DEV, Staging...
(1) odpowiedzi
2017-05-26 21:05 Web API not parsing get parameters correctly »
I have the following url http://localhost/api/map/tmc/identify? geometry={x:-112.0469856262207,y:33.3926093953406, spatialReference:{wkid:432...
(1) odpowiedzi
2017-05-26 20:05 WebApi versioning a single controller »
I am just starting to get into WebApi and what I am trying to understand is if you can have 1 controller that handles multiple versions. so instead o...
(1) odpowiedzi
2017-05-26 09:05 How to read sub Nodes from xml nodes list using c# »
following is my cXML data, and able to load cxml data to xmlnodeslist from xml payload request, now i want to read all the sub nodes from xmlnodeslist...
(1) odpowiedzi
2017-05-25 22:05 Serving Files and Routes from Web API »
We have an existing Web API project that we want to now serve 2 clients from root as well (accessed via different subdomains). What is the right way t...
(1) odpowiedzi
2017-05-25 19:05 Internal Server Error 500 when using Web Api Http Put »
I'm developing a Webapp to a company that use Picking Process. The process is very simple, I have a sales order with some information, and i creating...
(2) odpowiedzi
2017-05-25 12:05 Can't get documents by ID in MongoDB Web API »
My Get request allows me to get the first document in my collection by ID but won't allow me to get any other documents by ID, so it only ever returns...
(1) odpowiedzi
2017-05-24 16:05 Accept multipart/form-data along with other parameters in WebAPI request body »
I need to come up with a ASP.NET WebAPI method that accepts a request containing an uploaded file and a few other parameters. The C# model for this re...
(0) odpowiedzi
2017-05-24 15:05 Mvc Core Post String Value »
Question: Can we bind without the use of a model and just purely based on the parameter names of the IActionResult method. From the below I am posting...
(1) odpowiedzi
2017-05-24 09:05 How to create a controller in Web Api to update the lucene.net index? »
I'm creating a lucene.net for search engine in web api ,and i want to update the index and create a POST controller to return the update method,and he...
(0) odpowiedzi
2017-05-23 21:05 Kestrel with IIS - libuv.dll missing on run »
We're setting up an existing Web API server to serve site(s) alongside an existing API. I have been loosely following this article. Here's what my Gl...
(2) odpowiedzi
2017-05-23 21:05 How to rewrite code to use IAuthorizationFilter with dependency injection instead of AuthorizeAttribute with service location in Asp Net Web Api? »
I have the custom AuthorizeAttribute where I need to use one of the business layer services to validate some data in the database before giving user a...
(1) odpowiedzi
2017-05-23 18:05 Trying to create a link with WebApi not working »
In my project I need to create a link with parameters, so I was doing like this : var link = new Uri(Url.Link("GetUser", new { id = 1 })); static Li...
(1) odpowiedzi
2017-05-22 13:05 How to unit test method with disposable objects in it »
I was having unit test about my controller which was looking like that: [Test] public void Test() { //Arrange var dummySeamlessCustomerReques...
(1) odpowiedzi
2017-05-22 11:05 How to send a query string that ends in a period character? »
I have a web API project, with the following endpoint: GET api/search/{searchValue} Controller code: [RoutePrefix("api/Search")] public class Sear...
(1) odpowiedzi
2017-05-22 08:05 How to insert C# properties class incoming from web api and insert into mongodb collection »
I have C# Web Api , and the controller takes in a incoming model which is then what I want to insert into mongodb. Now , I know that TEST data works...
(1) odpowiedzi
2017-05-21 19:05 Cant use opened transaction in Entitiframework 6.1.3 with PostgresSql »
I have been trying to use EntityFramework6.Npgsql with transaction, but I'm getting above exception when I call the method DbContext.UseTransaction. ...
(0) odpowiedzi
2017-05-21 11:05 Unit testing HttpResponseMessage »
I'm trying to unit test some of my web services. For this, I want to assert some of my HttpResponseMessages. For this, I'm doing: [TestMethod()] publ...
(1) odpowiedzi
2017-05-21 07:05 How to add Account Confirmation using WebApi without Identity »
I have a WebApi project with Cors for the Authentication with Token and SendGrid for e-mails. I need to create a method to Send a E-mail to the user s...
(1) odpowiedzi
2017-05-20 21:05 multiple post methods in same controller »
I'm trying to create web api with multiple post actions. I have 2 post actions [HttpPost] [ActionName("Search")] public HttpResponseMes...
(3) odpowiedzi
2017-05-20 17:05 Cordova Contact with Database »
Below is my code which consist of Javascript and WebAPI,I am trying to check the local phone contacts with my Database.I am using Cordova Contact AP...
(0) odpowiedzi
2017-05-20 11:05 What is a good way to pass additional information to the http response when issuing access token with Owin middleware in Asp Net Web Api? »
I am using Owin middleware to implement token-based security for my application. When issuing the access token to the client I would also like to pass...
(1) odpowiedzi
2017-05-19 21:05 Httpclient consume web api via console app C# »
I am trying to consume the below web api via console app using Httpclient. I am stuck as in how to pass the parameter. The paramter is coming as a com...
(3) odpowiedzi
2017-05-19 20:05 Using ETag with Database data based on Trigger »
I have MySQL database with table named grades that has only {gradeId,gradeValue} and web service that retrieves grades from DB. I want user to get da...
(0) odpowiedzi
2017-05-19 20:05 Use of System.IO.Stream detected as an incompatible type when overriding FileConfigurationProvider »
I'm attempting to create a custom FileConfigurationProvider implementation for some configuration elements in a .Net Core WebApi application. It loo...
(1) odpowiedzi
2017-05-18 18:05 Path to Run WebAPI »
I have difficulty to Run the API with Browser or PostMan. The problem is the path so I get 404 error. This is the path: public static void Register...
(1) odpowiedzi
2017-05-18 17:05 405 error (Method Not Allowed) on Web API get »
I'm having a frustrating problem when I try to make a call to my Web API controller method with $.getJSON : it always ends up with the following messa...
(3) odpowiedzi
2017-05-18 16:05 How to replace 400 bad request error message with a custom message »
I am creating a webapi and just wondering whether I can replace the default error message in case of 400 Bad Request. For example, in this url (http:...
(0) odpowiedzi
2017-05-17 19:05 Control does not come back to the awaited webClient after calling Async WebAPI »
We have a Restful Client-Sever environment and I am trying to debug my code where client code looks like following: await Client.DoWork(Id); While ...
(1) odpowiedzi
2017-05-17 15:05 Receiving null value in POST param »
I receive a null value always in web api rest post request to a controller In my controller [HttpPost] public HttpResponseMessage PostCustomer([From...
(2) odpowiedzi
2017-05-17 08:05 .net Web API password Encryption methods »
I have developed a .net sample application using the tutorial given in https://docs.microsoft.com/en-us/aspnet/web-api/overview/security/individual-...
(0) odpowiedzi
2017-05-16 15:05 Web Api 2 OWIN Selfhost handle multiple concurrent requests »
I have a selfhosted web api using OWIN, and I seems to struggle on concurrent connections. When I run a stress test with 50 concurrent get events, the...
(1) odpowiedzi
2017-05-16 11:05 HttpClient POST to WEB API method returns 405 (Method not allowed) »
Following request works perfectly when using Postman (Browser) within IIS Express and VS 2015 in a Debug Session: POST http://localhost:51072/api/cs/...
(1) odpowiedzi
2017-05-16 00:05 Why is the uri for a self hosting application set as localhost? »
I recently started looking into Asp.net Web Api self hosting. I'm following this article and I have two questions based on that. Why is the URI for...
(3) odpowiedzi