mirror of
https://github.com/1Remote/1Remote.git
synced 2026-04-25 13:36:03 +03:00
[GH-ISSUE #917] 'ContentType string is invalid' exception thrown at application startup after upgrading #2663
Labels
No labels
area-configuration
area-ct-app
area-ct-rdp
area-ct-remoteapp
area-ct-ssh
area-ct-vnc
area-launcher
area-list
area-tags
area-teamwork
bug
chore
dependencies
general-build/ci
general-performance
general-refactor
general-security
general-supportive
general-ux
meta-documentation
meta-enhancement
meta-enhancement
meta-feature
meta-help-wanted
meta-unknown-error
priority-hi
priority-low
pull-request
question
resolution-duplicate
resolution-invalid
resolution-wontfix
stale
task-put-off
task-still-considering
task-working-in-progress
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/1Remote#2663
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @az-123-none on GitHub (Apr 22, 2025).
Original GitHub issue: https://github.com/1Remote/1Remote/issues/917
Originally assigned to: @VShawn on GitHub.
Describe the bug
应用在更新后启动会弹出“ContentType 字符串无效。要求的格式为 type/subtype。”错误。
To Reproduce
启动即可触发。
Expected behavior
正常启动使用。
Desktop (please complete the following information):
Environment
1.1.2(Built at: 2025-04-09T09:00:23.337+08:00)(Microsoft store).NET Framework 4.84.0.30319.42000Windows 10 Pro 64-bits 10.0.19045.0 (2009) build 19045Additional context
Error Info
ContentType 字符串无效。要求的格式为 type/subtype。
Stack Trace
另一台没有问题,数据库也从有问题的拷贝过去测试过,没有问题。
@VShawn commented on GitHub (Apr 23, 2025):
https://github.com/1Remote/1Remote/blob/main/Ui/App.xaml.cs#L81-L88
App.xaml.cs:line 82 is the
dummy.wav.Play(), @itagagaki do you have any idea of this? Can try-catch be a hotfix solution for the issue?@itagagaki commented on GitHub (Apr 23, 2025):
I don't know but maybe there is no
HKEY_CLASSES_ROOT.wavin the Windows registry?https://stackoverflow.com/questions/1392754
@VShawn commented on GitHub (Apr 23, 2025):
I'm not sure either. anyway I have added the try-catch block and publish a new store release.
@az-123-none commented on GitHub (Apr 24, 2025):
Thanks for solving this problem. It is indeed related to this registry key. Somehow, the 'Content Type' value changed from 'audio/wav' to 'audio'.