Skip to content

codebase is not supported on assemblies loaded from a single-file bundle #2124

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
ispysoftware opened this issue Apr 7, 2023 · 2 comments
Closed

Comments

@ispysoftware
Copy link

Description

Running on ubuntu linux 20.04 from a published executable using .net 6 I get the error

CodeBase is not supported on assemblies loaded from a single-file bundle.
at System.Reflection.RuntimeAssembly.get_CodeBase()
at PuppeteerSharp.BrowserFetcher.GetExecutablePath() in C:\projects\puppeteer-sharp\lib\PuppeteerSharp\BrowserFetcher.cs:line 356
at PuppeteerSharp.BrowserFetcher..ctor() in C:\projects\puppeteer-sharp\lib\PuppeteerSharp\BrowserFetcher.cs:line 53

Expected behavior:

Loads and does it's thing

Actual behavior:

crashes

Versions

9.0.2

.Net 6.0 app published as a single file

@jnyrup
Copy link
Contributor

jnyrup commented Apr 7, 2023

This sounds like #2088 which hasn't been released yet.

@kblok
Copy link
Member

kblok commented Apr 9, 2023

v9.1 was released. Enjoy!

@kblok kblok closed this as completed Apr 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants