How to fix System.Typ​eInitializ​ationExcep​tion? (Visual Studio DLL)

2 Ansichten (letzte 30 Tage)
Philip Chen
Philip Chen am 6 Nov. 2021
Bearbeitet: Philip Chen am 6 Nov. 2021
I have created a DLL file that contains my Matlab function that I would use for Visual Studio C#. Before I created the DLL file, I would test the function within Matlabs to make sure it worked well. The function is useed for plotting some equations.
When I imported the DLL file into my C# project, my Windows App worked fine, it could work with the Matlab DLL file and overall the test run was fine. That was all in my office laptop.
The problem began in my home computer. I uploaded my built C# project to a USB drive before I went home. When I opened the C# program from the USB and tested it in my home PC, I got this System.TypeInitializationException. I did not have Matlabs installed.
How can I fix this?

Antworten (0)

Kategorien

Mehr zu Introduction to Installation and Licensing finden Sie in Help Center und File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by