Questions tagged as 'c#'

1
answer

Object reference not set to an instance of an object (which is not null)

I'm trying to show the amount of free space on a drive (the C :) but I get the error "Additional information: Object reference not set to an instance of an object". When I use MessageBox to show the free space it returns in bytes the v...
asked by 29.08.2017 / 23:10
0
answers

Error writing a file using SqlDataReader

I am using datagridview to show my table data and I have to create a file with this data, I tried to make the code that I will post below but using (SqlDataReader sqlReader = comm.ExecuteReader()) is stopping my program. I have no...
asked by 29.08.2017 / 18:51
1
answer

Event Checked for button on Cross Platform Xamarin [closed]

Is it possible to create a button with the event Checked in Xamarin ? If so, how?     
asked by 19.10.2016 / 17:29
1
answer

Organizing forms inheritance - C #

I'm doing a program to sell products and I'm having a design problem. The differential of this program is that it can take two different faces: one for sale of chocolates and another for sale of fruit. The forms I organized more or less this way...
asked by 18.10.2016 / 16:16
1
answer

Update in Database by C # [closed]

I'm trying to do an update in my database through Visual Studio (C #), however the update is not being performed I do not know why. Table Script ( sql developer ): CREATE TABLE Login ( Cod_login NUMBER(8) NOT NULL, Usuario VARC...
asked by 10.10.2016 / 20:32
1
answer

How do I use an existing database in an ASP.NET MVC C # and Identity application?

I need to authenticate users. So I created my database with all my business rules, made the connection to the ASP.NET MVC application, and started programming. Now, when I was doing the part of user I noticed that there are two connection...
asked by 12.10.2016 / 13:55
1
answer

id3 display album image in mp3 file using c # mvc razor

I'm building an application in C # and ASP.NET MVC and Razor that reads data from mp3 files, but I can not display the album image. I have tried several libraries available, extracted all the information but the album cover art, I believe it is...
asked by 20.09.2016 / 02:34
0
answers

What to do when the generated token expires?

I'm developing a rest API with Framework Asp.Net Web Api 2 , using Owin . I have a android application as the client. In case, my system has users and passwords and authenticates normally. I want to know what to do whe...
asked by 01.02.2017 / 18:30
1
answer

Pre-filled model returns null in HttpPost

I'm building a page in the ASP.NET project where I have a model that contains 2 lists, which I fill in one initially in the get and then go to the View where I fill in another list, but when I receive this object, it returns me with all data in...
asked by 12.09.2016 / 22:58
0
answers

How to configure OwinContext Authentication in SimpleInjector 3.3.2?

In my current application I use SimpleInjector 3.2.0 with a configuration similar to this: var container = new Container(); container.Options.DefaultScopedLifestyle = new WebRequestLifestyle(); container.Register<IUserStore<Usuario>&...
asked by 26.01.2017 / 22:44