Questions tagged as 'c#'

0
answers

Windows Service running does not connect to the bank [closed]

Good afternoon, guys. I created a 3 layer solution for a windows services project. In debugging I get the bank information and do the processes with the return. However, when I put the process to run in windows services it does not work. I creat...
asked by 19.01.2016 / 19:22
1
answer

C # - Do not show form being mounted to the user

Hello. In VBA excel has a very cool feature. Application.ScreenUpdating = False Application.ScreenUpdating = True This prevents you from displaying the screen being mounted to the user and show only after everything is loaded. I w...
asked by 20.01.2016 / 18:32
1
answer

Problem with AutoMapper relationship many to many C #

I have two classes with a many-to-many relationship, all the mapping is ready, the insert is working, but when I try to do AutoMapper it goes into an infinite loop. Workflow: public class Workflow : Elemento { public IList&l...
asked by 21.01.2016 / 17:32
0
answers

Npgsql - Problem with Entity Framework 6

I'm having trouble using PostgreSQL with Entity Framework 6. When trying to fetch the data from my repository I get the following message:    The context can not be used while the model is being created. This   exception may be thrown if t...
asked by 24.01.2016 / 02:45
1
answer

Relative Path with virtual subdirectory

Good afternoon, I've been searching the internet for solutions to my current problem with paths, but I can not find them. Imagine that I have the following links:    www.site/Arquivos/Uploads/imagem.png       www.sitedev / Client / Fil...
asked by 22.01.2016 / 14:52
1
answer

C # - How to add results from a SELECT into a List and use the list to Popular a Table

All right? I'm new to C # and I'm stagnating on a problem with a project in Visual Studio: I'm developing a project with DAO (DATA ACCESS OBJETC) standard. I have an interface that is responsible for the methods that will perform the persisten...
asked by 17.03.2016 / 03:33
2
answers

Error when trying to change cursor during algorithm C #

Hello, I'm developing C # software to help digitize old photos, and in the middle of one of the algorithms to process the images, I want the cursor to switch to loading mode so the user knows when the system is processing. > What I did was ins...
asked by 17.03.2016 / 22:20
0
answers

Run minute by minute routine with C #

Good morning, I have a problem that I still can not solve, I have a routine that will monitor an equipment every second and the minute the system will perform the desired action, the routine must read every second because the value the equipment...
asked by 18.04.2016 / 16:46
0
answers

Get primary key values in Table Adapter

How can I get all the primary key values in a Table Adapter . One by one I can get at the time of the insert with this code: PegaIdOrc = orcTableAdapter.GetDataByMaxIDOrc(). Rows[0]["Expr1"].ToString(); But when I try to get...
asked by 17.02.2016 / 16:07
1
answer

C # NullReferenceException error in ToList () method

I'm working on a project in C # MVC for WEB with EntityFramework. I was able to set it up next to the database and I also installed Ninject. The first controller I am working on is Users. I want to create an environment for maintaining such d...
asked by 17.02.2016 / 02:11