I also ran into this problem and actually found the answer here:
It turns out that the docx format needs to have Response.End()
right after the Response.BinaryWrite
.
More Related Contents:
- HttpCookieCollection.Add vs HttpCookieCollection.Set – Does the Request.Cookies collection get copied to the Response.Cookies collection?
- Are Parameters really enough to prevent Sql injections?
- Access-control-allow-origin with multiple domains
- Receiving login prompt using integrated windows authentication
- Setting up connection string in ASP.NET to SQL SERVER
- How can I force entity framework to insert identity columns?
- What does .d in JSON mean?
- Trying to make Web Method Asynchronous
- Is it possible to access MVC Views located in another project?
- sorting and paging with gridview asp.net
- Writing MemoryStream to Response Object
- What is limiting the # of simultaneous connections my ASP.NET application can make to a web service?
- In ASP.NET, when should I use Session.Clear() rather than Session.Abandon()?
- ASP.NET MVC – Session is null
- can jquery ajax call external webservice?
- Preventing SQL Injection in ASP.Net
- Images in database vs file system
- Is there a browser equivalent to IE’s ClearAuthenticationCache?
- Create custom culture in ASP.NET
- IIS7 – The request filtering module is configured to deny a request that exceeds the request content length
- ASP.NET 5 project hosting on IIS
- What’s the best method in ASP.NET to obtain the current domain?
- Understanding the runat server attribute
- The configuration section ‘system.web.extensions’ cannot be read because it is missing a section declaration
- Images that are in App_Data folder not shown in browser
- How can I use HTML5 email input type with server-side .NET
- Project template for Visual Studio 2015
- What do the TargetFramework settings mean in web.config in ASP .NET MVC?
- Gridview row editing – dynamic binding to a DropDownList
- Cross Origin Resource Sharing for c# WCF Restful web service hosted as Windows service