Wednesday, March 15, 2017

C# System.TypeInitialization error

I was working on a project and it failed to run at client site. When client launches the program, they get an error like below







Obviously, I have an issue with some class initialization, and neither event viewer nor the crash report had anything useful.


Quick fix is to add an Exception clause and InnerException exactly tells you the nature of the problem







Wednesday, March 8, 2017

Oracle Listener wont start, Failed to start service, error 0.

I had to install Oracle 12c on Windows 2012R2 server, and I ended with this error.

My Listener wont start, and when I tried from command prompt, I got





Google pointed  here and it fixed it

Here are the steps

1) Go you your environment vairables
2) Add ORACLE_HOME pointing to your home directory

3) start the service again


Oracle Database Configuration Assistant: DIM-00019 OS 1388 Error

I had to install Oracle 12c on Windows 2012R2 server, and I ended with this error

DIM-00019:create service error O/S-Error:(OS 1388) A new member could not be added to a local group because the member has the wrong account type.


I did run the installer as "Administrator" option. Google pointed to here and it

Here are the steps

1) Once your installer errors out with DIM error, DO NOT CLOSE the installer
2) Go to Services, find your Oracle database service
3) Start the service
4) Come back and hit retry