Questions tagged as 'asp.net-web-api'

1
answer

What is the error HTTP Error 403.14?

Well, I have an Api Web, which is configured as follows: WebApiConfig.Cs public static class WebApiConfig { public static void Register(HttpConfiguration config) { // Web API routes config.MapHttpAttributeRout...
asked by 12.12.2017 / 13:31
0
answers

On my site is asking for a dll that does not exist in my project

I'm having this error. The question is not how to solve it, but understand why it gives ERR , if in my project this DLL does not exist. In localhost the site usually goes up without this Dll . I just want to understand that.     
asked by 01.09.2017 / 11:09
1
answer

Error trying to consume WebAPI service

Since this morning I try to get a JSON that a WebAPI makes available. First I tried with insira o código aqui AngularJS and it was not evolving, so I went to the classic Jquery/Ajax and even then I did not succeed. In...
asked by 06.07.2016 / 20:26
2
answers

Hibrid Web Application (MVC and Web API)

In Visual Studio when we create a web project it gives you the options to dial: WebForms MVC Web API When the MVC + Web API framework both are in the same project. Is there any advantage / performance in using MVC + Web API in the same...
asked by 08.10.2015 / 21:32
2
answers

Error returning list with Fluent NHibernate

Within the Web.API project, I've created a Get () method which returns a list of objects - IList. This PersonAcess class has a Log list (1: N). When you execute the Get () method, an exception occurs: <ExceptionType>System.InvalidOper...
asked by 31.07.2014 / 14:20
2
answers

Document and test methods of an ASP.NET Core Web API

Is there a tool that can list the methods of a Web API and test them? I have already researched the site here about it and have not found specific solutions for a Web API that met what I need.     
asked by 11.08.2017 / 13:26
3
answers

Property set in constructor only returns zero value

I created a Web API in C # that returns me a list of products in JSON. However, the PrecoVenda property is always returned with a value of zero and I noticed that this occurs because in the constructor of the Produto class, Prec...
asked by 28.05.2018 / 01:00
3
answers

Entity Framework relationship 1: N

Hello. I have the following classes ... Sales Class: [Table("venda")] public class Vendas { public Vendas() { ItensVendas= new List<ItensVendas>(); } [Key] public int Id { get; set; } public...
asked by 16.11.2017 / 00:18
1
answer

How to deploy an Asp.Net Core Web API project in IIS?

Hello, I'm trying to put my ASP.NET WEB API application in IIS on the Windows Server 2016 server, but without success. When accessing url ex: link returns this error:    HTTP Error 502.5 - Process Failure. The process I've done so f...
asked by 15.09.2017 / 20:53
1
answer

Sending complex objects via HttpGet

I have a search method in my WebApi, as it is a search, I used [HttpGet] , as a parameter of this method, I pass an object with the filter options I want, for example: public class ParametrosBusca { public string nome { get; set; }...
asked by 13.07.2017 / 14:40