Questions tagged as 'c#'

1
answer

Using Selenium how to select two different elements that have the same ID?

My attempt with xPath or ID was unsuccessful. var options = new ChromeOptions(); options.AddArgument("--disable-gpu"); var chromeDriver = new ChromeDriver(options); chromeDriver.Navigate().GoToUrl("http://radar.tntbra...
asked by 03.10.2018 / 19:43
2
answers

Extract child tags from an XML

I'm consuming a recipe server and it returns me an XML like: <retDistDFeInt xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" versao="1.01" xmlns="http://www.portalfiscal.inf.br/nfe"> &l...
asked by 10.10.2018 / 19:59
1
answer

Session configured in Web.Config and IIS Session State is expiring ahead of time

Scenery: I store the Session of the user to keep it logged in, but something is happening that in 10 minutes it is logged off because Session has expired. But in both% w / o% and Session State is parameterized for 120 minut...
asked by 25.10.2018 / 16:54
1
answer

Error using Telerik RadTreeList

I'm trying to use RadTreeList in a WebForms application with MasterPage unsuccessful because error occurs in html tags: Linha 59: <qsf:ConfiguratorPanel runat="server" ID="ConfiguratorPanel1" I have tried to change from: <qs...
asked by 24.10.2018 / 17:12
1
answer

Object reference not set to an instance of an object. Array

Hi, My problem is in the array following this code: mesh meshCube; string[] file = File.ReadAllLines("object.mind"); foreach (string filetext in file) { if (filetext.Contains("v")) { string ext = filetext.Substring(filetext.Ind...
asked by 24.10.2018 / 00:21
2
answers

Open connection more than once in C #

I'm developing a service in C #. calls a function to check if it has active records. If I have a record I call another function to select the data for the first query. When I run my service, the connection error already occurs. So be...
asked by 24.10.2018 / 18:53
1
answer

Object can not be converted to dbnull in other types

Good evening, gentlemen. I am doing a user registration in college work and at logar this error appears. How can I resolve? privateUsuarioMapear(DataRowregistro){varusuario=newUsuario();usuario.Nome=Convert.ToString(registro["NOME"]);...
asked by 24.10.2018 / 17:58
1
answer

Error: "Can not implicitly convert type" void "to" EventHandler "

I was trying to make a button that passed the information of an entry and a StackLayout and this error appears to me: public MainPage() { InitializeComponent(); Entry entry = new Entry() { Keyboard = Keyboard.Numeric...
asked by 25.10.2018 / 14:57
1
answer

Fill vector with TextBox in C #

I'm trying to fill in the positions of a vector with incoming data coming of a TextBox, and do the reading in a ListBox but I'm not getting it. Everything seems to work, but only inserts the last element in all positions of the vector. Code s...
asked by 21.10.2018 / 00:48
1
answer

Unity Object reference not set to an instance of an object

I'm doing a Quiz on Unity and I'm having an error that I can not solve, I already looked for similar errors but I can not identify, this message appears when I'm running the quiz    NullReferenceException: Object reference not set to an insta...
asked by 15.10.2018 / 06:14