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
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
2017년 11월 13일
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
2017년 11월 14일
답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 .NET Client Programming에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!