Web API サービスから Selenium PhantomJS ドライバーを実行する権限に問題があると思います。さまざまな管理者アカウントを使用してサービスの偽装を試みましたが、それでも同じエラーが発生します。エラーをスローしている構成ファイルを特定するにはどうすればよいですか? process.StandardOutput.ReadToEnd() を印刷すると、このエラーが発生します。
System.Configuration.ConfigurationErrorsException: Configuration system failed to initialize
---> System.Configuration.ConfigurationErrorsException: An error occurred loading a configuration file: Access is denied.
---> System.Security.SecurityException: Access is denied.
at System.Security.Principal.WindowsIdentity.SafeImpersonate(SafeTokenHandle userToken, WindowsIdentity wi, StackCrawlMark& stackMark)
at System.Security.Principal.WindowsIdentity.SafeRevertToSelf(StackCrawlMark& stackMark)
at System.Security.Principal.WindowsIdentity.Impersonate(IntPtr userToken)
at System.Configuration.ClientConfigurationHost.Impersonate()