Skip to content
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

Filepicker crashes with error "Value does not fall within the expected range" on Windows (10) when the app is distributed as exe #10577

Closed
peno64 opened this issue Oct 9, 2022 · 3 comments
Labels
area-publishing Issues with the app packaging/publishing process (ipk/apk/msix/trimming) platform/windows 🪟 s/needs-repro Attach a solution or code which reproduces the issue t/bug Something isn't working

Comments

@peno64
Copy link

peno64 commented Oct 9, 2022

Description

The filepicker works just fine when compiled such that the app will be distributed as msix. Both in visual studio in debug mode as when run outsite VS.
When compiled such that the output is an exe (I followed following procedure for this: https://blog.verslu.is/maui/dotnet-maui-windows-unpackaged-apps/) then it crashes after selecting a file with the error "Value does not fall within the expected range" after a file is chosen. This both in debug mode from visual studio and when the exe is run.
I am not the only person having this problem since it is also reported on stackoverflow: https://stackoverflow.com/questions/73282083/net-maui-ifilepicker-error-value-does-not-fall-within-the-expected-range-if-b

Installed Workload Ids Manifest Version Installation Source

maui-windows 6.0.536/6.0.400 VS 17.3.32922.545

Steps to Reproduce

Link to public reproduction project repository

Version with bug

Unknown/Other (please specify)

Last version that worked well

Unknown/Other

Affected platforms

Windows

Affected platform versions

maui-windows 6.0.536/6.0.400 VS 17.3.32922.545

Did you find any workaround?

No

Relevant log output

No response

@peno64 peno64 added the t/bug Something isn't working label Oct 9, 2022
@rmarinho rmarinho added the s/needs-repro Attach a solution or code which reproduces the issue label Oct 10, 2022
@ghost
Copy link

ghost commented Oct 10, 2022

Hi @peno64. We have added the "s/needs-repro" label to this issue, which indicates that we require steps and sample code to reproduce the issue before we can take further action. Please try to create a minimal sample project/solution or code samples which reproduce the issue, ideally as a GitHub repo that we can clone. See more details about creating repros here: https://github.com/dotnet/maui/blob/main/.github/repro.md

This issue will be closed automatically in 7 days if we do not hear back from you by then - please feel free to re-open it if you come back to this issue after that time.

@rmarinho rmarinho added the area-publishing Issues with the app packaging/publishing process (ipk/apk/msix/trimming) label Oct 10, 2022
@rmarinho
Copy link
Member

Duplicate of #10313

@rmarinho rmarinho marked this as a duplicate of #10313 Oct 10, 2022
@rmarinho
Copy link
Member

rmarinho commented Oct 10, 2022

This is going to be fixed on 7.0.100-rc2

@ghost ghost locked as resolved and limited conversation to collaborators Nov 9, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-publishing Issues with the app packaging/publishing process (ipk/apk/msix/trimming) platform/windows 🪟 s/needs-repro Attach a solution or code which reproduces the issue t/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants