Questions tagged as 'c#'

0
answers

NHibernate.XmlSerializers - Does not it exist?

   Could not load file or assembly   'NHibernate.XmlSerializers, Version = 4.0.0.4000, Culture = neutral,   PublicKeyToken = aa95f207798dfdb4 'or one of its dependencies. O   system can not find the file specified. My application started req...
asked by 26.10.2015 / 13:32
0
answers

C # Cryptography equivalent in Java [closed]

I have the method below in C # and I need to do something equivalent in JAVA, but I can not. Could you help me? private const string chave = "eMbARaLhaDo"; public static string Descriptografar(string Message) { byte[] Results; System....
asked by 19.12.2016 / 16:56
1
answer

Bematech MP-4200 TH expects Imprint

Good afternoon I'm developing an application that needs to be sure that the document was printed on the bematech thermal printer MP-4200 TH, as the printer has buffer even if it has no paper in it, it sends the command to the printer and returns...
asked by 18.02.2016 / 19:55
1
answer

How to make a lambda pivot in a C #

I'm having a hard time making a pivot command on a list coming from the bank. Abovetheselectthatiscomingwiththedata..ThedatefieldIwouldliketoplacethepivotcommand.Followmyclass:publicclassRelatorioPrincipalModel{publicstringCodRelatorio{get;s...
asked by 22.02.2016 / 21:42
1
answer

ERROR: "Usually only one use of each socket address is allowed"

Before they say that "the port is already being used, try another one", I have received this response several times, and changing the port simply does not work. Well, I'm developing a game that uses Socket via UDP to transmit data over the ne...
asked by 18.02.2016 / 13:41
1
answer

C # SELENIUM - How to read elements of a webpage by keyword mention

I'm creating a Bot that searches a word in google and writes to a txt file all the links found in the search I'm currently trying to find a keyword on the search result page, I store the links that contain that keyword in a variable and save...
asked by 17.02.2016 / 14:45
0
answers

C # I have a Steam swap bot and it returns the error "Object reference not set to an instance of an object" [closed]

I searched all other threads and saw several answers but I can not apply them to my application because I do not know anything about C # ... My site is for CS bets: GO and I have a C # bot that works normally as it should (when it completes the...
asked by 24.09.2015 / 05:31
2
answers

API does not receive post with list

I have an API that receives a post, if I only receive a single contract, it receives the data normally: [HttpPost("GravaContratos")] public async Task<JsonResult> GravaContratos(ContratoModel contrato) { //faz alguma c...
asked by 19.08.2016 / 17:14
1
answer

Replace a variable within a Word file

I am trying to do in C # (Windows Form application) to print a Word .doc only by changing some parsions of type @Nome to a string . In short, I have a contract and I need to print it. By reporting specific fields, I already hav...
asked by 12.08.2016 / 19:18
1
answer

Coloring RichTextBox words

My goal is to color all words that are within double quotation marks, and the quotation marks too! For example: "This text needs to be colored".     
asked by 02.07.2016 / 22:14