C
C#3mo ago
stigzler

Pack URIs do my bloody head in - help needed

See image for setup. I'm getting a file not found on GreyscaleEffect.ps. As far as i can see and following the MS guidance, this path should be right. GrayscaleEffect.ps is set to Resource so should be being built into the assembly. Bane of my life these bloody Pack URIs!
No description
4 Replies
stigzler
stigzlerOP3mo ago
Error: System.TypeInitializationException HResult=0x80131534 Message=The type initializer for 'WpfWorkspace.GrayscaleEffect' threw an exception. Source=WpfWorkspace This exception was originally thrown at this call stack: [External Code] WpfWorkspace.GrayscaleEffect.New() in GrayscaleEffect.vb Inner Exception 1: NotSupportedException: The URI prefix is not recognized. Nemmind - figured it - it was because it was in a referneced assembly: .UriSource = New Uri("pack://application:,,,/WpfWorkspace;component/ShaderEffects/GrayscaleEffect.ps")
canton7
canton72mo ago
$close
MODiX
MODiX2mo ago
If you have no further questions, please use /close to mark the forum thread as answered
canton7
canton72mo ago
(Note how the information needed to give an answer wasn't in your question. This is why writing a detailed question with a lot of information, even if it doesn't seem relevant to you, is important)
Want results from more Discord servers?
Add your server