Hosting a selenium app on GoDaddy. “This program is blocked by group policy”

孤人 提交于 2019-12-24 08:23:14

问题


I have built a standard ASP.NET MVC (.NET 4.52) app and hosted it with GoDaddy on their Plesk hosting. It calls a class that uses Selenium, I'm using PhantomJS as the web client.

In my services controller that calls the class that references Selenium I get the error:

[Win32Exception (0x80004005): This program is blocked by group policy. For more information, contact your system administrator]
   System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo) +1900
   System.Diagnostics.Process.Start() +119
   OpenQA.Selenium.DriverService.Start() +173

Others note this fix, but I've already added:

<trust level="Full" originUrl="" />

This helped for the getting the site up and running, but does nothing for this part of the application. Perhaps I'm just in a situation where plesk doesnt support this, or perhaps there is another trust level setting or selenium configuration that I'm missing?

Is anyone aware of a way around this error?


回答1:


After a little help from @mason and going the rounds with GoDaddy support, their solution was to buy their VPS package.

I opted for an Azure App service running a WebJob as detailed here:

http://blog.nultien.rs/nul-tien-blog/azure-webjob-selenium-webdriver-and-browserstack

(Azure webjobs didnt work, here's why)

Azure WebJobs cannot access "localhost" and PhantomJS requires localhost to run.

WebBrowser (which is IE based) uses GDI+ so it has similar problems.

I have moved to a VM solution.



来源:https://stackoverflow.com/questions/42120015/hosting-a-selenium-app-on-godaddy-this-program-is-blocked-by-group-policy

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!