I successfully integrate/reference a third party assembly. I tried to use one of the namespace after that I encountered an error that I cannot solve. Here's the simple code:
public string Post()
{
// SpeechDocument(String waveFilePath, String authorName, String reportingGroup, Boolean isTelephonyFile)
SpeechDocument doc = new SpeechDocument("C:\...\00000001.wav", "Cedrick", "General Medicine", false);
return "success";
}
The errors are:
at System.IO.Path.Combine(String path1, String path2)
at RSDK.Internal.Common.RSDKContainer.get_CurrentProcessLogFileNameWithPath()
at RSDK.Internal.Core.SpeechDocumentCore.#=z$5Q2T_xRYoga()
at RSDK.Internal.Core.SpeechDocumentCore.EndEditing(Boolean #=zTYSHoeyj3r48ojXOIRdOcpA=, AudioRecorderEvent[] #=zbELmHJ$IRdFI, RecognitionSessionEvents #=zBhjJtc_kJDyoD0OJyFahi54=)
at RSDK.Reporting.SpeechDocument.#=zP0d4cWexHDDrvOhI7Q==(Byte[] #=zF8R1D8iiYw7u, String #=znyXcsaU=, String #=z7F6fUgeQvXwBuhoM2Q==, Boolean #=zX9EJOBrNDRht3FrkZg==)
at RSDK.Reporting.SpeechDocument..ctor(String waveFilePath, String authorName, String reportingGroup, Boolean isTelephonyFile)
at RSDKAPII.Controllers.ValuesController.Post() in C:\Users\Cedric\Desktop\TestProject\RSDKAPII\Controllers\ValuesController.cs:line 51
at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ActionExecutor.<>c__DisplayClass6_2.<GetExecutor>b__2(Object instance, Object[] methodParameters)
at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ActionExecutor.Execute(Object instance, Object[] arguments)
at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ExecuteAsync(HttpControllerContext controllerContext, IDictionary`2 arguments, CancellationToken cancellationToken)
The error pointing inside of constructor while the wav path is outside of the project. I didn't use Path.Combine and I can't solve the SystemArgumentNullException which is the Parameter name: path2. I'm glad if someone can help me through this.