Questions tagged as 'c#'

1
answer

Run 2 querys or more

I would like to execute 2 queries in C # when the button is clicked, but I can only execute one. public static void excluireventos() { string connectionString = Conn.tank(); using (SqlConnection connection = new SqlConnection(connect...
asked by 15.11.2016 / 21:35
1
answer

How to get the contents of a tag through a Linq query?

I have XML with the following structure: <?xml version="1.0" encoding="UTF-8"?> <pessoas> <pessoa> <nome>Joao</nome> <email>[email protected]</email> </pessoa> <...
asked by 02.07.2016 / 17:27
1
answer

Restrict access to the Web API

I have a Web API where I restricted access to your methods through EnableCors , indicating the URL I want to give permission, as follows: namespace WebService.Controllers { [EnableCors(origins: "http://myapp.net", headers: "*", metho...
asked by 07.07.2016 / 04:42
1
answer

Login Beanstalk API

I'm trying to do an integration with the http://api.beanstalkapp.com/ service and I'm having trouble doing the request in C #, it always returns the error below:    An exception of type 'System.Net.WebException' occurred in System.dll but...
asked by 06.07.2016 / 21:08
1
answer

C # - Use of A3 Certificate (Card Reader) + Windows Service

Good morning, everyone. I created a windows service (C #) where I subscribe to NFC-es XML using the FlexDocs DLL. Using the A1 certificate everything works normally, but when using A3, the frame where I must enter the PIN does not open / app...
asked by 04.07.2016 / 16:30
1
answer

Insert an array inside a Key Json

I need to get a Json as follows: { "razao_social": "Loja do Zé LTDA", "nome_fantasia": "Zé Store", "tipo": "J", "observacao": "Cliente com ótimo histórico de pagamentos.", "emails": [ { "email": "jose@ze...
asked by 10.06.2016 / 19:52
1
answer

Transaction with multiple queries

I was viewing this question , and to try to answer I decided to run some tests where I could see the following problem: When performing multiple database queries via Entity Framework within a single TransactionScope I get the follow...
asked by 08.06.2016 / 22:06
1
answer

PlayerPrefs Unity3D

I'm developing an android game but I'm having a hard time saving the input type. For example in this game the user can choose whether to play on the touch or accelerometer, in unity + remote this exchange works well but when I compile and instal...
asked by 07.06.2016 / 15:30
1
answer

Error logging in using Facebook

Attempting to log in via facebook I come across with the following error:    Server Error in Application '/'.   Object reference not set to an instance of an object.   Description: An unhandled exception occurred during the execution of the  ...
asked by 23.01.2017 / 21:05
1
answer

Visual Studio 2013: How to reference project folders in Using

I have a problem, I have in the same project the stock and the box, I'm making a screen that allows you to choose between them and depending on the button you tighten it opens one of the two. However to avoid confusion the BLL2, DAL2, GUI2 an...
asked by 24.01.2017 / 16:47