Question
September 18, 2007 at 12:48 AM
gulshanbajwa9

Rediff India server error–“cannot access closed file”

by gulshanbajwa9 . Updated 18 years, 11 months ago

Hi
Here is the transcription of an Error I received while logging into my website–which is a pre-paid website hosted by Rediff:-
Server Error in ‘/admin’ Application.
________________________________________
Cannot access a closed file.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.ObjectDisposedException: Cannot access a closed file.

Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[ObjectDisposedException: Cannot access a closed file.]
System.IO.__Error.FileNotOpen() +57
System.IO.FileStream.Write(Byte[] array, Int32 offset, Int32 count) +76
System.IO.StreamWriter.Flush(Boolean flushStream, Boolean flushEncoder) +152
System.IO.StreamWriter.Flush() +12
System.Diagnostics.TextWriterTraceListener.Flush() +14
System.Diagnostics.TraceInternal.WriteLine(String message) +139
System.Diagnostics.Trace.WriteLine(String message) +5
Ensim.CP.Global.Session_Start(Object sender, EventArgs e) +70
System.Web.SessionState.SessionStateModule.RaiseOnStart(EventArgs e) +132
System.Web.SessionState.SessionStateModule.CompleteAcquireState() +514
System.Web.SessionState.SessionStateModule.BeginAcquireState(Object source, EventArgs e, AsyncCallback cb, Object extraData) +696
System.Web.AsyncEventExecutionStep.System.Web.HttpApplication+IExecutionStep.Execute() +66
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +173

________________________________________
Version Information: Microsoft .NET Framework Version:1.1.4322.2300; ASP.NET Version:1.1.4322.2300

This discussion is locked

All Comments