Questions tagged as '.net'

1
answer

Compact a file saved in Bank

Good afternoon! I have a file that is saved in a database, and I need to zip that file, if I download it. How do I do it? Thank you very much for the support     
asked by 05.06.2018 / 21:13
0
answers

Zxing does not read CODE 128 barcode with more than 8 characters [closed]

I need some help, I made a code to read barcode from the camera of the cell phone. When I put more than 8 characters in CODE 128 the system does not read. In other formats Read but in code 128 no. What can it be? Here's an example and how's my c...
asked by 08.06.2018 / 06:06
0
answers

Entity mapping with .Net Core 2

I have the following entities: public class Transacao : IEntity { [Key] public int Id { get; private set; } public int LojaId { get; set; } public virtual Loja Loja { get; set; } public int Adquir...
asked by 02.06.2018 / 00:26
1
answer

Error debugging webservice (asmx) locally in Visual Studio

I'm trying to debug a webservice (asmx) locally from Visual Studio. When attempting to create the connection to the database, the following exception occurs:    Request for type permission failed   'System.Security.Permissions.FileIOPermissio...
asked by 17.05.2018 / 19:37
0
answers

Elastic transactions with MS SQL Server

Considering the following code snippet: using (var scope = new TransactionScope()) { using (var conn1 = new SqlConnection(connStrDb1)) { conn1.Open(); SqlCommand cmd1 = conn1.CreateCommand(); cmd1.CommandText =...
asked by 13.06.2018 / 15:53
0
answers

Validate user token of multiple applications in a single OAuth2-based authentication WebAPI

I am in the following scenario: I developed an API that is only used for authentication and authorization of company users, which I am calling SecurityAPI. All services work as expected and the API is based on OAuth2. In the company I have...
asked by 27.03.2018 / 15:33
0
answers

Make sure the controller has a parameterless public constructor

I'm getting this error after giving deploy(AWS) of my WebApi . LOCATION WORKS PERFECTLY .    <ExceptionMessage> An error occurred when trying to create a controller of type 'LivroController'. Make sure t...
asked by 23.03.2018 / 20:52
0
answers

How to hide Properties in the DataGridView

How can I hide my properties from my base class. I want to hide the properties in the loading act of the DataGridView from the person class, perhaps with a syntax similar to [DisplayName("Titulo")] I intend to control what will be display...
asked by 26.04.2018 / 16:53
1
answer

How do I handle message with special characters

I am consuming a REST service that is returning the following message with special characters: "Animated T & amp; Spaces" Is it possible to handle this message?     
asked by 11.04.2018 / 00:11
1
answer

Scanning a list and adding values [closed]

I am scanning a list and taking certain values, adding and saving it. In the first run I get the value, add it to an 'x' variable, and go to the second execution ... I get the value that was added to 'x' and sum to the value of the second exe...
asked by 02.04.2018 / 13:44