Issue with a do while loop

The program below takes the customer age and verify if the customer is eligible to see a certain movie. I am having an issue with CustomerAgeCheck() method. Every time I enter age above 100 or below 0, the loop continues to run infinitely and no resu...
more »

2017-12-02 10:12 (2) Answers

ORA 12154 - for .NET Aplication

I'm having problems with my connection to the ORACLE database. When I try to open the connection, the following error occurs: ora-12154 tns could not resolve service name I have already checked tnsnames.ora, and it is correct, I also checked web....
more »

2017-12-01 22:12 (1) Answers

How secure is the WPF PasswordBox, really?

I've already asked a couple of questions around the PasswordBox recently, but at the heart of my issue, I need an extremely secure way of getting very sensitive information inputted into my .Net application. Out of the box, the WPF PasswordBox is th...
more »

2017-11-30 16:11 (2) Answers

How to download and open XML file via SFTP?

I need to open XML file (create XmlDocument) without creating local copy. Using SSH.NET, I came up with this code: var connectionInfo = new ConnectionInfo("host", "username", new PasswordAuthenticationMethod("username", "password")); using ...
more »

2017-11-30 11:11 (4) Answers

Could not load type mvc c#

Has anyone experienced an issue which the view could not load a type from the assembly since you've moved the type to a different namespace on the same assembly? The only resolution for this is for me to add a new line on the view to detect the chang...
more »

2017-11-30 05:11 (0) Answers

Why is this loop intentionally not optimized?

https://github.com/ASP-NET-MVC/aspnetwebstack/blob/master/src/System.Web.Helpers/Crypto.cs#L159 // Compares two byte arrays for equality. The method is specifically written so that the loop is not optimized. [MethodImpl(MethodImplOptions.NoOptimizat...
more »

2017-11-30 01:11 (1) Answers

Adding dependency as DLL or adding as a project

We have an application written in asp.net mvc. Now we have written common db context & entities module (2 projects/class library) which are required by this application. Same db context and entities would also be required /part of another appli...
more »

2017-11-29 19:11 (3) Answers

Expression Tree 'Any' on Collection

I'm trying to determine if any of the objects in the collection have the target property set to true. How can I accomplish this? Here's what I have so far: public class AnyValidAttribute : ValidationAttribute { private static MethodInfo AnyMetho...
more »

2017-11-27 15:11 (1) Answers

.NET export to excel - child rows not displayed

In my asp.net application, I let the user export some data from the view on a button click. The code bellow exports an excel file. The problem is that I can't figure it out how to display the models list of objects. var grid = new GridView()...
more »

2017-11-26 14:11 (0) Answers

Update a specific column of a List <T>

First they forgive me for my English since it is not my native language. I have a method which receives a generic list List<T>. what I want is to foreach through the whole list and be able to update a column called Eliminated of each class T a...
more »

2017-11-23 16:11 (3) Answers

ListView Items don't clear (C#/WPF)

I have a listView that show my items. The process to show the values work very fine and i don't find a problem, but when I try to update the list with new values, I need to clean this list to show new values again. I have tried methods like lstResult...
more »

2017-11-23 13:11 (1) Answers

WPF: UI Element is NOT Updating

I have a BackgroundWorker and within that worker I am reading data from an excel file. If there is an error in the excel file, the worker completes and then presents another form where the user can input the correction and then press Ok with then run...
more »

2017-11-23 07:11 (1) Answers

Ignore SSL certificate in .Net Standard 2.0

I am creating a Xamarin Cross Platform Application in it, I have replaced the Portable Class Library with .Net Standard 2.0. From this project we are making a call to web service hosted on azure service fabric cluster (this service is hosted using se...
more »

2017-11-22 15:11 (0) Answers