Questions tagged as 'c#'

0
answers

Adding a WebService

How to add a WebService reference with metadata properties disabled! Ex: WebService server: link But Visual Studio 2012 says it was not possible to perform this action because it did not have access to the service metadata. HTML sni...
asked by 10.02.2015 / 15:56
0
answers

Redirect loop problems when calling page

I made this if and is giving redirection loop. I removed the parameter false and continued. The page exists and etc ... if (Session["DsTipoUsuario"].ToString() == "1") { Response.Redirect("/frmGESStatusPriorizar.aspx", fals...
asked by 11.02.2015 / 14:22
1
answer

Use ItemCommand in C # of a listview

I'm working with a ListView where you display the items in a cluttered list and as links . Under ListView has the "CREATE" button to insert a new item in ListView . I was able to make, when I edit any list item by click...
asked by 10.02.2015 / 19:09
0
answers

Consume file upload service

I have basically a service in C # that was made to receive a file, what I want is to use this service, I created an asp.net page with a fileUpluod, and wanted to put it to work, how do I do it? > Class of Service: public class UpluodServic...
asked by 05.02.2015 / 18:38
1
answer

Method returning object name in entity

I have the following method: internal ArquivoVersao GetArquivoVersao(string arquivoVersaoGuid) { using (var ctx = new TestEntities()) { var versao = (from ver in ctx.ARQUIVO_VERSAO wher...
asked by 06.02.2015 / 14:35
1
answer

Send Arduino String to C # via Serial

I need to send Arduino Strings to C # in real time via Serial communication. In the arduino code I'm using the following to send: if (Serial.available()) //se byte pronto para leitura { switch(Serial.read()) //verifica qual caracter...
asked by 06.02.2015 / 12:40
2
answers

ArgumentOutOfRangeException with entity

I have a method that expects a file object, what it does is add references in the database: See the method: internal void AddArquivo(Model.Arquivo arquivo) { using (var ctx = new TestEntities()) { var versa...
asked by 06.02.2015 / 15:08
2
answers

Winsock receiving information from the server

I'm trying to send a really big information to the server (11000), and the problem I have is that it is not getting full. See the code: On the server, there is a loop. do { Tick = Environment.TickCount; Listen.A...
asked by 08.02.2015 / 16:43
0
answers

Create printing method more easily

I have a form ready and I need to keep the variables in the right fields, but I want a faster and easier way to do it. Because I do not want to waste a lot of time doing e.Graphics.DrawString because it takes a lot of time to set the right place...
asked by 13.04.2015 / 15:37
0
answers

Error Handlers ASp.Net

I need help with the item below. The error is occurring when trying to run a Web Site project in VB.Net. I have two in the same solution , one wheel and the other appears this error. It is a project of the company that works, it was not me w...
asked by 28.03.2015 / 15:55