unhandled SEHException

Hi there

I want to access our Multiterm data via the API. I have written a few lines of code in C#, but now I run into an exception that I cannot seem to tackle.

Here is a snippet:
            Application oMt = new ApplicationClass();

            TermbaseRepository oServerRep = oMt.ServerRepository;
            oServerRep.Connect(my credentials);
            oServerRep.Location = (my server);
            Console.WriteLine("Connection successful: " + oServerRep.IsConnected);

            Termbases oTbs = oServerRep.Termbases;

An unhandled 'System.Runtime.InteropServices.SEHException' is thrown at the last line, i.e. when I try to access the Termbases. The line above that shows me that the connection has been established successfully, so no problem there.

Unfortunately, my debugging efforts haven't yielded any result either. Does anyone know how to resolve such an exception?

Thanks in advance!

Parents Reply
  • Hi,

    now, we experience this also in one of our systems, right when calling

    var app = new Application();

    (MT Desktop version 14.2.7.43908)

    in another system with 14.0.2094.0 this works still.
    Right after upgrading it to the latest 14.2.7.43908 the same error in this system too.
    I restarted the system, started this app as administrator, same result. 

    Error log is:


    Faulting module name: KERNELBASE.dll, version: 6.1.7601.23796, time stamp: 0x59028e59
    Exception code: 0xe06d7363
    Fault offset: 0x0000c54f
    Faulting process id: 0x168c
    Faulting application start time: 0x01d4c44b13793ae5
    Faulting application path: C:\Users\XXXXXX\Desktop\TestMTApi.exe
    Faulting module path: C:\Windows\syswow64\KERNELBASE.dll
    Report Id: 53fe5e1e-303e-11e9-907c-005056bccf5e

     

    We experience the same issue with MT 2019 (15.0.2.49020) in the customer's environment as well (new installation). The same version in our environment works fine.

    Can you please help?

Children