我正在尝试调用Set-MSOnlineUserPassword cmdlet ( Microsoft Online Services Migration Tools的一部分),以便从在Windows Server2003 SP2上的Network Service identity下运行的web应用程序重置BPOS用户密码。抛出以下异常:
System.NullReferenceException: Object reference not set to an instance of an object.
at Microsoft.Exchange.Transporter.InternetProxy.GetWebProxy(IReportProgress report)
at Microsoft.Exchange.Transporter.Provider.MicrosoftOnline.MicrosoftOnlineSessionContext.GetAWSProxy(IReportProgress report)
at Microsoft.Exchange.Transporter.Provider.MicrosoftOnline.MicrosoftOnlineSessionContext..ctor(ScenarioStep step, ScenarioConfig config)
at Microsoft.Exchange.Transporter.Provider.MicrosoftOnline.MicrosoftOnlineUserActivator.OpenTargetSession(ScenarioStep step, ScenarioConfig config)
at Microsoft.Exchange.Transporter.ScenarioDirector.PrepareToExecute()
at Microsoft.Exchange.Transporter.ScenarioDirector.ConfigureSession(ScenarioConfig config)
at Microsoft.Exchange.Transporter.PSI.BaseTask.PrepScenario()
at Microsoft.Exchange.Transporter.PSI.BaseTask.BeginProcessing()
at Microsoft.Exchange.Transporter.PSI.SetXsMicrosoftOnlineUserPassword.BeginProcessing()
at System.Management.Automation.Cmdlet.DoBeginProcessing()
at System.Management.Automation.CommandProcessorBase.DoBegin()如果我将应用程序池身份帐户更改为使用本地系统,则相同的代码可以正常运行,这样看起来就像是某种权限问题,但在事件日志中没有安全错误。有人知道Network Service帐户缺少的特定权限是什么吗?
发布于 2011-07-22 10:42:16
已通过使用域帐户而不是本地网络服务帐户来运行应用程序池来解决此问题。
https://stackoverflow.com/questions/4748546
复制相似问题