Questions tagged as '.net'

1
answer

Substring (string.IndexOf) is returning unwanted parts

I'm capturing a music site . I would like to return only 2 information artist and music. It is in this code snippet: <div class="nowOnAir"> <a href="http://www.radioitalia.it/artista/edoardo_bennato/1.php" onclick="javasc...
asked by 03.08.2015 / 03:51
1
answer

Error consuming Web API

Hello, in an ASP.NET MVC web project I'm trying to consume an API that is a Web API project, the two applications are running on the same server. When I access the MVC application error occurs when this application attempts to consume the Web...
asked by 31.07.2015 / 15:04
1
answer

Error 242 when consuming NfeDownloadNF

I'm trying to consume the NFE download service on the farm: https://www.sefazvirtual.fazenda.gov.br/NfeDownloadNF/NfeDownloadNF.asmx But I have gotten the following error:    ERROR: 242   Reason: Rejection: nfeCabecMsg element mi...
asked by 03.11.2015 / 17:40
1
answer

Can not evaluate expression because the current thread is in stack overflow state

You're giving this error:    Can not evaluate expression because the current thread is in stack overflow state in the qtde variable by adding it in the desci list. class descricaoo : IInstrucao { private string...
asked by 29.10.2015 / 17:43
1
answer

Aligning a string in a space of 42 characters

I am generating a text file and have to align the company name to the center, but the company name will vary for each client, the default amount of characters is 42. texto="lb_NomeEmpresa.text"; This way you are aligning the left by simply...
asked by 25.11.2014 / 14:19
4
answers

Dealing with collisions in dictionary C #

I need to map an array of strings to a dictionary so that I can later test whether an informed string is valid by checking that it is part of dict , and would like to retrieve some other information stored in dict . For th...
asked by 23.03.2014 / 15:40
1
answer

XML returning incorrect values

I'm trying to make a program on the c # to test the codes you need to be able to run a xml , read your data and enter them in a list. But for this, I preferred to use a MessageBox to debug first. My xml is a RSS Feed that I...
asked by 29.03.2014 / 17:52
1
answer

How to open an executable that requires elevation via C #?

The following code attempts to be able to open an executable file so that you can pass arguments to it once it has been opened. For the code as it is presented, error returned is:    Unhandled exception: Required operation requires elevati...
asked by 27.09.2018 / 18:59
2
answers

Create modules using Unity (IoC)

In an application using a multilayer (n-layer) architecture, we have the infrastructure layer where we use an IoC container to register the required dependencies. In a prototype I'm working on, I'm using the Unity Application Block Unity as a...
asked by 13.01.2015 / 11:55
1
answer

Mapping .NET exceptions to HTTP status codes

Situation I'm implementing a HttpModule which is responsible for monitoring usage patterns and intercepting and managing unhandled exceptions in ASP.NET applications via events BeginRequest , EndRequest and Error of cont...
asked by 16.07.2014 / 21:41