Data dodania Pytanie
2017-10-11 22:10 Odata with Asp.net and angularjs »
I am following up in the course AngularJS Front to Back with Web API using ASP.net, we are trying to do queries using ODATA so i added this code in th...
(1) odpowiedzi
2017-10-11 16:10 "GetBy" Methods in Web API »
We are using .NET Core to build a Web API. We need to support "GetBy" functionality, e.g. GetByName, GetByType, etc. but the issue we are running into...
(2) odpowiedzi
2017-10-11 06:10 Which one to choose HttpRequestMessage(HttpClient) or HttpWebRequest? »
I am into a scenario where my code was written with HttpWebRequest/HttpWebResponse (System.Net). This was on.Net4.5.2. But for platform independence r...
(1) odpowiedzi
2017-10-10 18:10 Memory not getting freed up in Asp.Net core api »
I have an issue where the memory is not getting freed up in my .NET Core Web API. All I am doing is simply returning a string from a static class. AP...
(1) odpowiedzi
2017-10-10 15:10 Web API, consumption from mobile app when cors credential set to true »
I'm using Cookie based authentication app.UseCookieAuthentication(new CookieAuthenticationOptions { AuthenticationType = DefaultAuthenticationTyp...
(0) odpowiedzi
2017-10-10 13:10 web api 2 cors not working »
I create a web service on Web API and try to use it from angular 2 application. I install Microsoft.AspNet.WebApi.Core 5.2.3 and configure it to allow...
(0) odpowiedzi
2017-10-10 12:10 Sending Json Arrays within Object to API »
i need to POST arrays within object to api that will looks like this: { "ds_seatInfo": [ { "SEAT_LOC_NO": "00201901", "SEAT_LOC_NO"...
(1) odpowiedzi
2017-10-09 20:10 How to execute Search action against odata endpoint »
CRM 2016 exposes odata/web api, and has functions and actions out of the box. I am attempting to execute the following request: https://mycrmorg.co...
(1) odpowiedzi
2017-10-09 18:10 Best way to integrate items from multiple sources? »
I have been tasked with integrating nodes from two different systems. For demonstration purposes, suppose I have to display Google Drive and OneDrive...
(0) odpowiedzi
2017-10-09 08:10 DELETE verb not working in iis 10 »
DELETE method is showing the below error in IIS 10 No 'Access-Control-Allow-Origin' header is present on the requested resource. All other metho...
(2) odpowiedzi
2017-10-08 22:10 ASP.NET Web Api 2 routing issue »
I really can't understand why it does not work. I have the following code: public static class WebApiConfig { public static void Register(HttpCon...
(2) odpowiedzi
2017-10-08 21:10 Asp.net identity doesn't save data to database after deployment »
First of all, I am new to asp.net. I am facing a wired issue with my asp.net Web Api2 project. My SQL Server is hosted in an Azure VM and I am using...
(1) odpowiedzi
2017-10-08 11:10 Serilog With API App in Azure »
I've integrated Serilog into WebApi project developed with Asp.Net Core 2.0 This is the configuration code in Program.cs: Log.Logger = new LoggerConf...
(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-07 21:10 restful c# page not display correctly »
I have a controller: public IEnumerable<Food> Get() { FoodDiaryContext cs = new FoodDiaryContext(); var foodquery = cs.Foods.OrderByDes...
(1) odpowiedzi
2017-10-07 12:10 Asp.Net MVC authencation with Wep Api »
I am developing an MVC project with the web API. When the user logs in, I am sending a token to the web service. I keep this token in the Session obje...
(1) odpowiedzi
2017-10-07 12:10 valid model c# properties »
somebody know, how to not allow other properties in controllers using annotations or some other method? for example, I have a model [required] publ...
(2) odpowiedzi
2017-10-06 18:10 ASP.Net Web Api, POST multiple objects »
I have this AngularJS Http Call $http({ method: "POST", url: Helper.ApiUrl() + '/Api/Case/SendCase', data: { obecttype1, obj2, o...
(3) odpowiedzi
2017-10-06 13:10 SendGrid inbound parse failure with Azure deployed app »
I have created a simple ASP.NET Web API app that receives parsed emails from SendGrid. Works well on my machine using a secure tunnel with ngrok. The ...
(0) odpowiedzi
2017-10-06 12:10 The underlying provider failed on Open iis »
I am working on asp.net web api, when I run my project on micro soft visual studio built in server every thing work fine, but when i host it on local ...
(2) odpowiedzi
2017-10-05 18:10 Consuming asp.net web.api json not working »
I'm trying to consume my web api which returns JSON format from my asp.net mvc web application. As my JSON format has root node (the way i filled with...
(1) odpowiedzi
2017-10-05 12:10 Facing issue while consuming services from a class library in a API project »
I have created a Class library project and add the service reference of "E-Verify" web service to this project. In this project, I have created a wrap...
(0) odpowiedzi
2017-10-05 10:10 Api Gateway and Sharing Service Models »
The short version of my question is that I'm trying to wrap my head around how models are "shared" between an API Gateway and internal microservices. ...
(0) odpowiedzi
2017-10-04 10:10 Is it possible to return different models in an ODataController? »
IN a OData v4 Controller, is it possible to return different models for the Get() and the Get([FromIDataUri] key)? I like to use ViewModels, and when...
(3) 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-10-04 04:10 ASP.NET Exception-Handling: ExceptionFilterAttribute vs Overwrite ExecuteAsync »
In ASP.NET, Microsoft suggests us to use ExceptionFilterAttribute to handling exceptions. Exception Filters But I think we have other ways to handlin...
(1) odpowiedzi
2017-10-03 21:10 Modelbinding from both body and route parameters web api »
I have a need whereby I am providing a model that contains all the parameters that I wish bound in a POST request. However some of these parameters a...
(1) odpowiedzi
2017-10-03 12:10 Asp .NET Web Api + MVC + Angular 2 - action with two parameters »
I have an ASP .NET MVC application with Angular 2. I added a WebApi Controller and try to communicate from angular service with it, but it does not ac...
(1) odpowiedzi
2017-10-03 07:10 WebApi - Sent Guid taken as a new Guid »
I have an ApiController class with a method accepting a complex object. public class SampleController : ApiController { [Route("api/Sample/")]...
(1) odpowiedzi
2017-10-02 21:10 Cors config issue - one api method can be accessed but another cant? »
When I access method A, I get through, but not method B due to CORS error: Response to preflight request doesn't pass access control check: No '...
(1) odpowiedzi
2017-10-02 14:10 ASP.NET exceptions not going through Application_Error »
I'm trying to implement global error handling in an ASP.NET Web API 2 app. To kick things off, I have a controller and I simply throw new Exception("o...
(0) odpowiedzi
2017-10-02 10:10 C# Core 1.1 Web API Receive zip file »
I created Web API endpoint to receive a zip file which looks like this [HttpPut()] [Consumes("application/zip")] public async Task<IAc...
(2) odpowiedzi
2017-10-01 18:10 Passing list of objects from Angular to Web API »
How to pass list of object from Angular to a Web API ? I tried it using content-type as application/json but it shows CORS preflight error. Followin...
(3) odpowiedzi
2017-10-01 16:10 WebApi proxy throughput »
I'm writing a web application with a bunch of backend micro-services, and a single gateway application handling concerns such as SSL offloading, autho...
(0) odpowiedzi
2017-10-01 04:10 C# Web Api, log4net rolling by date overwrite file »
I'm using Log4net in my web API, that's roll daily, the problem is that all the logs of previous days, have only couple of entries in the day after th...
(0) odpowiedzi