browser.NewPageAsync() dies in IIS
See original GitHub issuebrowser.NewPageAsync() dies in IIS same problem as #375
Hello again, today I found a issue that was asked before on #375, the browser.NewPageAsync
is not returning anything, don’t know if there is an argument missing (probably not), or there was something that wasn’t right at the master code, so i tried to find a solution, i’ve kinda made it work but unfortunatly, i can’t find how can i open the other ISS’ port (something like that but this part doesn’t matter, just know that it worked), and when i tried to migrate the code the other side, it blow up
There is some part of my code
Remember, Im using my addon, so any method missing Async
, is my doing
private Browser GetBrowser()
{
loggerFactory = new LoggerFactory();
return PuppeteerEx.Launch(new LaunchOptions()
{
Headless = true,
ExecutablePath = _ExecutionPath_, //It goes to the HostingEnvirounment
LogProcess = true,
},
loggerFactory;
);
private Page GetNavigatedPage(Browser browser)
{
Page page = browser.NewPage();
page.GoTo(Link, 30000);
return page;
}
catch (Exception e)
{
Debug.WriteLine(e);
throw e.GetBaseException();
}
private Page GetPage()
{
var browser = GetBrowser();
var Navigate = GetNavigatedPage(browser);
return Navigate;
}
}
Issue Analytics
- State:
- Created 5 years ago
- Comments:47 (21 by maintainers)
Top Results From Across the Web
browser.NewPageAsync() dies in IIS · Issue #736
We have a dotnet core 2.1 application running on IIS 7.5 using puppeteer-sharp 1.9. The server is windows 2008 R2. When is called...
Read more >PuppeteerSharp Target Crashed Exception on form submit
The function looks a little bit like this: //Browserless Browser var connectOptions = new ConnectOptions() { BrowserWSEndpoint = "wss://chrome.
Read more >Search existing .NET feedback
Hello,. I have an issue with Browserlink and .net Core 3.0 the Browserlink dashboard shows Chrome connected and looks like its working, ...
Read more >Use PuppeteerSharp.Browser.NewPageAsync in ...
Use the NewPageAsync method in PuppeteerSharp package in your next Puppeteer-sharp project with LambdaTest Automation Testing Advisor.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@lucascebertin I don’t think so. I read a little bit about this issue and the problem is that ASP.NET thread management. I can’t confirm it yet, but it seems that ASP.NET is assigning only one thread per request and that deadlocks the execution because it doesn’t allow the connection (which is using
Task.Run
to listen to new messages.I bet I’ll be working on this after I release 1.10.
@willsbctm @taz4270 reproduced guys.