未将对象引用设置为 Microsoft.Exchange.Transporter.InternetProxy.GetWebProxy(IReportProgress 报告)中的对象实例

发布于 2024-10-13 22:08:04 字数 1380 浏览 5 评论 0原文

我正在尝试调用 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

半山落雨半山空 2024-10-20 22:08:04

通过使用域帐户而不是本地网络服务帐户来运行应用程序池解决了该问题。

The problem was resolved by using a domain account instead of the local Network Service account to run the app pool.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文