I m 获得未经许可的AccessException(“有效交叉读取”) 在背景(校友)下实施以下法规时,这种预期行为吗?
var uri = new Uri("resourcevault/images/defaultSearch.png", UriKind.Relative);
var info = Application.GetResourceStream(uri);
// this line throws exception....
this.defaultSearchImage = new BitmapImage();