Questions tagged as '.net'

2
answers

Open connection more than once in C #

I'm developing a service in C #. calls a function to check if it has active records. If I have a record I call another function to select the data for the first query. When I run my service, the connection error already occurs. So be...
asked by 24.10.2018 / 18:53
1
answer

Server configuration asp [closed]

Good afternoon. I am venturing into a server asp, only that I am lost in your configuration. As dev php, I put an index.php on an asp server waiting for it to work, though it did not work. Looking for more, I realized that I should configure web...
asked by 23.07.2018 / 21:55
1
answer

Class receiving zero value

I am doing insert via post, but my class is getting zero values and the values of the inputs are passed via variable and are displayed correctly, but at the moment of action via post are coming with zero values. p> The most interesting...
asked by 30.07.2018 / 13:46
2
answers

Is it wrong to return null in a Task?

I have the following implementation of MemoryCache : public Task<News[]> GetCandidateNewsAsync(string candidate) { return _cache.GetOrCreateAsync(candidate, async factory =>// _cache é um IMemoryCache { var candi...
asked by 02.08.2018 / 23:33
1
answer

Extraction of data other than two lists of objects [closed]

I'm working on a WEB API and need to remove some of the values contained in one list and that are contained in another. To be better illustrated would be the equivalent of removing the data from a list where the user in question has already regi...
asked by 16.08.2018 / 03:08
1
answer

Error: The object reference was not defined as an instance of a C #

I want to make a table in console but all done I execute the program the error appears in the method AlunoLista() , already tried to make changes but I can not get there. static void Main(string[] args) { var cli...
asked by 22.08.2018 / 00:06
3
answers

Window Modal BootStrap does not display styles in components - Asp.net MVC

I have a problem that I can not solve for months! I'm using a package of bootStrap and JS styles, in which I referenced them in my _Layout. On all the pages that are rendered and inherit from the Main page, everything works without problems. Jus...
asked by 29.06.2018 / 13:23
1
answer

Recaptcha v2 on local server!

First of all, if this question does not fit here you do not have to refuse to just say that I remove it. But anyway, I believe that all the developers have gone through this problem, I could not test the recaptcha google on localhost only in are...
asked by 05.06.2018 / 19:33
1
answer

Delete User Identity

I'm new to Identity , I'm having trouble implementing the Delete users already registered method. I've done Action, I've managed View, but I'm not aware of what methods Identity use to do such an operation. I researched Google, but I must be...
asked by 01.06.2018 / 05:57
1
answer

API problem after doing deploy

My api is not working after deploy to the server, it is returning:    404 - File or directory not found.      The resource you are looking for might have been removed, had its name changed, or is temporarily unavailable. By doing some te...
asked by 23.05.2018 / 23:36