Windows SBS Console may crash

Article ID: 2616792 - View products that this article applies to.
Expand all | Collapse all

Symptoms


When you launch Windows SBS Console, it may crash instantly. When the crash occurs, SBS Console will terminate and the user will see the following window.

SBS console crash 

If you analyze the Console.log file that is located at c:\program files\windows small business server\logs you will notice the following error:

---------------------------------------
An exception of type 'Type: System.IO.FileLoadException, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' has occurred.
Timestamp: 09/16/2011 12:35:58
Message: Mixed mode assembly is built against version 'v2.0.50727' of the runtime and cannot be loaded in the 4.0 runtime without additional configuration information.
Stack: at System.Reflection.RuntimeAssembly.GetExportedTypes(RuntimeAssembly assembly, ObjectHandleOnStack retTypes)
at System.Reflection.RuntimeAssembly.GetExportedTypes()
at System.Management.Automation.Runspaces.RunspaceConfigForSingleShell.AnalyzeMshSnapinAssembly(Assembly assembly, PSSnapInInfo mshsnapinInfo)
at System.Management.Automation.Runspaces.RunspaceConfigForSingleShell.LoadPSSnapIn(PSSnapInInfo mshsnapinInfo)
at System.Management.Automation.Runspaces.RunspaceConfigForSingleShell.LoadPSSnapIn(PSSnapInInfo mshsnapinInfo, PSSnapInException& warning)
at System.Management.Automation.Runspaces.RunspaceConfigForSingleShell.DoAddPSSnapIn(String name, PSSnapInException& warning)
    at Microsoft.WindowsServerSolutions.PowerShell.PSRuntime.InitializeRuntime(String consoleFilePath, ICollection`1 snapIns)
    at Microsoft.WindowsServerSolutions.Storage.Common.ServerBackupWorker..ctor()
    at Microsoft.WindowsServerSolutions.Storage.Common.ServerBackupUtility.GetStatus(String dateFormat, String& statusText, String& lastBackup, String& nextBackup, Boolean& nextBackupPaused)
    at Microsoft.WindowsServerSolutions.Console.Controls.ReportCard.ReportCard.GetBackupHealthInfo(LEDstates& ledState, String& reportDescription)
    at Microsoft.WindowsServerSolutions.Console.Controls.SystemHealthInfo.SystemHealthInfo.BackgroundWorkerDoWork(Object sender, DoWorkEventArgs e)
    at System.ComponentModel.BackgroundWorker.WorkerThreadStart(Object argument)

[56084] 110916.123558.6854: Admin: !!!!FATAL: Console shutting down due to unhandled exception: Exception has been thrown by the target of an invocation.
[56084] 110916.123558.8064: Exception:
---------------------------------------
An exception of type 'Type: System.Reflection.TargetInvocationException, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' has occurred.
Timestamp: 09/16/2011 12:35:58
Message: Exception has been thrown by the target of an invocation.
Stack:    at System.RuntimeMethodHandle._InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeType typeOwner)
    at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
    at System.Delegate.DynamicInvokeImpl(Object[] args)
    at System.Windows.Forms.Control.InvokeMarshaledCallbackDo(ThreadMethodEntry tme)
    at System.Windows.Forms.Control.InvokeMarshaledCallbackHelper(Object obj)
    at System.Threading.ExecutionContext.runTryCode(Object userData)
    at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)
    at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx)
    at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
    at System.Windows.Forms.Control.InvokeMarshaledCallback(ThreadMethodEntry tme)
    at System.Windows.Forms.Control.InvokeMarshaledCallbacks()
    at System.Windows.Forms.Control.WndProc(Message& m)
    at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
    at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
    at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr dwComponentID, Int32 reason, Int32 pvLoopData)
    at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
    at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
    at Microsoft.WindowsServerSolutions.Console.Program.Main(String[] args)
---------------------------------------
An exception of type 'Type: System.Reflection.TargetInvocationException, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' has occurred.
Timestamp: 09/16/2011 12:35:58
Message: Exception has been thrown by the target of an invocation.
Stack:    at Microsoft.WindowsServerSolutions.Console.Controls.SystemHealthInfo.SystemHealthInfo.RunWorkerCompleted(Object sender, RunWorkerCompletedEventArgs e)
---------------------------------------
An exception of type 'Type: System.IO.FileLoadException, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' has occurred.
Timestamp: 09/16/2011 12:35:58
Message: Mixed mode assembly is built against version 'v2.0.50727' of the runtime and cannot be loaded in the 4.0 runtime without additional configuration information.
Stack:    at System.Reflection.RuntimeAssembly.GetExportedTypes(RuntimeAssembly assembly, ObjectHandleOnStack retTypes)
    at System.Reflection.RuntimeAssembly.GetExportedTypes()
    at System.Management.Automation.Runspaces.RunspaceConfigForSingleShell.AnalyzeMshSnapinAssembly(Assembly assembly, PSSnapInInfo mshsnapinInfo)
    at System.Management.Automation.Runspaces.RunspaceConfigForSingleShell.LoadPSSnapIn(PSSnapInInfo mshsnapinInfo)
    at System.Management.Automation.Runspaces.RunspaceConfigForSingleShell.LoadPSSnapIn(PSSnapInInfo mshsnapinInfo, PSSnapInException& warning)
    at System.Management.Automation.Runspaces.RunspaceConfigForSingleShell.DoAddPSSnapIn(String name, PSSnapInException& warning)
    at Microsoft.WindowsServerSolutions.PowerShell.PSRuntime.InitializeRuntime(String consoleFilePath, ICollection`1 snapIns)
    at Microsoft.WindowsServerSolutions.Storage.Common.ServerBackupWorker..ctor()
    at Microsoft.WindowsServerSolutions.Storage.Common.ServerBackupUtility.GetStatus(String dateFormat, String& statusText, String& lastBackup, String& nextBackup, Boolean& nextBackupPaused)
    at Microsoft.WindowsServerSolutions.Console.Controls.ReportCard.ReportCard.GetBackupHealthInfo(LEDstates& ledState, String& reportDescription)
    at Microsoft.WindowsServerSolutions.Console.Controls.SystemHealthInfo.SystemHealthInfo.BackgroundWorkerDoWork(Object sender, DoWorkEventArgs e)
    at System.ComponentModel.BackgroundWorker.WorkerThreadStart(Object argument)

 

 

Cause

The console is failing to load assemblies that are built under Framework version 2.0.

Resolution

 

To resolve this issue, follow these steps:

To have us fix this problem for you, go to the "Fix it for me" section. If you prefer to fix this problem yourself, go to the "Let me fix it myself" section.

Fix it for me

To fix this problem automatically, click the Fix this problem link. Then click Run in the File Download dialog box, and follow the steps in this wizard.

Fix this problem
Microsoft Fix it 50823



Note Please reopen the SBS Console after running the Fix it solution.

Note This wizard may be in English only. However, the automatic fix also works for other language versions of Windows.

Note If you are not on the computer that has the problem, you can save the automatic fix to a flash drive or to a CD so that you can run it on the computer that has the problem.

Let me fix it myself


1) Open a Administrative command prompt

2) Change to the directory C:\Program Files\Windows Small Business Server\Bin

3) Type notepad Console.exe.config and hit Enter.

4) In console.exe.config file look for the section "startup useLegacyV2RuntimeActivationPolicy" . If the value is false change it to true.

For example:

<startup useLegacyV2RuntimeActivationPolicy="true" />

5) Save the console.exe.config opened in notepad.

6) Close the SBS Console and reopen it.

 

Properties

Article ID: 2616792 - Last Review: February 1, 2012 - Revision: 7.0
APPLIES TO
  • Windows Small Business Server 2011 Standard
Keywords: 
KB2616792

Give Feedback

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com