Questions tagged as 'c#'

1
answer

plugin.media error

I'm trying to use the Media Plugin for Xamarin and Windows with the Visual Studio Community 2017 . An android app that should have the ability to take some photos. I followed the following guidelines: In Resources, you added a folder na...
asked by 31.08.2018 / 02:24
1
answer

Read Streamreader First Line or skip how to give fix?

I have a .csv file and I call the data in a datatable, but the problem I have at the moment is that it does not pass this data because the first line that reads from the second column is of type integer (and the first value of this 2 column is A...
asked by 22.08.2018 / 02:18
2
answers

get return from procedure sql c #

I need to get the return of a select that comes from a procedure . I've seen about using ExecuteReader , but I'm not getting the data that's coming. procedure is up to date Since the return of procedure will...
asked by 16.03.2018 / 18:13
1
answer

Error when using dynamic in C #

I made an application in C # and to integrate with Spring ERP and I passed the engine in VBA through the following line. void IPublicMethods.UpdateCDU_IfItemSelected(ref dynamic doc, string artigo, int numLinha, ref dynamic plataformaPri, ref...
asked by 02.08.2018 / 18:09
3
answers

Know when the computer was turned On / Off / Stopped

I wanted to know when the computer was turned on, turned off, or stopped. If I turned on my computer, from today's date, then I want to know the time and date it was connected. On shutting down the same thing, if I shut down the computer "normal...
asked by 24.07.2018 / 13:57
1
answer

Error while trying to connect to SQL Server from webservice in IIS 7.5

I'm getting some errors when trying to perform a query on SQL Server from a WebService hosted on an IIS 7.5 server. My connectionString in web.config: <connectionStrings> <remove name="LocalSqlServer" /> <add name="TE...
asked by 17.09.2015 / 18:54
1
answer

Changing the Quality of a Stream Video C #

I need to change the quality of a video that is being scanned by my Api, I'm already sending the file, now I need to change the quality of it at the time of transmission, follow my code below: var buffer = new byte[65536];...
asked by 01.09.2015 / 16:26
3
answers

how to indent a string for json

I have a string in json format. In this way: {"IdLead":4186960,"Concessionaria":"Mila - Centro","DadosQualificacao":{"IdEvento":79654,"Qualificacao":1,"Motivo":6,"DescricaoMotivo":"motivo 1234","Ficha":["aaaaaaaa - TESTE","Ação desejada...
asked by 24.05.2018 / 19:29
2
answers

Vowel in full name C #

I need a help, I'm doing an exercise, to check the existence of how many vowels 'a' have in a name, but my debug, points the vector always with the character '\ 0', I'm trying to insert the Length inside the to correct, does anyone know, the bes...
asked by 29.05.2018 / 07:01
1
answer

Map one-to-many entity with Fluent API

I have two classes, as an example below: public class Foo { public virtual int Chave {get; set;} public virtual List<Bar> Bar {get; set;} } public class Bar { public virtual int Chave {get; set;} public virtual Foo Foo...
asked by 12.10.2014 / 02:20