Matlab production server, c# client (500) Interner server failed
Afficher commentaires plus anciens
i have an issue with the matlab production server, that i didnt understand.
after i create the C# client and i run it perfectly in the first time, i try the 2ed time and it gives me this issue all the time.
"System.Net.WebException The remote server returned an error: (500) Internal server error."
there for i stop it and run it again to work.
can anyone help me to fix this issue?
this is my C# Code:
public interface VWZ { object[] fct_rf_classify(string in1,string in2, double in4, double in5, string in6); } static void Main(string[] args) { MWClient client = new MWHttpClient();
try
{
VWZ me = client.CreateProxy<VWZ>(new Uri("http://localhost:9910/fct_rf_classify"));
object[] result = me.fct_rf_classify("time", "T3_avg", 20, 20, "C1_C942VSR122MP01_sync_red.mat");
var arr1 = (double[,])result[0];
var arr2 = (double[])result[1];
var arr3 = (double[])result[2];
var arr4 = (byte[,,])result[3];
}
finally
{
if (client != null)
{
client.Dispose();
}
}
}
4 commentaires
Kojiro Saito
le 13 Nov 2017
Could you provide the log information of MPS instance? It's located in log\main.log under the instance folder.
salah hamed
le 13 Nov 2017
Kojiro Saito
le 14 Nov 2017
Sounds good.
Just for information, if you're using R2017a or later, MPS dashboard is available and it let you easily start and stop the instance just clicking a button. Ref: this document.
salah hamed
le 14 Nov 2017
Réponses (0)
Catégories
En savoir plus sur .NET Client Programming dans Centre d'aide et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!