Questions tagged as 'c#'

2
answers

Problem when starting visual studio solution

I want to open this solution but I can not, could anyone help me solve this error?     
asked by 29.05.2018 / 21:04
1
answer

How to download direct TXT file

I uploaded a file to a WEB server, but when I use this code: WebClient update = new WebClient(); string Teste = update.DownloadString("http://testexxx.000webhostapp.com/teste.txt"); Returns this error: ConfigurationErrorsException: Element...
asked by 29.05.2018 / 18:03
2
answers

Know when my list is coming with values in sequence

I have a List<int> :    [2,3,5,4,6] Although they are not in order, it is a sequence of numbers (2,3,4,5,6) How do I validate this?    NOTE: There will always be 5 positions and the numbers will be from 1 to 6     
asked by 26.05.2018 / 00:17
1
answer

C # CRUD - Insert Error (Can not add or update child row: a foreign key constraint fails ...)

Good morning, I had been able to do everything right up to this error when inserting something into the database. localhost / phpmyadmin - xampp. It's something with id_user but I do not know what it is. I do not insert a txtbox...
asked by 25.05.2018 / 10:59
1
answer

WCF BytAarray Return Method gives error

I was trying to use a method to return a bytearray using ERP but I get an exception after some time saying Object Variable or With Block Not Set, what can it be? PS. Yes I know the engine has a native function but I wanted to use this one to l...
asked by 12.07.2018 / 23:04
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
1
answer

overwriting a certain line of the txt file

I am making a code where I need to delete a certain line in a text file ( .txt ) and put something else on that line, I would like to know how I can do it. Example: delete 2 line admin and type userNew        
asked by 28.05.2018 / 23:10
1
answer

ASP .NET - Local file directory using Chrome

I have the following code snippet: <div class='upload-border'> <input class='file-upload' id="fileUpload" runat="server" type="file" name='upload'/> </div> I need to get the local directory of the file I just selected....
asked by 29.05.2018 / 13:17
2
answers

ASP Net Core - Server receives multiple GET requests repeatedly

Hello, I have a server hosted on an EC2 instance, Ubuntu Server on Amazon AWS. No one is performing requests to this server, however, logs displayed in CloudWatch indicate multiple GET operations followed by POST, below are operations that are r...
asked by 09.06.2018 / 06:45
1
answer

attribute passing empty in entity

I'm trying to make an update only the fields of Issue Date and Due Date have no idea why, it's passing null when I call the save changes button. Inside the controller arrives one saying that the date of mission can not be null. @model Porta...
asked by 08.06.2018 / 15:35