Compartir a través de


getting an error when you open EMC / EMS

some times after you install service pack or update roll up for exchange 2010 you find that EMC / EMS are not working with below error

Connecting to remote server failed with the following error
message: The WinRM client cannot process the request. It cannot determine the
content type of the HTTP response from the destination computer. The content
type is absent or invalid. For more information, see the
about_Remote_Troubleshooting Help topic.

 

looking at the application log we can see the below warning

 

 Log Name:      Application

Source:        ASP.NET
2.0.50727.0

Date:         
3/11/2012 11:22:04 AM

Event ID:      1310

Task Category: Web Event

Level:         Warning

Keywords:      Classic

User:          N/A

Computer:     
ABC.XYZ.LOCAL

Description:

Event code: 3008

Event message: A configuration error has occurred.

Event time: 3/11/2012 11:22:04 AM

Event time (UTC): 3/11/2012 8:22:04 AM

Event ID: c21330b3c7e64e37938fefc93278b3b0

Event sequence: 2

Event occurrence: 2

Event detail code: 0

 

Application information:

    Application
domain: /LM/W3SVC/1/ROOT/PowerShell-1-129759272693526091

    Trust level: Full

    Application
Virtual Path: /PowerShell

    Application Path:
D:\Program Files\Microsoft\Exchange Server\V14\ClientAccess\PowerShell\

    Machine name:
ABC

 

Process information:

    Process ID: 7192

    Process name:
w3wp.exe

    Account name: NT
AUTHORITY\SYSTEM

 

Exception information:

    Exception type:
ConfigurationErrorsException

    Exception message:
Could not load file or assembly
'Microsoft.Exchange.Configuration.RedirectionModule, Version=14.0.0.0,
Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies.
The system cannot find the file specified. (D:\Program Files\Microsoft\Exchange
Server\V14\ClientAccess\PowerShell\web.config line 42)

 

Request information:

    Request URL:
https://ABC.XYZ.LOCAL/PowerShell?PSVersion=2.0

    Request path:
/PowerShell

   

    User: 

    Is authenticated:
False

    Authentication
Type: 

    Thread account
name: NT AUTHORITY\SYSTEM

 

Thread information:

    Thread ID: 7

    Thread account
name: NT AUTHORITY\SYSTEM

    Is impersonating:
False

    Stack trace:    at
System.Web.Configuration.ConfigUtil.GetType(String typeName, String
propertyName, ConfigurationElement configElement, XmlNode node, Boolean
checkAptcaBit, Boolean ignoreCase)

   at
System.Web.Configuration.Common.ModulesEntry..ctor(String

 

looking at the above warning looks like something missed up in the web.config under power shell directory

 

if we edit the web.config we can see a variable called %ExchangeInstallDir% but that variable doesn't exist in the environment variable path, even after we add it still the issue is the same

so what i did here is replace this variable with the physical path as below

 

open web.config

Replace all "file:///%ExchangeInstallDir%" with "file:///D:\Program Files\Microsoft\Exchange Server\" where D is the drive where Exchange is installed

Save the file

iisreset

 

now EMC and EMS should open properly