Skip to content
This repository was archived by the owner on Jul 15, 2023. It is now read-only.
This repository was archived by the owner on Jul 15, 2023. It is now read-only.

Unhandled Exception: System.ObjectDisposedException: Cannot access a closed file. #481

Open
@chucklu

Description

@chucklu

Hi,
When I try to git push ,I got this exception.

$ git push
fatal: TaskCanceledException encountered.
   A task was canceled.

Unhandled Exception: System.ObjectDisposedException: Cannot access a closed file.
   at System.IO.__Error.FileNotOpen()
   at System.IO.FileStream.Flush(Boolean flushToDisk)
   at System.IO.StreamWriter.Flush(Boolean flushStream, Boolean flushEncoder)
   at Microsoft.Alm.Git.Trace.Microsoft.Alm.Git.ITrace.Flush()
   at Microsoft.Alm.Cli.ConsoleFunctions.Exit(Program program, Int32 exitcode, String message, String path, Int32 line, String name)
   at Microsoft.Alm.Cli.Program.Exit(Int32 exitcode, String message, String path, Int32 line, String name)
   at Microsoft.Alm.Cli.CommonFunctions.DieMessage(Program program, String message, String path, Int32 line, String name)
   at Microsoft.Alm.Cli.Program.Die(String message, String path, Int32 line, String name)
   at Microsoft.Alm.Cli.CommonFunctions.DieException(Program program, Exception exception, String path, Int32 line, String name)
   at Microsoft.Alm.Cli.Program.Die(Exception exception, String path, Int32 line, String name)
   at Microsoft.Alm.Cli.Program.Run(String[] args)
   at Microsoft.Alm.Cli.Program.Main(String[] args)
fatal: TaskCanceledException encountered.
   A task was canceled.

Unhandled Exception: System.ObjectDisposedException: Cannot access a closed file.
   at System.IO.__Error.FileNotOpen()
   at System.IO.FileStream.Flush(Boolean flushToDisk)
   at System.IO.StreamWriter.Flush(Boolean flushStream, Boolean flushEncoder)
   at Microsoft.Alm.Git.Trace.Microsoft.Alm.Git.ITrace.Flush()
   at Microsoft.Alm.Cli.ConsoleFunctions.Exit(Program program, Int32 exitcode, String message, String path, Int32 line, String name)
   at Microsoft.Alm.Cli.Program.Exit(Int32 exitcode, String message, String path, Int32 line, String name)
   at Microsoft.Alm.Cli.CommonFunctions.DieMessage(Program program, String message, String path, Int32 line, String name)
   at Microsoft.Alm.Cli.Program.Die(String message, String path, Int32 line, String name)
   at Microsoft.Alm.Cli.CommonFunctions.DieException(Program program, Exception exception, String path, Int32 line, String name)
   at Microsoft.Alm.Cli.Program.Die(Exception exception, String path, Int32 line, String name)
   at Microsoft.Alm.Cli.Program.Run(String[] args)
   at Microsoft.Alm.Cli.Program.Main(String[] args)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugMarks an issue as tracking a bug, or marks a pull request as fixing a bug.more-info-needed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions