You are currently offline, waiting for your internet to reconnect

SBS2008: Windows SBS Console may crash because of incorrect Environment Variables

When you launch Windows SBS Console, it may crash instantly. If you analyze the onsole.log under C:\Program Files\Windows Small Business Server\Logs, you may find something similar:

An exception of type 'Type: System.NotSupportedException, mscorlib, Version=, Culture=neutral, PublicKeyToken=b77a5c561934e089' has occurred.
Timestamp: 07/21/2010 23:45:52
Message: The given path's format is not supported.
Stack:    at System.Security.Util.StringExpressionSet.CanonicalizePath(String path, Boolean needFullPath)
    at System.Security.Util.StringExpressionSet.CreateListFromExpressions(String[] str, Boolean needFullPath)
    at System.Security.Permissions.FileIOPermission.AddPathList(FileIOPermissionAccess access, AccessControlActions control, String[] pathListOrig, Boolean checkForDuplicates, Boolean needFullPath, Boolean copyPathList)
    at System.Security.Permissions.FileIOPermission..ctor(FileIOPermissionAccess access, String[] pathList, Boolean checkForDuplicates, Boolean needFullPath)
    at System.IO.Path.GetFullPath(String path)
    at System.CodeDom.Compiler.TempFileCollection.EnsureTempNameCreated()
    at System.CodeDom.Compiler.TempFileCollection.AddExtension(String fileExtension, Boolean keepFile)
    at Microsoft.CSharp.CSharpCodeGenerator.FromSourceBatch(CompilerParameters options, String[] sources)
    at Microsoft.CSharp.CSharpCodeGenerator.System.CodeDom.Compiler.ICodeCompiler.CompileAssemblyFromSourceBatch(CompilerParameters options, String[] sources)
    at System.CodeDom.Compiler.CodeDomProvider.CompileAssemblyFromSource(CompilerParameters options, String[] sources)
    at System.Xml.Serialization.Compiler.Compile(Assembly parent, String ns, XmlSerializerCompilerParameters xmlParameters, Evidence evidence)
    at System.Xml.Serialization.TempAssembly.GenerateAssembly(XmlMapping[] xmlMappings, Type[] types, String defaultNamespace, Evidence evidence, XmlSerializerCompilerParameters parameters, Assembly assembly, Hashtable assemblies)
    at System.Xml.Serialization.TempAssembly..ctor(XmlMapping[] xmlMappings, Type[] types, String defaultNamespace, String location, Evidence evidence)
    at System.Xml.Serialization.XmlSerializer.GenerateTempAssembly(XmlMapping xmlMapping, Type type, String defaultNamespace)
    at System.Xml.Serialization.XmlSerializer..ctor(Type type, String defaultNamespace)
    at Microsoft.WindowsServerSolutions.SystemHealth.Infrastructure.SecurityManager.LoadPlugins()
    at Microsoft.WindowsServerSolutions.SystemHealth.Infrastructure.SecurityManager..ctor()
    at Microsoft.WindowsServerSolutions.SystemHealth.Infrastructure.SecurityManager..cctor()

Other symptoms include unable to run PowerShell commands, such as Test-OutlookWebServices

[PS] C:\Windows\system32>Test-OutlookWebServices
WARNING: An unexpected error has occurred and debug information is being
generated: The given path's format is not supported.
Test-OutlookWebServices : The given path's format is not supported.
At line:1 char:24
+ Test-OutlookWebServices <<<<
    + CategoryInfo          : NotSpecified: (:) [Test-OutlookWebServices], Not
    + FullyQualifiedErrorId : System.NotSupportedException,Microsoft.Exchange.

This issue can occur if Environment Variables are not set correctly.
To resolve this issue, follow these steps:

1.) Open a Command Prompt

2.) Type SET T and hit enter

3.) Analyze the output of TEMP and TMP user variable. Typical value of TEMP and TMP variables are as follows, however, it may vary depending on the system



5.) If the variables value are incorrect, modify it by going into System Properties dialog box -> Advanced tab -> Environment variables.

6.) Log off and then log back in.

Note This is a "FAST PUBLISH" article created directly from within the Microsoft support organization. The information contained herein is provided as-is in response to emerging issues. As a result of the speed in making it available, the materials may include typographical errors and may be revised at any time without notice. See Terms of Use for other considerations.

Article ID: 2291678 - Last Review: 08/20/2010 13:18:00 - Revision: 3.0

Windows Small Business Server 2008 Premium, Windows Small Business Server 2008 Standard

  • KB2291678