Matlab production server, c# client (500) Interner server failed

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 件のコメント

Kojiro Saito
Kojiro Saito 2017 年 11 月 13 日
Could you provide the log information of MPS instance? It's located in log\main.log under the instance folder.
salah hamed
salah hamed 2017 年 11 月 13 日
thank you for your replay but i resolved the Problem just now, all i need to do is starting the command prompt (to start the MPS) with the Administrator privilege.
Kojiro Saito
Kojiro Saito 2017 年 11 月 14 日
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
salah hamed 2017 年 11 月 14 日
Thank you so much Kojiro for the Tip, i will try to install it soon.

サインインしてコメントする。

回答 (0 件)

カテゴリ

質問済み:

2017 年 11 月 8 日

コメント済み:

2017 年 11 月 14 日

Community Treasure Hunt

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

Start Hunting!

Translated by