Questions tagged as '.net'

1
answer

ReadLine does not ask for data entry

static void Main(string[] args) { Console.WriteLine("ESCOLHA UMA OPÇÃO"); Console.WriteLine("-----------------"); Console.WriteLine("1-Encriptar"); Console.WriteLine("2-Decriptar"); Console.WriteLine("...
asked by 19.02.2017 / 00:49
1
answer

Migrate from VS 2005 to 2012 - Change framework version

I have a project compiled in the .Net Framework 2.0, using VS 2005. Now I'm migrating the same to VS 2012. The migration occurred successfully, but the project was not recompiled for .Net Framework 4.5. My need is to recompile it to .Net fram...
asked by 21.06.2017 / 18:46
1
answer

Change color of the Aero application

How do I change the color of the .NET / Forms application in the Windows Aero taskbar?     
asked by 21.03.2017 / 03:56
2
answers

What is the difference between public async System.Threading.Tasks.TaskActionResult Index () and public ActionResult Index ()? [duplicate]

Follow the code: Example 1: public async System.Threading.Tasks.Task<ActionResult> Index() { return View(); } Example 2: public ActionResult Index() { return View(); } Please explain the difference between the 2 in as...
asked by 07.01.2017 / 01:00
1
answer

How to return warning in a View if there is no data to display?

I've created the code below that generates a list. The same check whether the list contains any data recorded in it or not. If it has data, it returns a View with the list inside, if it does not have data, it returns null . How to do, i...
asked by 22.06.2017 / 22:53
1
answer

Required field fill

How do I enforce that between two fields, at least one of them is mandatory (is it filled out)? For example, the fields Celular and Telefone can not be saved empty, only one of them. My code: //.. } else ((txtNome.Text == "")...
asked by 30.06.2016 / 23:25
1
answer

Reading user information

I started studying C #, and my first program (except for hello world hahahaha) is an area calculator. In the code below, after I type the option (choosing which picture I want) the console simply closes. Console.WriteLine("Bem vind...
asked by 11.07.2016 / 23:11
2
answers

Assembly Microsoft.Owin not found

In my project I am using the OWIN library for user authentication. I have already installed the package, but when I run the project, the error is returned:    Could not load file or assembly 'Microsoft.Owin, Version = 2.1.0.0, Culture = neutr...
asked by 10.08.2016 / 05:44
1
answer

Error writing stream file

   The stream was not writable You receive this exception when you try to change a file that is in resource . Here is the code: var assembly = Assembly.GetExecutingAssembly(); Stream str = assembly.GetManifestResourceStream("PCCLC...
asked by 07.06.2016 / 22:04
2
answers

Database Server on Azure

I created a Azure database server in the US. Before my database was in Locaweb. At Azure, the bank's queries were slower. I tried to create a server here in Brazil, the creation option appears, but when I click create create an error message say...
asked by 14.04.2016 / 17:23