Questions tagged as 'c#'

0
answers

Find the content between an XML tag in c # without libraries

I'm looking for a way to find the elemetno of an xml tag. Example: < NOMBRE > Pepe < /NOMBRE > The element I'm looking for is Pepe, the thing is that I do not know how to do it without using the XML libraries and...
asked by 13.05.2018 / 09:46
0
answers

Running several times a task?

I have a method button_click which runs a task and another that cancels it. The problem is that when trying to run the task again it throws an exception: 'Start can not be invoked in a task that has been completed.' This is my code: pri...
asked by 13.05.2018 / 05:20
3
answers

How to use an excel file as a database in visual studio using csharp

I would like to know how to use an excel file as a database using sharp c in visual studio. This is still not taught to me but I would like to learn to apply it in my university work. I have a book class and a student class that has a book list....
asked by 17.05.2018 / 02:30
1
answer

Run powershell scripts from Windows Forms C #?

I need to run the following command that is in an auth.ps1 file $session = New-PSSession -ComputerName 'SRV2KDC.microsspr.local' -Credential (Get-Credential) Invoke-Command $session -Scriptblock { Import-Module ActiveDirectory } Import-PSSessi...
asked by 11.05.2018 / 16:58
0
answers

Unique hardware id

I have an application in asp with c # they have a login which takes me to a responsive menu validating security through roles, but that is not the problem, it turns out that people who want validations need a table to keep the unique id of the d...
asked by 10.05.2018 / 01:39
0
answers

Datagridview Data to textbox error

Clicking on a selected row sends me the data in TextBox but sends me in each TextBox the text of DataGridViewTextBoxCell { ColumnIndex=2, RowIndex=2 } someone who can help me?     
asked by 10.05.2018 / 00:56
0
answers

I try to perform a POST from Angular to a service developed in ASP.NET Core

Hello good community I am having problems when doing a POST from Angular, I have a web service developed with ASP.NET Core 2. My post-service method is as follows: [HttpPost] public async Task<IActionResult> PostTipoPago(TipoPago tip...
asked by 14.05.2018 / 20:13
0
answers

TripleDESCryptoServiceProvider C # to Java

I have this code in C # and look for the equivalence of the class TripleDESCryptoServiceProvider for Java public String Cifrar(String cadena) byte[] llave; byte[] arreglo = UTF8Encoding.UTF8.GetBytes(cadena); TripleDESCryptoServiceProvider tr...
asked by 09.05.2018 / 14:40
0
answers

Send int and string by Serial C #

I am developing a simulator for Asseto Corsa. I have an API that takes me the telemetry from the shared memory of the game, but I need to send some of that data by serial (USB) to capture them with an Arduino and process them. I have the API cod...
asked by 08.05.2018 / 10:19
1
answer

AmbiguousMatchException in asp.net mvc 5 c #

I have trouble trying to send an id by url, the thing is that this id is being called from a partialview () and I would have to redirect it to another view, but it generates the following exception AmbiguousMatchException. Here's how I send t...
asked by 14.05.2018 / 05:21