Can’t load System.Web.Cors assembly after call to Microsoft.Owin.Cors

When I check the System.Web.Cors assembly reference in the Solution Explorer, the Version is 5.2.3.0. The Specific Version property is set to False. The path is to the local project bin folder. When checking the .dll properties from the File Explorer, the file’s product version and file version. is also 5.2.3.

How to execute async ‘fire and forget’ operation in ASP.NET Web API

So, I have this Web API action, that executes an asynchronous function. public void Post([FromBody]InsertRequest request) { InsertPostCommand.Execute(request); DoAsync(); } private async void DoAsync() { await Task.Run(() => { //do async stuff here }); } I actually want the controller action to return to the client whilst the async operation executes. I did this and … Read more

Send and receive large file over streams in ASP.NET Web Api C#

I’m working on a project where I need to send large audio files via streams from a client to a server. I’m using the ASP.NET Web Api to communicate between client and server. My client has a “SendFile” method which I believe works fine, but I don’t know how to make my server receive the data I’m sending via a stream. My client code looks like this so far: