How can I use the program developed by C# and matlab in the other computer without matlab? It is very important for me!!!!!!

I wrote a C# program using Visual Studio 2008 that incorporates Matlab functions. I started out with a basic program:
MLApp.MLAppClass matlab = new MLApp.MLAppClass();
matlab.Visible = 0;
string ans = matlab.Execute("3+5");
System.Console.WriteLine(ans);
It works fine on the development computer, but when I try to deploy it to another computer I get the following error:
Retrieving the COM factory for component with CLSID {07FB7FDD-3B80-4D41-A793-326AC619EA11} failed due to the following error: 80040154. And it say that system.runtime interopservices.comexception is error. I did run the MCRInstaller.exe (found in the original computers installation folder) on the second computer, but I still have the above error.

1 Commento

I think this is still appropriate: http://www.mathworks.com/matlabcentral/answers/29922-why-your-question-is-not-urgent-or-an-emergency
I am sure that this question is very important to you, but it is not so important to those who volunteer their time to answer questions here. Do you expect us to spend more time, or get to your question quicker because it is important to you?

Accedi per commentare.

Risposte (1)

It looks like you are invoking the MATLAB COM Server from C# on the development machine which requires a full install of MATLAB. Installing the MCR won't do.
If you'd like to use Builder NE instead, you need to use "deploytool" to build a COM component from your MATLAB code and then load that from C#. See http://www.mathworks.com/help/toolbox/dotnetbuilder/ug/f6010dfi10.html

Categorie

Scopri di più su MATLAB Compiler SDK in Centro assistenza e File Exchange

Richiesto:

il 27 Apr 2012

Community Treasure Hunt

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

Start Hunting!

Translated by