Wrox Programmer Forums
|
BOOK: Professional ASP.NET 3.5 SP1 Edition: In C# and VB
This is the forum to discuss the Wrox book Professional ASP.NET 3.5 SP1 Edition: In C# and VB by Bill Evjen, Scott Hanselman, and Devin Rader; ISBN: 9780470478264
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional ASP.NET 3.5 SP1 Edition: In C# and VB section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old September 29th, 2009, 11:28 AM
Authorized User
 
Join Date: Mar 2009
Posts: 64
Thanks: 0
Thanked 1 Time in 1 Post
Default StreamWriter from server not working

I used the information in Chapter 25 (previous edition, p. 1172) and created a StreamWriter for saving data in a .csv file format. While developing in Visual Studio 2008 it worked well. However, when I deployed the application the writing part is not working. All I get is an indication of a "server error" in the lower left corner of IE8. Clicking on that I get this information within a dialog box:

Code:
Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; GTB6; SLCC1; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; InfoPath.1)
Timestamp: Tue, 29 Sep 2009 14:48:16 UTC


Message: Sys.WebForms.PageRequestManagerServerErrorException: An unknown error occurred while processing the request on the server. The status code returned from the server was: 401
Line: 4723
Char: 21
Code: 0
URI: http://update.abcd.com/ReportGenerator/ScriptResource.axd?d=iVD7WSn361elBDZTpWKS85mJvQyCn5eCBuY31Yi1DvIcosMxCJRfGKAgm6FDquyJ4hZk_cR3MVrb7L-ISm6XFBCdsPQky4RBsosK73pKGa81&t=7065254d
The main part of the URL (http://update.abcd.com) has been changed slightly for this post as it had my company name in it. It is an internal server for company applications.

Is there something else that I need do for a web site to generate data and then save it in a standard file format on the user's machine?

Thanks.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Using Streamwriter appendtext sanderson Visual Basic 2008 Essentials 3 July 10th, 2009 07:14 PM
StreamWriter problem cheh Visual Basic 2008 Essentials 1 August 26th, 2008 03:18 AM
FileStream vs StreamWriter Makolyte C# 2005 0 June 22nd, 2007 01:22 PM
How To Use StreamWriter Slago VS.NET 2002/2003 7 April 4th, 2006 03:32 PM
What object is streamwriter located under? kenn_rosie ASP.NET 1.0 and 1.1 Basics 0 February 21st, 2006 08:10 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.