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.