調用wcf接口出錯: 內部錯誤: MessageContract 的實例在 http://tempuri.org/IFileStoreService/GetFileResponse 中不能為空。“/”應用程序中的服務器錯誤。 值不能為 null。參數名: 內部錯誤: MessageContract 的實例在 http://tempuri.org/IFileStoreService/GetFileResponse 中不能為空。說明: 執行當前 Web 請求期間,出現未經處理的異常。請檢查堆棧跟蹤信息,以了解有關該錯誤以及代碼中導致錯誤的出處的詳細信息。 異常詳細信息: System.ServiceModel.FaultException`1[[System.ServiceModel.ExceptionDetail, System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]]: 值不能為 null。參數名: 內部錯誤: MessageContract 的實例在 http://tempuri.org/IFileStoreService/GetFileResponse 中不能為空。返回文件流,當文件不存返回一個null 時報上面錯誤。返回對象數:wcf 接口代碼: 怎么解決接口返回null不報錯?
- 1 回答
- 0 關注
- 962 瀏覽
添加回答
舉報
0/150
提交
取消