在IIS上部署Watson Chat

时间:2019-04-25 14:44:36

标签: asp.net iis ibm-watson windows-server-2012-r2

因此,我创建了一个简单的ASP .NET网站,您可以在其中将消息发送到Watson服务并接收响应。

当我从VS2017运行应用程序时,它在本地运行,但是现在我已将其部署到我的2012 R2服务器上,并且不起作用。 该应用程序正在运行,但是我无法从Watson服务收到任何答案。

我在IIS中缺少什么?

这是我一直在使用的SDK。

https://github.com/watson-developer-cloud/dotnet-standard-sdk

这是我在eventvwr中可以找到的唯一错误。

Event code: 3005 
Event message: An unhandled exception has occurred. 
Event time: 25-04-2019 15:51:35 
Event time (UTC): 25-04-2019 13:51:35 
Event ID: 8eb66320f2fa412ea0a2cf3f61d5f3b2 
Event sequence: 19 
Event occurrence: 1 
Event detail code: 0 

Application information: 
    Application domain: /LM/W3SVC/6/ROOT-6-132006738849963250 
    Trust level: Full 
    Application Virtual Path: / 
    Application Path: xxx
    Machine name: OSI4908 

Process information: 
    Process ID: 6844 
    Process name: w3wp.exe 
    Account name: NT AUTHORITY\NETWORK SERVICE 

Exception information: 
    Exception type: HttpException 
    Exception message: The remote host closed the connection. The error code is 0x80070057.
   at System.Web.Hosting.IIS7WorkerRequest.RaiseCommunicationError(Int32 result, Boolean throwOnDisconnect)
   at System.Web.Hosting.IIS7WorkerRequest.ExplicitFlush()
   at System.Web.HttpResponse.Flush(Boolean finalFlush, Boolean async)
   at System.Web.HttpWriter.WriteFromStream(Byte[] data, Int32 offset, Int32 size)
   at Microsoft.Owin.Host.SystemWeb.CallStreams.OutputStream.Write(Byte[] buffer, Int32 offset, Int32 count)
   at Microsoft.AspNet.SignalR.Owin.ServerResponse.Write(ArraySegment`1 data)
   at Microsoft.AspNet.SignalR.Hosting.ResponseExtensions.End(IResponse response, String data)
   at Microsoft.Owin.Mapping.MapMiddleware.<Invoke>d__0.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Microsoft.Owin.Host.SystemWeb.IntegratedPipeline.StageAsyncResult.End(IAsyncResult ar)
   at System.Web.HttpApplication.AsyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
   at System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step)
   at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

0 个答案:

没有答案