-
Notifications
You must be signed in to change notification settings - Fork 65
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
[Bug]: KryptonCustomPaletteBase
Illegal characters in path
#1693
Labels
area:toolkit
All issues related to the toolkit components.
bug
Something isn't working
fixed
This issue has been fixed.
version:90
All things to do with V90.
Milestone
Comments
Can you give some more info please:
|
Yes, so if you try importing & upgrading any custom XML palette in V90, it should trigger the issue. Use the |
Give this a try, as this works normally here with the theme in the code snippet. private void kryptonButton4_Click(object sender, EventArgs e)
{
KryptonManager kryptonManager = new();
string theme = @"D:\Krypton\Theme-Palettes\Palettes\Other\Asphalt_v19.xml";
FileStream fileStream = new FileStream(path: theme, mode: FileMode.Open);
KryptonCustomPaletteBase kryptonCustomPaletteBase = new();
kryptonCustomPaletteBase.ImportWithUpgrade(fileStream);
kryptonManager.GlobalCustomPalette = kryptonCustomPaletteBase;
kryptonManager.GlobalPaletteMode = PaletteMode.Custom;
fileStream.Close();
fileStream.Dispose();
}
|
Merged
Smurf-IV
added a commit
that referenced
this issue
Aug 20, 2024
…ettebase-illegal-characters-in-path * Cleanup #1693
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
area:toolkit
All issues related to the toolkit components.
bug
Something isn't working
fixed
This issue has been fixed.
version:90
All things to do with V90.
Using todays
Alpha
Exception Caught
An unexpected error has occurred:
Class: D:\Development\Krypton\Standard-Toolkit\Source\Krypton Components\Krypton.Toolkit\Controls Toolkit\KryptonCustomPaletteBase.cs
Method: PerformUpgrade
Line: 2288
Message: Illegal characters in path.
Stacktrace:
at System.IO.Path.CheckInvalidPathChars(String path, Boolean checkAdditional)
at System.IO.Path.GetFileName(String path)
at System.IO.StreamReader..ctor(String path, Encoding encoding, Boolean detectEncodingFromByteOrderMarks, Int32 bufferSize, Boolean checkHost)
at System.IO.StreamReader..ctor(String path)
at Krypton.Toolkit.KryptonCustomPaletteBase.PerformUpgrade(Stream stream) in D:\Development\Krypton\Standard-Toolkit\Source\Krypton Components\Krypton.Toolkit\Controls Toolkit\KryptonCustomPaletteBase.cs:line 2259
O&K
The text was updated successfully, but these errors were encountered: