Introduction
404 Error when uploading large files into Windows Azure
Technology

404 Error when uploading large files into Windows Azure

I tried to upload a 30MB file into Windows Azure today using my MVC 4 site. When the file got to 99% I got a 404 error saying that my upload Action was nowhere to be found. Fortunately, I successfully uploaded a file earlier in the day at about half the size, so I knew the site wasn't completely broken.

If you are experiencing this error, chances are you already tested uploading large files locally and realized that you need something like this in your Web.config for everything to work:

However, what nobody tells you, is that Windows Azure (i.e. IIS 7) looks at a completely different configuration setting for uploading files.

Adding this additional configuration option will ensure your large file uploads work locally and in the cloud. Just in time for the next release.

Robert Greiner
Author

Robert Greiner

Professional optimist. Passionate about cultivating high-performing teams @ scale by integrating the timeless wisdom of the past with the marvel of today's emergent technology in a practical way.

View Comments
Next Post

Work Yourself Out of a Job

Previous Post

Entity Framework: There is already an open DataReader associated with this Command which must be closed first

Subscribe for free

Subscribe to my newsletter and get the latest posts delivered right to your inbox for free. I don't spam and your email won't be shared with third-parties.

Thanks for subscribing!

Check your inbox to confirm your subscription.

Please enter a valid email address!