locked
TFS online getted checkin build failures. VS online/ TFS online team need to look into it RRS feed

  • Question

  • Getted checkin build error-

    Unhandled Exception: System.TypeInitializationException: The type initializer for 'LibGit2Sharp.Core.NativeMethods' threw an exception. ---> System.BadImageFormatException: An attempt was made to load a program with an incorrect format. (Exception from HRESULT: 0x8007000B)

    at LibGit2Sharp.Core.NativeMethods.git_threads_init()

    at LibGit2Sharp.Core.NativeMethods.LibraryLifetimeObject..ctor()

    at LibGit2Sharp.Core.NativeMethods..cctor()

    --- End of inner exception stack trace ---

    at LibGit2Sharp.Core.NativeMethods.RemoveHandle()

    at LibGit2Sharp.Core.NativeMethods.LibraryLifetimeObject.Finalize()

    Exception Message: MSBuild error -532462766 has ended this build. You can find more specific information about the cause of this error in above messages. (type BuildProcessTerminateException) Exception Stack Trace: at System.Activities.Statements.Throw.Execute(CodeActivityContext context) at System.Activities.CodeActivity.InternalExecute(ActivityInstance instance, ActivityExecutor executor, BookmarkManager bookmarkManager) at System.Activities.Runtime.ActivityExecutor.ExecuteActivityWorkItem.ExecuteBody(ActivityExecutor executor, BookmarkManager bookmarkManager, Location resultLocation)

    This seems Microsoft team is doing all their development on production envrionment where all Visual Studio Online user and TFS online users are getting affected without any intimation.

    We are also facing this issue where getted- checkin is getting rejected because of these crappy issues.

    We are so much regretting now to opt in for Azure and TFS online build system. There is whole development outage and no one from Microsoft seems to be cared about it.

    No use of putting it on Tweeter handle as well. These people do not know how to work on Online system so that their customer do not get affected because of it.

    • Changed type Sheethal J S Wednesday, May 24, 2017 4:51 AM Question
    Tuesday, May 5, 2015 11:26 AM

All replies

  • I've asked someone to investigate this.

    http://blogs.msdn.com/buckh

    Tuesday, May 5, 2015 4:51 PM
  • Hey Buck

    This is not first time we are facing this kind of issues. It has become very painful project working with TFS online builds. I hope you guys will take it more seriously.

    Thanks

    Wednesday, May 6, 2015 5:02 AM
  • We have now gotten to the bottom of this issue after debugging it with Manoj and customer support. It affected gated checkin of continuous delivery of Azure deployments as part of the build process when using the Azure SDK 2.5 or older. The workaround is to add /p:GenerateBuildInfoConfigFile=false to the msbuild arguments in your build definition. We are working on updating the build VM in production, but that will take 24-48 hours to propagate to all build pools.

    Sorry for the delay in getting this solved.


    http://blogs.msdn.com/buckh

    Wednesday, May 6, 2015 10:34 PM
  • We are still experiencing this issue occasionally (completely random) despite we keep away ourselves from git:

    Unhandled Exception:   System.TypeInitializationException: The type initializer for   'LibGit2Sharp.Core.NativeMethods' threw an exception. --->   System.BadImageFormatException: An attempt was made to load a program with an   incorrect format. (Exception from HRESULT: 0x8007000B)

    at   LibGit2Sharp.Core.NativeMethods.git_libgit2_init()

    at   LibGit2Sharp.Core.NativeMethods.LibraryLifetimeObject..ctor()

    at LibGit2Sharp.Core.NativeMethods..cctor()

    --- End of inner exception stack trace ---

    at   LibGit2Sharp.Core.NativeMethods.RemoveHandle()

    at   LibGit2Sharp.Core.NativeMethods.LibraryLifetimeObject.Finalize()

    Exception Message: MSBuild error -532462766   has ended this build. You can find more specific information about the cause   of this error in above messages. (type BuildProcessTerminateException)   Exception Stack Trace: at   System.Activities.Statements.Throw.Execute(CodeActivityContext context) at   System.Activities.CodeActivity.InternalExecute(ActivityInstance instance,   ActivityExecutor executor, BookmarkManager bookmarkManager) at   System.Activities.Runtime.ActivityExecutor.ExecuteActivityWorkItem.ExecuteBody(ActivityExecutor   executor, BookmarkManager bookmarkManager, Location resultLocation)

    Friday, May 29, 2015 2:54 PM
  • We are also seeing this, approx 1 in 10 builds, seems random (have not tried above workaround yet). It just happened today:

    Unhandled Exception: System.TypeInitializationException: The type initializer for 'LibGit2Sharp.Core.NativeMethods' threw an exception. ---> System.BadImageFormatException: An attempt was made to load a program with an incorrect format. (Exception from HRESULT: 0x8007000B)
    at LibGit2Sharp.Core.NativeMethods.git_libgit2_init()
    at LibGit2Sharp.Core.NativeMethods.LibraryLifetimeObject..ctor()
    at LibGit2Sharp.Core.NativeMethods..cctor()
    --- End of inner exception stack trace ---
    at LibGit2Sharp.Core.NativeMethods.RemoveHandle()
    at LibGit2Sharp.Core.NativeMethods.LibraryLifetimeObject.Finalize()
    Exception Message: MSBuild error -532462766 has ended this build. You can find more specific information about the cause of this error in above messages. (type BuildProcessTerminateException) Exception Stack Trace: at System.Activities.Statements.Throw.Execute(CodeActivityContext context) at System.Activities.CodeActivity.InternalExecute(ActivityInstance instance, ActivityExecutor executor, BookmarkManager bookmarkManager) at System.Activities.Runtime.ActivityExecutor.ExecuteActivityWorkItem.ExecuteBody(ActivityExecutor executor, BookmarkManager bookmarkManager, Location resultLocation)


    Tuesday, June 2, 2015 8:12 AM
  • We are having this issue in the following situation:

    • Using a local TFS2013 update 5 installation
    • Building Azure 2.8 projects
    • Builds set to use the "Rolling Build" trigger
    • Builds set to use version 14.0 of MSBuild tools
    • Using TFS for version control
    • Visual Studio 2013 update 5 and Visual Studio 2015 update 1 both installed on the build servers (both applications have been opened and properly licensed)

    Appending /p:GenerateBuildInfoConfigFile=false to the MSBuild arguments does solve the problem. However I wanted to point out that this is definitely not fixed as of TFS2013 update 5.

    EDIT: We are also seeing this error rarely on regular ASP.NET web applications

    The exact error that shows in the build log is as follows:

    Unhandled Exception: System.TypeInitializationException: The type initializer for 'LibGit2Sharp.Core.NativeMethods' threw an exception. ---> System.BadImageFormatException: An attempt was made to load a program with an incorrect format. (Exception from HRESULT: 0x8007000B)
     at LibGit2Sharp.Core.NativeMethods.git_libgit2_init()
     at LibGit2Sharp.Core.NativeMethods.LibraryLifetimeObject..ctor()
     at LibGit2Sharp.Core.NativeMethods..cctor()
     --- End of inner exception stack trace ---
     at LibGit2Sharp.Core.NativeMethods.RemoveHandle()
     at LibGit2Sharp.Core.NativeMethods.LibraryLifetimeObject.Finalize()
     Exception Message: MSBuild error 255 has ended this build. You can find more specific information about the cause of this error in above messages. (type BuildProcessTerminateException)
    Exception Stack Trace:    at System.Activities.Statements.Throw.Execute(CodeActivityContext context)
       at System.Activities.CodeActivity.InternalExecute(ActivityInstance instance, ActivityExecutor executor, BookmarkManager bookmarkManager)
       at System.Activities.Runtime.ActivityExecutor.ExecuteActivityWorkItem.ExecuteBody(ActivityExecutor executor, BookmarkManager bookmarkManager, Location resultLocation)



    • Edited by dennish79 Friday, March 11, 2016 7:57 PM
    Thursday, March 10, 2016 5:44 PM
  • This worked for me
    Monday, May 22, 2017 9:30 AM