Questions tagged as 'c#'

1
answer

Error publishing to iis

I'm having a webservice and doing the publishing on the server I'm having the error response Could not load file or assembly 'Microsoft.CodeDom.Providers.DotNetCompilerPlatform, Version = 1.0.8.0, Culture = neutral, PublicKeyToken = 31bf3856a...
asked by 15.02.2018 / 20:54
0
answers

Error creating Database - Validation failed for one or more entities. See 'EntityValidationErrors' property for more details

I'm having this error:    Validation failed for one or more entities. See 'EntityValidationErrors' property for more details During the creation of the database it presents me with this error. I can do the migrations , but when I upda...
asked by 07.02.2018 / 16:04
1
answer

Get E-mail CCO C #

I have a system that checks emails, and I have the following code where it looks for the recipient or the "with copy" field: if (client.GetMessage(i).Headers.To != null) { var msgTemp = client.GetMessage(i).Headers.To.FirstOrDefault(x =>...
asked by 07.02.2018 / 18:38
0
answers

How to ignore Entity Mapping Id with Entity Framework?

I have the following class: public class ParametrizacaoTolflux { public int CodigoModulo { get; set; } public int CodigoSistema { get; set; } public string Descricao { get; set; } public int CodigoCategoria { get; set; } } I...
asked by 07.02.2018 / 17:22
1
answer

Data Comparison Entity Framework asp.net mvc

I need to get the value and quantity in stock of a given product according to your Id. For debug the product id is arriving correctly, but when I assign the values to the table fields I am having a conversion error. / p> // POST: Pedido...
asked by 16.02.2018 / 22:33
1
answer

Avoid Refresh on page generate additional queries to BD MVC C #

The case is as follows. My ActionResult does a heavy query in the database and returns random data by business definition. The user can refresh the screen. If you update the page, you lose what you have done and the return of the query is dif...
asked by 17.02.2018 / 06:00
2
answers

Convert string to DateTime in LINQ

I have a model where all fields are string . I want to convert to DateTime and Double For this I created a new model public class CPUStats { public DateTime Data { get; set; } public Double? Disco { get; s...
asked by 16.03.2016 / 14:41
1
answer

Problem importing reference to EZ Commerce webservice

Hello, I wonder if anyone has already imported settings for EZ Commerce integration webs directly into Genexus. My problem is that EZ Commerce webservices require authentication (ClientCredentials), and in the Genexus WSDL Import option, i...
asked by 05.02.2018 / 12:50
0
answers

Visual Studio does not auto-complete anything

I've always used visual studio and never had problems. I have the community version 2017 installed, and I was using it normally, but I had to pause the development I was doing. Now that I came back (about 2 months later), an update came out and...
asked by 05.02.2018 / 05:24
0
answers

Login Crystal Reports ASP.NET C #

Hello, good morning. I'm implementing a web application to display Crystal Reports reports, and when I run the application, it shows me some fields for access to the Database, and I wanted to set this data via code so I did not have to enter...
asked by 05.02.2018 / 14:44