Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

You cannot create a remote connection to a Microsoft Exchange Server 2010-based server when you use the remote feature in Windows PowerShell 2.0


View products that this article applies to.

Symptoms

Windows PowerShell 2.0 provides support that lets you remotely execute cmdlet commands and cmdlet scripts. However, you cannot remotely connect to a Microsoft Exchange Server 2010-based server when you use the remote feature in Windows PowerShell 2.0. Additionally, the following events are logged in the Application log:
Log Name: Application
Source: MSExchange Configuration Cmdlet - Management Shell
Date: <Date>
Event ID: 49
Task Category: RBAC
Level: Error
Keywords: Classic
User: N/A
Computer: <Computer Name>
Description:
(Process w3wp.exe, PID 5016) "RBAC authorization is unavailable due to an exception in opening web configuration. Exception: System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
at System.Web.Hosting.UnsafeIISMethods.MgdGetSiteNameFromId(UInt32 siteId, IntPtr& bstrSiteName, Int32& cchSiteName)
at System.Web.Configuration.ProcessHostConfigUtils.GetSiteNameFromId(UInt32 siteId)
at System.Web.Configuration.ProcessHostMapPath.System.Web.Configuration.IConfigMapPath.ResolveSiteArgument(String siteArgument, String& siteName, String& siteID)
at System.Web.Configuration.WebConfigurationHost.GetConfigPaths(IConfigMapPath configMapPath, WebLevel webLevel, VirtualPath virtualPath, String site, String locationSubPath, VirtualPath& appPath, String& appSiteName, String& appSiteID, String& configPath, String& locationConfigPath)
at System.Web.Configuration.WebConfigurationHost.InitForConfiguration(String& locationSubPath, String& configPath, String& locationConfigPath, IInternalConfigRoot configRoot, Object[] hostInitConfigurationParams)
at System.Configuration.Configuration..ctor(String locationSubPath, Type typeConfigHost, Object[] hostInitConfigurationParams)
at System.Configuration.Internal.InternalConfigConfigurationFactory.System.Configuration.Internal.IInternalConfigConfigurationFactory.Create(Type typeConfigHost, Object[] hostInitConfigurationParams)
at System.Web.Configuration.WebConfigurationHost.OpenConfiguration(WebLevel webLevel, ConfigurationFileMap fileMap, VirtualPath path, String site, String locationSubPath, String server, String userName, String password, IntPtr tokenHandle)
at System.Web.Configuration.WebConfigurationManager.OpenWebConfiguration(String path, String site)
at Microsoft.Exchange.Configuration.Authorization.ExchangeAuthorizationPlugin.OpenWebConfig(String host, String vdirPath, String& webSiteName)
Log Name: Application
Source: Application Error
Date: <Date>
Event ID: 1000
Task Category: (100)
Level: Error
Keywords: Classic
User: N/A
Computer: < Computer>
Description:
Faulting application name: w3wp.exe, version: 7.5.7600.16385, time stamp: 0x4a5bd0eb
Faulting module name: webengine.dll, version: 2.0.50727.4927, time stamp: 0x4a274a39
Exception code: 0xc0000005
Fault offset: 0x00000000000874a5
Faulting process id: 0x1398
Faulting application start time: 0x01ca437746f9fc81
Faulting application path: c:\windows\system32\inetsrv\w3wp.exe
Faulting module path: C:\Windows\Microsoft.NET\Framework64\v2.0.50727\webengine.dll
Report Id: 8758d744-af6a-11de-bce2-0025b3219ba4

↑ Back to the top


Cause

This issue occurs because the .NET Extensibility role services are not enabled under the Internet Information Services (IIS) 7.0 server role. When the .NET Extensibility role services that are under the IIS 7.0 server role are not enabled, the Webengine.dll file is not registered in the IIS 7.0 global module list. Therefore, a role-based access control (RBAC) authorization throws an access violation exception when you try to open a Webconfig.xml file. This behavior causes the remote connection to fail.

↑ Back to the top


Resolution

To resolve this issue, enable the .NET Extensibility role services under the IIS 7.0 server role. For more information about how to enable the .NET Extensibility role services, visit the following Microsoft Web site:

http://technet.microsoft.com/en-us/library/bb691354.aspx

↑ Back to the top


Status

Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.

↑ Back to the top


Keywords: KB977962, kbsurveynew, kbtshoot, kbexpertiseinter

↑ Back to the top

Article Info
Article ID : 977962
Revision : 2
Created on : 12/18/2009
Published on : 12/18/2009
Exists online : False
Views : 438