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

2
answers

Error Converting a JSON-type string to Class in C #

I am building a Web Api in c # Where in one of the operations I return a string that serialized like this: public string GetCliente() { string resultado = string.Empty; DataTable dt = new DataTable();...
asked by 07.08.2018 / 02:18
1
answer

C # Web Api Error StatusCode: 500

Good I am developing an application that consumes an Api Web Service but when I run it I get Error StatusCode: 500, ReasonPhrase: 'Internal Server Error' This Is The Api Web Code The Connection Probe and It Works. Code C # [Ht...
asked by 06.02.2018 / 03:54
1
answer

Authorize Customized

I'm doing a module of roles and permissions in .net mvc with webapi. The question is that my authorize comes from System.Web.Http And I do not know how to customize it to be able to use permissions from my database to access controller and...
asked by 01.12.2017 / 16:41
1
answer

Error consuming WebApi and testing it on localhost

I have a WebApi, where I make a query to Sql Server, in other controllers there is no problem, it is done correctly, but in this I skip the following error    An error has occurred.   Multiple actions were found that match the request: Get on...
asked by 25.10.2017 / 01:19
1
answer

Create Data Groups with Linq

I have a question with linq. here I consult a group of users, in this case 250 arrive. var usuarios = _db.usuariosmv10.Where(x => x.campana.Equals(id)).ToList(); So, in the users variable I have a list of 250 users, now that's what I nee...
asked by 29.09.2017 / 21:43
1
answer

Error "No type was found that matches the controller named" WebApi

Because the error "No type was found that matches the controller named", does not recognize my controller, My WebApiConfig.cs here is public static void Register(HttpConfiguration config) { // Web API configuration and se...
asked by 25.09.2017 / 22:14
1
answer

Several Request with EF Core in Net Core

I have the following problem. I have a WebApi Rest in .Net Core where I use EntityFramework Core, I make a request and it works very well, the mess is when I make two requests at the same time, apparently it only supports one at a time, if I...
asked by 12.05.2017 / 01:34
1
answer

How do I store an object in Session in Asp.net core Web api?

// public class OrderVM { public User numUsu { get; set; } //La lista es de ProductOrder public List<ProductOrder> Products {get; set;} } var orderView = new OrderVM(); or...
asked by 22.04.2017 / 00:20
1
answer

Using ActionName in Web API

I am working with visual basic and AJAX, I want to access the following address in my controller called Catalogos: <HttpGet> <ActionName("BuscarProgramacion")> Public Function BuscarProgramacion(ByVal IdCuestionario As...
asked by 12.04.2017 / 20:54
2
answers

Load data in Textbox from Gridview

I want to load data from a row that when I select it by means of a button, I upload it in a format. For this I am doing it with the CommandName, as if they were coordinates, if you click on such a row it will load this data and so on for all....
asked by 15.12.2016 / 20:07