Search code examples
c#asp.net-mvcazureseleniumplesk

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


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?


Solution

  • 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.