Loading a .pub file from a MemoryStream:
var parser = PubFactory.CreateParser(mem);
var pubDoc = parser.Parse();
Throws [System.Collections.Generic.KeyNotFoundException] {“The given key was not present in the dictionary.”}
Stack Trace:
at System.ThrowHelper.ThrowKeyNotFoundException()
at System.Collections.Generic.SortedDictionary2.get_Item(TKey key) at #=zNvi0V8bnO5mIKOTwtTttmL4=.#=zcc6OK2YD2phV7rpknRBEgbk=.#=znsyyPnZkMV49BtN1fg==(#=zJNVWi1G959UFmQ1RXUhy5O0= #=zmSFuVeo=) at System.Linq.Enumerable.FirstOrDefault[TSource](IEnumerable
1 source, Func`2 predicate)
at #=zNvi0V8bnO5mIKOTwtTttmL4=.#=zxs5EbES8rq70(Document #=zna1U23o=)
at #=zNvi0V8bnO5mIKOTwtTttmL4=.Parse()