COM library Initilization failed with code 0x80010106 in c#
<p>i was trying to push data manually to NT using c# but i was getting an error as: "Failed to initialize COM library(0x80010106)."
I have already added the reference 'Ninjatrader.Client.dll'
i am posting my code as below:</p>

<pre><code>using System;
using System.Runtime.InteropServices;
using System.Threading; 
using System.Diagnostics;

namespace read_file
{
 public static class Program
 {
    [DllImport("NtDirect.dll", EntryPoint = "Connected", SetLastError = true)]
    public extern static int Connected(int showMessage);

    [DllImport("NtDirect.dll", SetLastError = true)]
    public static extern int Last(string instrument, double price, int size);

    public static void Main(string[] args)
    {
        NinjaTrader.Client.Client NTClient = new NinjaTrader.Client.Client();
        int ConnectStatus = Connected(1);

        NTClient.Command("PLACE", "Sim101", "ES 03-08", "BUY", 1, "LIMIT", 1245.00, 0,   "GTC", "ax1234", "", "", "");
        int k;
        for (int i = 0; i &lt; 100; i++)
        {
            k = 10 * (i + 1);
            Last("AUDUSD", k, 4);
            for (int j = 0; j &lt; 999999999; j++)
            {
            }
            Console.WriteLine(k);
                        }

        }
    }
 }
</code></pre>

<p>please tell me the correct suggestion.
thank you</p>
