question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

browser.NewPageAsync() dies in IIS

See original GitHub issue

browser.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:closed
  • Created 5 years ago
  • Comments:47 (21 by maintainers)

github_iconTop GitHub Comments

1reaction
kblokcommented, Nov 22, 2018

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

1reaction
kblokcommented, Nov 8, 2018

@willsbctm @taz4270 reproduced guys.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found