Questions tagged as 'c#'

1
answer

SemaphoreSlim locking method

I'm using SemaphoreSlim to "lock" some of my Web-API's methods until it worked correctly however there are times when these same methods get stuck completely, by postman when I run it gets a loading and after some time returns the error. Foll...
asked by 30.05.2018 / 04:27
1
answer

Validate empty fields in XLSX file - (EPPlus) ASP.NET

I'm doing the import of an XLSX file in C #, using ExcelPackage . I make some validations in the Ex import: Numeric, text and if the field is empty. Note: If all the columns in my file are filled, the import is successful. One of the ap...
asked by 04.06.2018 / 16:16
1
answer

How to know in which part of the code an exception happened by looking at Visual Studio Output

I noticed that in some requests the output of my Visual Studio displays some messages like for example:    Exception Generated: 'System.Collections.Generic.KeyNotFoundException' in mscorlib.dll       Exception Generated: 'System.NullRefere...
asked by 18.10.2018 / 22:18
0
answers

How to use interfaces like DbSet's in the Entity Framework in C #

Hello, I'm doing a solution where my entire business layer is in a separate project and in this project I created the relational layer structure from interfaces as shown in the example below: // interfaces de definição de características publ...
asked by 17.10.2018 / 14:14
0
answers

Error when navigating between screens with Xamarin IOS

I'm having trouble calling a second ViewController inside the RowSelected method in a class containing the UITableViewSource interface, making the same call by instantiating the ViewControlller causes a " Object reference not set to an insta...
asked by 18.05.2018 / 20:36
1
answer

C # Windows Service Alternative

Hello, I have some windows services written in C # (Framework 4.0) running on server here in the company, these services perform some monitoring to leave information available for when the user logs into the asp.net system. We will no longer...
asked by 18.05.2018 / 20:57
0
answers

Invalid parameter, MemoryStream

Good afternoon guys, I'm developing a small project in c # that needs to present an image along with a recipe and is the first time I work with image in database, I already inserted the image in the database. In the project ( C# ) when I...
asked by 30.04.2018 / 20:27
0
answers

ECDH between C # and javascript

I'm creating a web API and I need to implement ECDH for end-to-end encryption. On the server side I have a C # application and the client side a javascript application. I can change the keys, generate the private keys and encrypt a message, b...
asked by 03.09.2018 / 18:43
1
answer

Doubt generating entity from the cs file code in edmx C #

In the ".Net Framework 4" version I have a project that when using .edmx made the automatic generation of EdmSchema where in my project I did so: 1 - ADO - (Class Library Project) 2 - .edmx file 3 - An Interface using System; using Sy...
asked by 31.08.2018 / 04:09
0
answers

Copying files without congesting the network

When I joined the company, it already had servers, a stable network and a system developed in Delphi and everything working in the most perfect order. The backup is performed manually every day on an external hard drive. Recently in a convers...
asked by 18.04.2018 / 19:48