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.

Cannot Start Web App on Linux

See original GitHub issue

I created a blank Avalonia template for cross-platform app. I open it in Jetbrains Rider.

I try to debug the Web project in FireFox. It requests to install Microsoft.AspNetCore.Components.WebAssembly.DevServer so I do.

If I try to debug, now I get this error

class com.intellij.ide.browsers.firefox.FirefoxSettings cannot be cast to class com.intellij.ide.browsers.chrome.ChromeSettings (com.intellij.ide.browsers.firefox.FirefoxSettings and com.intellij.ide.browsers.chrome.ChromeSettings are in unnamed module of loader com.intellij.util.lang.PathClassLoader @769c9116)

If I run the app without debugging, I get a blank page in my browser.

I have a separate Blazor project that runs fine.

OS: Garuda Linux (Arch-based) Avalonia v11 preview 4 and 5

Issue Analytics

  • State:open
  • Created 7 months ago
  • Comments:14 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
timuniecommented, Feb 17, 2023

I think @amwx is working on a new solution for the Windowing stuff which will remove this limitation. See also https://github.com/amwx/FluentAvalonia/pull/307

0reactions
maxkatz6commented, Feb 17, 2023

how can I define the StyleInclude in the .Desktop project

I assume it’s an app and not dialogs library. In this case, if your .Desktop project has BuildAvaloniaApp, you can add “.AfterSetup()” there and add style from C# code directly to the Application.Current.

Ideally, FluentAvalonia.UI.Windowing shouldn’t reference Avalonia.Desktop project. But IIRC there was some specific reason for that on their side.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Azure webapp on linux not starting
We are publishing a dotnet 6 app to a webapp running on a linux plan. In the logs we find the following error:....
Read more >
My app not starting anymore - Microsoft Q&A
I tried to check all logs, from Azure portal, regarding application, deployment, and container logs. In some logs in "container crash" it says ......
Read more >
My Azure Web Application on Linux is not working. The ...
1 Answer 1 ... Deploy the build folder generated after npm run build to the /home/site/wwwroot folder path. Then add startup command on...
Read more >
How To Troubleshoot Common Site Issues on a Linux Server
If your web server was unable to start, this is usually an indication that your configuration files need some attention.
Read more >
[SOLVED] Applications won't launch with no error messages
Hi At first I have to say that I've been a Linux Mint user since yesterdeay. My problem is that, some new applications...
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