none
WSUS Errors - System.BadImageFormatException

    Pertanyaan

  • Hello,

    I am getting this error when ever I try to do anything within WSUS (approve updates, run reports, pretty much anything):

    The WSUS administration console has encountered an unexpected error. This may be a transient error; try restarting the administration console. If this error persists,

    Try removing the persisted preferences for the console by deleting the wsus file under %appdata%\Microsoft\MMC\.

    System.BadImageFormatException -- Could not load file or assembly 'System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The module was expected to contain an assembly manifest.

    Source

    Microsoft.UpdateServices.BaseApi

    Stack Trace:

       at Microsoft.UpdateServices.Internal.BaseApi.UpdateServer.GetCurrentUserName()

       at Microsoft.UpdateServices.Internal.BaseApi.Update.Approve(UpdateApprovalAction action, IComputerTargetGroup targetGroup, DateTime deadline, Boolean isAssigned)

       at Microsoft.UpdateServices.Internal.BaseApi.Update.Approve(UpdateApprovalAction action, IComputerTargetGroup targetGroup)

       at Microsoft.UpdateServices.UI.AdminApiAccess.WsusUpdate.Approve(UpdateApprovalAction action, IComputerTargetGroup computerTargetGroup)

       at Microsoft.UpdateServices.UI.AdminApiAccess.WsusUpdate.Approve(UpdateApproval newApproval)

       at Microsoft.UpdateServices.UI.AdminApiAccess.UpdateManager.AsyncUpdateApprovalManager.UpdateApprovalWorker(AsyncOperation asyncOp, SendOrPostCallback completionMethodDelegate, WsusUpdate update, UpdateApproval approval)

    I have tried removing the persisted preferences.

    Thanks in advance for any help/advice given.

    Chris

    05 Juli 2012 17:26

Jawaban

  • System.BadImageFormatException -- Could not load file or assembly 'System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies.

    Any chance you recently installed .NET4 to the WSUS server?

    Otherwise, it looks like a corrupted .NET2 installation -- or maybe the WSUS v-root got (re)configured to use something other than ASP.NET v2?


    Lawrence Garvin, M.S., MCITP:EA, MCDBA, MCSA
    Product Manager, SolarWinds
    Microsoft MVP - Software Distribution (2005-2012)
    My MVP Profile: http://mvp.support.microsoft.com/profile/Lawrence.Garvin

    • Ditandai sebagai Jawaban oleh csparks73 06 Juli 2012 18:21
    05 Juli 2012 21:11
    Moderator

Semua Balasan

  • System.BadImageFormatException -- Could not load file or assembly 'System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies.

    Any chance you recently installed .NET4 to the WSUS server?

    Otherwise, it looks like a corrupted .NET2 installation -- or maybe the WSUS v-root got (re)configured to use something other than ASP.NET v2?


    Lawrence Garvin, M.S., MCITP:EA, MCDBA, MCSA
    Product Manager, SolarWinds
    Microsoft MVP - Software Distribution (2005-2012)
    My MVP Profile: http://mvp.support.microsoft.com/profile/Lawrence.Garvin

    • Ditandai sebagai Jawaban oleh csparks73 06 Juli 2012 18:21
    05 Juli 2012 21:11
    Moderator
  • Lawrence,

    Did a repair on .net 3.5 and it is working!! Thanks very much for pointing us to a .net issue.

    Chris

    06 Juli 2012 18:23