Questions tagged as 'asp.net'

1
answer

How to configure IIS for its correct operation?

When I run my API through Visual Studio CTRL + F5 or F5 and open my application that consumes this API it works perfectly (both on the same network or through NAT port redirection). However when I publish, I give publishing, the API works on...
asked by 24.05.2018 / 13:57
1
answer

ASP.NET Core Paging - PagedList.Core

I am creating an ASP.NET core study project, and when using the PagedList.Core paging library, the following error is occurring when running the dotnet run command:    Startup.cs (49.35): error CS0246: The name of the type or na...
asked by 09.09.2018 / 20:50
1
answer

Error return method "public async Taskstring"

When I execute the code below, it gives error in this line: Literal1.Text= ObterEmocoes(imageFilePath); You are giving this error message:    An object reference is required for the non-static field, method, or "Program.ObterEmocoes (str...
asked by 27.08.2018 / 03:16
1
answer

Access a list / array in a JSON URL

I am sending via JSON an array of strings, how can I access this array via url? example of some of the tests:    link    link {carrengado, erro} But it did not work, does anyone know how I can do this? [HttpGet] public HttpResponseMe...
asked by 19.09.2018 / 15:16
2
answers

ASP.NET MVC 5, I can not get set when I go into edit

I have a service class and I have the User responsible for the service, which is a user of IdentityUser .    Remembering that I changed the String Identity Id to "Int", just that. I can usually register, however, when I edit, it lis...
asked by 28.12.2017 / 15:34
1
answer

Entity Framework Core 2.0 - Add-Migration does not work

I'm creating a new code-first project. When trying to create the migration, using the [Add-Migration Initial -Context LogAuditoriaContext] command it simply does nothing, does not create, does not give error, does not report anything: I have...
asked by 27.12.2017 / 14:43
1
answer

Upload with ASP.NET Core json vs formdata

I'm using asp.net core webapi , initially my actions were using the [FromBody] attribute in the parameters, so I redeemed the json value sent by the front end . Now I'm implementing a screen that has upload , and I had to use formdata to sen...
asked by 01.09.2017 / 13:20
2
answers

Error trying to pass an ordered collection to a View

I'm trying to pass% s to an ordered collection, but I'm always having the same error:    There is no ViewData item of type 'IEnumerable' that has the 'TitleCortesia' key The only way I can successfully run my code is by using the followin...
asked by 07.10.2015 / 03:36
1
answer

Asp.Net 5 (Core 1.0) Class Library System.Text.RegularExpression

How to use the System.Text.RegularExpression namespace in Asp.Net 5, I'm having a project and I was upgrading it to ASP.NET 5, my problem was that I can not use regular expressions in the same en as I can reference the namespace in issue.     
asked by 05.03.2016 / 15:54
2
answers

Linq, Join by comparing with Like

I have a question regarding Linq. As I have observed some codes, they usually use for example: var _s = (from p in exemplo1 join q in exemplo2 on p.blabla equals q.blablabla I would like to know if a structure like for example t...
asked by 10.03.2016 / 18:25