Powershell – exception calling “…” with “…” argument(s): “Object reference not set to an instance of an object”

Not all is so good in the world of using .NET from powershell code as it could be seen at first glance. I have to write poweshell code that need to use .NET library which realize text user interface. Here you can find detailed info about this library – https://www.codeproject.com/Articles/750873/Turbo-Vision-resurrected-for-Csharp-and-with-XAML 

Continue reading “Powershell – exception calling “…” with “…” argument(s): “Object reference not set to an instance of an object””

Advertisements

Analyze the inner exception using Windbg when “TypeInitializationException was unhandled” exception was thrown

At first time I got this error in my error handling mechanism (Nbug) and was surprised how to get number of line in source code for exception in Windbg. Let’s take a look at a simple console application which throw the exception of this type.

Continue reading “Analyze the inner exception using Windbg when “TypeInitializationException was unhandled” exception was thrown”