Monthly Archives: July 2018

C# application using Microsoft.Office.Interop.Excell dll throws exception(error: 80080005) when Windows trusted apps is installed with OS installation

Questions: Issue: I am facing an issue in Win10 PC while running a C#application created in VS 2013. The application always throws exception when it tries to create excel instance. Microsoft.Office.Interop.Excel is added in project reference(:\Program Files (x86)\Microsoft Visual Studio 12.0\Visual Studio Tools for Office\PIA\Office15\Microsoft.Office.Interop.Excel.dll) The below Exception is obtained: Retrieving the COM class factory… Read More »

Connection String in C# and SQL Server

Questions: My connection is okay with the data source, so it gives me the errors here : Fill SelectCommand.Connection property has not been initialized. How can I fix that? This is my code: private void button1_Click(object sender, EventArgs e) { string sqlSelect = “select * from account” + “Where username ='” + txtUsername.Text + “‘… Read More »

Equality between images c#

Questions: I need to compare two images and see if they are the same. The images only contain text. I have an image on the hard drive saved and I need to see if it is the same as the one I am downloading. I tried with this code to establish a margin of error… Read More »

GoogleApiClient Null Exception Problerm

Questions: I m trying to use Google Play LeaderBoard and Achievements. As I want to use the Api in diferent places i have a BaseActivity for the connection and building the object apiClient like this import android.support.annotation.NonNull; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.util.Log; import com.google.android.gms.common.ConnectionResult; import com.google.android.gms.common.api.GoogleApiClient; import com.google.android.gms.games.Games; public class BaseActivity extends AppCompatActivity {… Read More »

Android – MVP using Activity/Context

Questions: I’ve been dabbling with MVP for android and have read from different sites about not passing an activity as argument into the presenter as it’s anti-pattern but i have come across a problem where i need to use a third party method that requires the activity/context. I’ve thought of using Dependency Injection, doing another… Read More »

Return View with Query strings

Questions: Hello I have a method set up in my controller which saves some data into a group. When a user tries to save to that group again it returns an error and goes back to the view. However since I am using query strings I would like to return the view and add a… Read More »