Questions tagged as 'c#'

0
answers

Exception when trying to run SetOn implements from the MediaPlayer Xamarin API

When I run my Xamarin Forms application with the MediaPlayer API of the error and the program stops running from these lines below; player.SetOnBufferingUpdateListener (this); player.SetOnCompletionListener (this); player.SetOnErro...
asked by 24.01.2018 / 01:37
0
answers

How can I not freeze / crash the application when querying data via SQL Server and creating a "progress bar"?

The code below as an example brings me great information from the database. Every time I click on the "Search" option of my program, my application freezes / hangs for a while until the select "pull" everything. I would like to know how best to...
asked by 22.01.2018 / 13:58
1
answer

Get the value of custom attributes in .NET CORE 2.0 aspnet-identity

I'm using Identity with aspnet core 2.0 and I needed to add the nuCPF attribute in the ApplicationUser table. In the controller I am getting the user data as follows: [Controller: ClientController ) public ClienteController(UserMan...
asked by 22.01.2018 / 12:45
2
answers

Type misconfiguration error

Trying to write to an SQL table an image, its name and description, and any foreign keys to allow me to subsequently search. On execution I get conversion error from to Int 32 . But all the fields in the table are set correctly. What am...
asked by 22.01.2018 / 17:21
0
answers

implicit conversion (varchar to varbinary) not allowed, use the CONVERT

I'm trying to make a system that gets images and saved them in a specific database, but I can not solve this error (I already applied CONVERT in SQL but it did not solve). (Error Area) //Aqui vai entrar a gravação do db SqlConnection conect =...
asked by 22.01.2018 / 10:56
2
answers

Problem in SQL Query

I'm developing a C # application and I use a BD in MySql. In a part of the system, I need to increment the inventory of a particular product, test the command in the Workbench and it worked fine, but when I execute this command inside visual stu...
asked by 02.02.2018 / 14:04
0
answers

Datagridview does not store information in the table

I have a datagridview that is fed by a search in a database to hold a sale but I can only sell one product at a time because the sales chart can not receive 2 or more products simultaneously already tried to separate the sales table into 2: sale...
asked by 20.01.2018 / 01:21
0
answers

Setting Permissions on Xamarin.Forms.Maps

I'm trying to make a call that will use a map and should pick up the current location and plot a route to the destination location. The problem is that I can not configure the permissions to access the device information, even though I put the p...
asked by 28.01.2018 / 01:50
1
answer

Difference between Task and Thread

I need to create a C # executable and I have the doubts: Do with thread or do with task ? In practice is there any difference between using Task and the "traditional" multi-thread ?? Is it true that a task...
asked by 13.04.2016 / 18:57
0
answers

Write an XML file inside the C #

Good evening, people, I would like a help, the structure of my project is in accordance with the image below. Iwouldliketoimportthedatafrommytableintothis'arq.xml'filethatisinsidetheproject.I'mtryingtodowiththiscode:dt.WriteXml("arq.xml",...
asked by 28.01.2018 / 03:35