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!
4 Replies
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")
$close
If you have no further questions, please use /close to mark the forum thread as answered
(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)