Questions tagged as 'c#'

1
answer

Invalid Resx File

I'm starting, and when doing an example of a simple calculator when saving a jpeg file to put the button, it got very big and when I was scaling the file and then adding to the button it presented the following error: Error 2 Invalid Resx f...
asked by 19.04.2017 / 01:58
1
answer

jQuery.ajax calls webmethod (c #) with SpeechSynthesizer

I have a javascript method that checks for an unread message. If it exists it displays the image of an envelope. The method executes a jQuery.ajax that calls a WebMethod that returns the amount of unread messages. But now I need to add Spe...
asked by 30.03.2017 / 16:42
0
answers

Value shown in production other than development

I have an application in ASP.NET MVC with the Entity Framework with an Oracle database, and it is showing some wrong data, and this happens only in production, in Debug (locally) the data is brought right . This data is written from another s...
asked by 05.04.2017 / 14:38
1
answer

Validate Business Rule

I am using this example tutorial Data Repositories to create a layered crud with the Entity Framework with Code First. My question would be how to validate a business rule where a user with login already exists in the database can not be re...
asked by 05.04.2017 / 04:07
0
answers

Oauth in Azure does not open

I'm working with the Google Drive API, and on localhost the Consent screen - one that allows you to make changes and view your data - usually opens in a new browser tab. But when uploading the project to Azure when I click the button that ope...
asked by 28.03.2017 / 19:40
0
answers

Lock DataGridView Changes

I am creating a Windows Forms C # request screen in which the user fills in the order item data and then clicks an "Add" button, which instantiates an OrderItem object, adds it to a list and then assigns this list to the DataSource of a DataGrid...
asked by 29.03.2017 / 03:52
1
answer

Help with window array display (WPF template)

Be the code snippet: Janela[] jnl = new Janela[3]; for(int i = 0; i < jnl.Length; i++)//inicializa os objetos janelas { jnl[i] = new Janela(); } //Código que produz o layout de que cada janela vem aqui. for(int i = 0; i <...
asked by 07.04.2017 / 01:03
1
answer

Radio Button in C #

Hello, I have a registration screen and save everything ok according to the data, but when I click on the change button it returns all the registered values, but does not return the selected radio button as it was registered at the time of inclu...
asked by 06.04.2017 / 21:13
1
answer

Problems with DAO

My DAL class has thrown the TypeInitializationException exception. How to correct? Follow the code public partial class FrmConvenio : Form { ConvenioDAO convenioDAO = new ConvenioDAO(); // Lança TypeInitializationException public...
asked by 22.03.2017 / 15:53
0
answers

x509 - The key set is not set

I use the x509certificate class from C # to read an A3 certificate for XML signature, it happens that it was necessary to renew the certificate and at first nothing changed, it continued same type, but when trying to sign now is giving the error...
asked by 23.03.2017 / 19:11