Questions tagged as 'c#'

2
answers

Error compiling project with VB 6. Switch to .Net

I'm not a developer in VB. I took a project for 5 days, through a consultancy, but it should be all in SQL Server . Well, it happens, that some screen change should be made. I opened VB 6 (Compiler) and selected the project.vbp and when lo...
asked by 18.04.2017 / 13:38
1
answer

Load the combobox

When you save a data in the combo box, and in this combo box you have two options (gasoline, diesel, alcohol, natural gas) Selecting diesel and saved works normally. The problem is when I want to load the combo box save always the first va...
asked by 18.04.2017 / 17:23
1
answer

Error logging into applications

Well, the scenario is as follows: I have 2 applications ASP.NET MVC in a same project, which is using a Dominio in common. I'll call MVC1 and MVC2 to get better at the sample. I've installed Identity ,...
asked by 15.12.2016 / 05:06
1
answer

Creation of anonymous vs. "named (?) objects"

I have a class that loga some information in the database I am using it as follows: new StudyLogRepository().Create(new StudyLog() { StudyId = Study.Id, CycleId = null, DateOccurrence = DateTime.Now, CycleActionName = "Nova estud...
asked by 08.05.2017 / 19:06
1
answer

Get specific login data via facebook

I'm looking to implement authentication via facebook . Where I want to get more public data. I already have the default authentication set up. But I need something more, because it just brings me the Email. I'm basing some answers o...
asked by 24.01.2017 / 14:18
1
answer

Error in TransactionScope

I'm trying to make a TransactionScope but it always gives me an error:    Application Server Error '/'.       A second operation started on this context before a previous   asynchronous operation completed. Use 'await' to ensure that a...
asked by 08.05.2017 / 06:04
1
answer

Error using Code First From Database

I'm trying to use the Entity Framework with a SQLServer database that I created out of Visual Studio. The problem is that when I add the ADO.NET Entity data model in the project to make the relation, it is failing to create one of the classes to...
asked by 15.10.2017 / 20:49
1
answer

IoC with Web Service

I need to create a WS with IoC. I created a new Web project with Web API dependencies; I've added a Web Service (asmx); I installed SimpleInjector; The code looks like this: [WebService(Namespace = "http://tempuri.org/")] [W...
asked by 20.01.2017 / 11:48
1
answer

put Custom Message in PT-BR in required field

Assign Required="true" to a password field, but the message is in English, as can be seen in the image below: IwantedtocustomizethismessagebyleavingitinPT-BR<divclass="form-group"> @Html.LabelFor(model => model.Senha,...
asked by 22.01.2017 / 15:12
2
answers

Recursive Algorithm does not work

I have to solve an exercise, and it says:    Do a procedure that receives an integer n positive number. O   procedure should print all numbers in the range between 0 and n   which are divisible by 2 and 3 (simultaneously). I'm starting at...
asked by 08.10.2017 / 18:55