未将对象引用设置为 Microsoft.Exchange.Transporter.InternetProxy.GetWebProxy(IReportProgress 报告)中的对象实例
我正在尝试调用 Set-MSOnlineUserPassword cmdlet(Microsoft Online Services 迁移工具的一部分),以从 Windows Server 2003 SP2 上的网络服务标识下运行的 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()
如果我将应用程序池身份帐户更改为使用本地系统,则相同的代码运行正常,因此这似乎是某种权限问题,但事件日志中没有安全错误。有谁知道网络服务帐户缺少的特定权限可能是什么?
I'm trying to call the Set-MSOnlineUserPassword cmdlet (part of the Microsoft Online Services Migration Tools) to reset a BPOS user password from a web application running under Network Service identity on Windows Server 2003 SP2. The following exception gets thrown:
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()
The same code runs fine if I change the app pool identity account to use Local System so it appears to be some kind of permission issue but there are no security errors in the Event Log. Does anyone know what could be the specific permission that the Network Service account is missing?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
通过使用域帐户而不是本地网络服务帐户来运行应用程序池解决了该问题。
The problem was resolved by using a domain account instead of the local Network Service account to run the app pool.