Before Windows updated recently, I could run Phantomjs with C# code in Visual Studio 2017. Now, I could not run it.
page = webpage.create();
page.open('index.html', function (status) {
--> status is fail
But I tried to run Phantom.exe in CMD, it was successful.
Below is my code in C# that did not change for a while:
Process.Start(new ProcessStartInfo
{
UseShellExecute = false,
CreateNoWindow = false,
FileName = exeDir + "phantomjs.exe",
WorkingDirectory = workingDir,
Arguments = "--local-to-remote-url-access=true " + jsFile + " " + port
});
I tried to install IIS in Windows and Visual but also failed: https://www.itnota.com/install-iis-windows/
https://docs.microsoft.com/en-us/aspnet/core/host-and-deploy/iis/development-time-iis-support?view=aspnetcore-2.2 (I am using .Net but not .NetCore)
Aucun commentaire:
Enregistrer un commentaire