Questions tagged as '.net'

1
answer

(LocalDB) Update-Database Post-Error Error - "Can not attach the file ..."

I'm trying to use Sql Serves LocalDB in an application with the Entity Framework and Migrations, but when I give the Update-Database command, the following error occurs:    Can not attach the file   'C: \ Directories \ 9-ProjectsMVS \ DB Test...
asked by 06.08.2018 / 19:08
2
answers

Is there any way to receive mail through php or some other programming language?

Good afternoon everyone, I am not a professional developer, I know that in php there are ways to send email through phpmailer (), I would like to know is if there is any way to receive an email through public domain like gmail, outlook, yahoo...
asked by 18.08.2018 / 17:37
1
answer

Method that works without calling you directly

I'm messing with the Entity Framework and I was doing mapping for a Many to Many class. What happens is that I used a method that I can use within DbContext to rename a table, and it works without problems. But I was wondering how t...
asked by 21.08.2018 / 21:05
2
answers

How to manage threads in C #?

I'm developing a project and I think I'll need multithreading . While starting a new thread does not seem difficult, I can not seem to figure out if I have to finish the thread or it ends alone. My application will, at certain times,...
asked by 01.02.2018 / 10:18
1
answer

Type conversion error when saving to database

My project has a frmAdicionarProduto form to add products to the database containing TextBox and ComboBox : txtProduto txtQuantidade cmbTipo txtValorFornecedor txtValorFinal txtLucro I'm having trouble saving...
asked by 25.04.2018 / 01:20
1
answer

How to add reference in visual studio

In the company we have a problem with some project references, because they are in different folders on the machines of each programmer and usually when you check in and then get latest version, we all have problems in those references. And we a...
asked by 20.01.2018 / 16:48
1
answer

How to join two vectors in another that does not have repeated values?

I need to make a program that reads the values of two vectors R and S , and store its values in a third vector called V . The detail is that it can not contain any element repeated in the V vector. I was able to make...
asked by 07.09.2018 / 16:25
1
answer

How to use the C # syntax in 'onclick'

I declared a variable in view : @{ int index = 0; } And I want to change it through onclick : @for (var b = 0; b < cont; b++) { <li> <a onclick="@(Index = b)">End...
asked by 09.01.2018 / 12:44
2
answers

URL redirection through web.config

I need to perform a redirect, from page http://exemplo/comunicacao/ to page http://exemplo/caminho_novo/comunicacao . I'm doing the following in web.config : <?xml version="1.0" encoding="UTF-8"?> <configuration&...
asked by 02.03.2018 / 17:08
1
answer

When using Boleto.NET do I need to mount the consignment file manually?

In a financial system already built by another developer, the Boleto.NET library was used to generate Itaú tickets. I would need to add Santander's ticket generation support, but I can not figure out how to use the library at all. The code of...
asked by 18.11.2017 / 17:57