Questions tagged as '.net'

1
answer

Launch Windows Service automatically

I created% test%, I was searching and I saw that to start it automatically it is necessary to change the Windows Service property of the% object StartType to Automatic , that the service, after already started automatically. Howev...
asked by 15.12.2015 / 13:32
2
answers

Simultaneous calls in RESTful service

Hello, I am having doubts on how to make fun calls (about 100) simultaneous on a REST service. The code example I have is the following: using (var http = new HttpClient { BaseAddress = new Uri("some url") }) { using (var httpContent =...
asked by 13.09.2017 / 05:52
1
answer

JavaScript alert Does not work in Firefox and Chrome

I'm trying to generate a wrong password alert in JavaScript. It is for a web application that works in .NET. This alert works in IE, but we're porting the system and wanted it to work in both IE and Firefox and Chrome. ClientScript.RegisterSta...
asked by 18.10.2017 / 18:28
1
answer

.Net Reflector compilation errors

I'm studying C # and am trying to learn a bit of reverse engineering. I have the following error: private void button1_Click(object sender, EventArgs e) { this.Result = true; this.ConfigName = this.textBox1.Text; string sourceFi...
asked by 15.09.2015 / 09:37
1
answer

Stack / Stack with priority in C #?

My teacher passed 2 exercises, the first was to create a simple stack ( Stack ) to run unit tests in this class: using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threa...
asked by 06.09.2017 / 07:05
1
answer

Is there an SmtpClient.Timeout with infinite value?

Is there any way to put SmtpClient.Timeout with the infinite value? If yes, how?     
asked by 28.09.2016 / 16:01
1
answer

How to change the type of the persisted class in an inherited model using the EntityFramework

I have the following inheritance classes schema, as an example: public class Veiculo { public int Id { set; get; } public string Descricao { set; get; } } public class Moto : Veiculo { } public class Carro : Veiculo { } That gener...
asked by 02.05.2014 / 04:27
1
answer

Compare two date attributes in the database with two TextBox

How can I compare a range of two dates? data_Inicio date data_Fim date textbox_inicio textbox_fim I'll be able to do this soon on the ASP.NET side, and the goal is that my start date is never less than my end date and my end date is never...
asked by 24.11.2014 / 14:54
1
answer

What are the differences in performance issues when using querys with EF vs ADO

What is the difference in performance when using the query methods the base SqlQuery<TElement> and ExecuteSqlCommand of EntityFramework in relation to directly using ADO.NET ? If there is a significant difference in perf...
asked by 06.04.2016 / 13:54
1
answer

How to decrease byte array size representing an image

I have an array of bytes in base64 that is in a String in C #. It represents an image. The size of the String is between 50 and 80 thousand characters. I would like to know if you can reduce this size, compressing and removing the quality of the...
asked by 29.04.2016 / 01:38