Last post Sep 14, 2016 05:13 AM by Yohann Lu
Sep 13, 2016 12:47 PM|calicom|LINK
I am facing the following issue. I have implemented a application with Web Api 2. One of the endpoints accepts multipart which I use for uploading file. After I start upload until it completes all other api endpoints are not responding. Once the file is
received in the server or if I cancel the upload then the rest of the api end points starts responding.
This is hosted in Azure App Service. I am unable to find whats causing this. Can you guys help me out on this ?
Sep 13, 2016 02:13 PM|RichardY|LINK
Are the requests to the other endpoints coming from the same browser and are all the end points on the same controller?
Sep 13, 2016 08:03 PM|calicom|LINK
The request are from different browsers. I tried different browsers in my pc. Also on a system in U.S. and another in India. So I am pretty sure it has something to with the server. Also this is not happening if I run the server locally. Is there a chance
it might be due to some configuration issue in Azure App Service ?
Sep 14, 2016 05:13 AM|Yohann Lu|LINK
After I start upload until it completes all other api endpoints are not responding. Once the file is received in the server or if I cancel the upload then the rest of the api end points starts responding.
I suggest you can upload your files asynchronous.
WebAPI controller can access the file like this:
public async Task<HttpResponseMessage> Upload()
You can refer the following links.
Asynchronous File Upload using ASP.NET Web API:
Async upload using angular-file-upload directive and .net WebAPI service:
If you still have a similar problem, please go to the Microsoft Azure forum for suitable help.
Microsoft Azure forum: