ASP.NET 1.1As of 10/6/2005, this forum is locked as part of the reorganization described here: http://p2p.wrox.com/topic.asp?TOPIC_ID=35394. No posts have been deleted. Open ongoing discussions from the last week have been moved to either ASP.NET 1.0 and 1.1 Beginners http://p2p.wrox.com/asp-net-1-0-1-1-basics-60/ or ASP.NET 1.0 and 1.1 Professional. http://p2p.wrox.com/forum.asp?FORUM_ID=50. See my sticky post inside for more.
Welcome to the p2p.wrox.com Forums.
You are currently viewing the ASP.NET 1.1 section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of computer programmers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other programmers’ questions, win occasional prizes given to our best members, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
I am trying to reproduce an error message that I should get when I try to download a file using the browser that is greater than 2 Gig is size. This applies to .Net Framework 1.1 sp1. The only insturctions that I have are as below:
Install and configure a custom handler to include the following lines of code:
response.AddHeader("Content-Length", new FileInfo(fileName).Length.ToString());
response.TransmitFile( fileName );
Does any one know of any good reference material that can help me in creating the full problem?
Also, If it only requires few more lines of code please let me know.