Posts by Ichihara • 121 points
9 posts
-
-2
votes2
answers1455
viewsQ: Error in Datetime.Tryparse
I have a problem with a conversion using the code below: string vcto = "29/01/2018"; DateTime data; Boolean resp = DateTime.TryParse(vcto, out data); if (resp == false) { MessageBox.Show("ERRO NA…
-
6
votes2
answers152
viewsQ: Treat Exception by code
In Visual Basic 6 there was the command err.number where the error code is demonstrated. I have a C# app that we treat Exception by the description of the message because I did not find the command…
-
0
votes1
answer52
viewsQ: Open file in a unique way c#
Good morning, I need to open a file . txt in a unique way so that if another program tries to read receva a warning preventing opening. The file I will read is a file that contains data in a…
filing-cabinetasked Ichihara 121 -
0
votes1
answer1545
viewsA: Error sending information to Webservice: System.ServiceModel.Security.Messagesecurityexception
I got you guys BasicHttpBinding basicHttpBinding = new BasicHttpBinding(); basicHttpBinding.Security.Mode = BasicHttpSecurityMode.TransportCredentialOnly;…
-
1
votes1
answer1545
viewsQ: Error sending information to Webservice: System.ServiceModel.Security.Messagesecurityexception
I created a simple web service that sums up two numbers and returns the result. O IIS left configured as windows authentication enabled and the other disabled. Code:…
-
1
votes0
answers1419
viewsQ: ERROR System.Invalidoperationexception: The sequence contains more than one element
I have a system that works in several machines, but in one machine the error occurs: `The sequence contains more than one element Description: An untreated exception occurred during the execution of…
-
0
votes0
answers63
viewsQ: The required anti-forgery cookie "__Requestverificationtoken" is not present
I have a project that is on my server iis and is working on most machines, but in some of them the message is received: The required anti-forgery cookie "__RequestVerificationToken" is not present.…
asp.net-mvcasked Ichihara 121 -
0
votes3
answers92
viewsA: Linq C# with order
I searched and put together the result I got the solution: I simplified the query by bringing only the birthday of the month: Extension[] Extension = (from c in db. Extension Where…
-
3
votes3
answers92
viewsQ: Linq C# with order
I have a LINQ query that lists the current month’s birthday: Ramal[] RamalAniver = (from a in db.Ramais where a.sAniversario.Contains(DiaAniversario + "/" + MesAniversario) && a.bAtivo ==…