我有一些MVC 4 Web-API接受圖像的問題。我下面這個https://stackoverflow.com/a/10327789/385595和http://www.asp.net/web-api/overview/formats-and-model-binding/html-forms-and-multipart-mime#multipartmimeMVC 4 Web API文件POST錯誤
我收到錯誤無法隱就行了轉化型「System.Web.HttpRequestBase」到「System.Net.Http.HttpRequestMessage」:HttpRequestMessage請求= this.Request;
任何人都知道什麼是錯的?
謝謝堆這是原因。在指定類時,我不得不將Controller更改爲ApiController,因爲當我創建類時,我使用了EmptyController模板。 – GrantC