Sunday, February 21, 2016

First let me ask you a question, what is Toastr.js and what is the use of it?

Toastr is a simple JavaScript library which can be used along with jQuery to show a simple and appealing notification in your web application. Good thing about Toasr is, since it is a JavaScript library it won’t create any performance issue and the coding looks very simple.

Lets start with a very simple .net application with one label, textbox and a button. Then on click of the button we will show the Toastr alert.

First we need to add the Toastr library like below in your .aspx page.

Thursday, February 18, 2016

This is one of the very common error we use to get while using Oracle database. The error “The underlying provider failed to open” is bit confusing if you are not able to view the inner exception.

Once you get the exception, just expand the exception try to read the inner exception. Whihc will be more clear than this.

I just exapanded the exception and the actual error we get is “ORA – 12154: TNS:could not resolve the conect identifier… ” If you read this exception it will be more clear and you might know what needs to be done.

Below is the screen print of the error.

I assume you have installed Oracle client in your machine. This error just because you missed the 3 required files

1. tnsnames.ora

2. sqlnet.ora

3. ldap.ora

So in order to resolve the error “ORA – 12154: TNS:could not resolve the conect identifier…” you have to copy three files to the oracle installation location.

Oracle installation folder may vary depends on where you have installed the software and the windows version.

I have given you two possible location normally oracle get installed.

C:\app\client\<Userid>\product\12.1.0\client_1\network\admin

or

C:\Oracle\product\12.1.0\client_1\Network\Admin

If you cannot find Network and Admin folder in Client_1 path you may create those two folders.

Now you try to run the code and see if the issue gets resolved or not.

Sunday, January 10, 2016

This is one of the very strange error you may find sometimes. Especially when you build a new system or when you install visual studio 2013 first time.

There are many reasons for this error. If you search in Google you may find many solutions here I am going to give you a different solution which worked for me after a thorough investigation.

What happened in my case was, when I open Visual Studio 2013 it shows as running in Administrator mode, but actually it is not. I didn’t right click and run as administrator while opening Visual Studio.

Now if you build your application which require administrator rights your build may fail. Again not always and not all projects.

So to resolve this issue what you have to do is open Visual Studio in Administrator mode. Just right click on the Visual Studio 2013 from the start menu and click on Run as Administrator. Now you try to build the project which failed without any error. It must work.

I hope it helps, as I mentioned at the top this is not the only solution to this problem, but this is definitely one of the solution which worked for me. So thought of sharing with you all.