Questions tagged as 'c#'

2
answers

Error sending information to WebService: System.ServiceModel.Security.MessageSecurityException

I created a simple web service that makes a sum of two numbers and returns the result. The IIS I have configured windows authentication enabled and the others disabled. Code: ServiceReference2.TesteSomaSoapClient a = new ServiceRef...
asked by 12.12.2017 / 15:38
1
answer

Runtime error - 1035 - Selection Test 1 - Online Judger URI

Firstly, I do not have much experience with C #, I just know programming logic. I'm studying C # out of curiosity, it's a language that has always interested me. I am studying through the URI and I am not able to solve this exercise:    Re...
asked by 12.12.2017 / 16:20
0
answers

How to migrate TXT file to WebService?

Good people I have this code: public static string filePath = Path.GetTempPath(); public static void ImportFile(string path, string fileToRead) { if (!File.Exists(path)) File.Create(path).Close(); u...
asked by 05.01.2018 / 16:58
1
answer

Problems inserting image into a Button

I'm having trouble inserting an image of the "PackIconFontAwesome" package into a button. I installed the Mahapps Icons package and referenced it in my view, but an error appears as shown below. What is missing? <ResourceDictionary><...
asked by 05.01.2018 / 14:42
1
answer

How to clean the Visual Studio Output Window?

I'm writing an application that uses the debug class to write to the VS Output screen. I just want to clean the contents of this screen through my code, because after a while it gets very polluted. Is this possible and recommended (as I find...
asked by 06.01.2018 / 18:29
1
answer

How do I populate a listbox c # mysql

How do I populate a ListBox with C # and mysql and at the same time put the value of each record? So far I've been able to set up the name but not the code for each one: Mat_sel.Items.Add(reader["mat_nome"]).ToString();     
asked by 06.01.2018 / 19:38
1
answer

Maintaining ComplexType creation pattern in EF Core

Previously I used the Entity Framework 6.0, and when creating a class as in the example below: public class Produto { public int ProdutoId { get; set; } public string NomeProduto { get; set; } public atributo atributo { get; set; }...
asked by 06.12.2017 / 03:23
0
answers

Search engine behaves same using multi-thread or a single thread

Good afternoon, I am developing a routine to do search in pdf files. My idea is to distribute the search processing in each file on different threads to optimize the response time. The SearchPDFText method below looks up and returns the files co...
asked by 20.12.2017 / 19:42
0
answers

Visual Studio 2017 Design XAML bug, does not recognize resources

internalstaticSystem.Drawing.Bitmapradio_hover_btn{get{objectobj=ResourceManager.GetObject("radio_hover_btn", resourceCulture); return ((System.Drawing.Bitmap)(obj)); } } I have problems with this code above, it simply does not...
asked by 20.12.2017 / 18:36
1
answer

Selenium Web Driver Phantom JS c # Continue from where you left off

I'm developing a Selenium robot. However, this robot has time that interacts with the user. But I can not get him to continue from where he left off. I'll give you an example:    Make sure that this robot does a query of your CPF on a si...
asked by 09.12.2017 / 13:41