Référence d'objet non définie à une instance d'un objet à Microsoft.Exchange.Transporter.InternetProxy.GetWebProxy (rapport IReportProgress)

StackOverflow https://stackoverflow.com/questions/4748546

Question

Je suis en train d'appeler l'applet de commande Set-MSOnlineUserPassword (partie des outils de migration Microsoft Online Services) pour réinitialiser un mot de passe utilisateur BPOS à partir d'une application web fonctionnant sous l'identité Service réseau sur Windows Server 2003 SP2. L'exception suivante est jeté:

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()

Le même code fonctionne bien si je change le compte d'identité du pool d'applications pour utiliser le système local de sorte qu'il semble être une sorte de problème d'autorisation, mais il n'y a pas d'erreurs de sécurité dans le journal des événements. Est-ce que quelqu'un sait ce qui pourrait être l'autorisation spécifique que le compte de service réseau manque?

Était-ce utile?

La solution

Le problème a été résolu en utilisant un compte de domaine au lieu du compte local de service réseau pour exécuter le pool d'application.

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top