4
Vote

Exception Thrown During DSA Key Search

description

Under certain circumstances, the code used by NetSparkleDSAVerificator.TryGetResourceStream throws an exception at asm.GetManifestResourceNames() when the assembly it is checking is dynamic (not file based). Perhaps a try/catch inside the for loop that traps NotSupportedExceptions is in order.

The exception stack follows.

System.NotSupportedException: The invoked member is not supported in a dynamic assembly.
at System.Reflection.Emit.InternalAssemblyBuilder.GetManifestResourceNames()
at AppLimit.NetSparkle.NetSparkleDSAVerificator.TryGetResourceStream(String publicKey)
at AppLimit.NetSparkle.NetSparkleDSAVerificator.ExistsPublicKey(String publicKey)
at AppLimit.NetSparkle.NetSparkleDownloadProgress.Client_DownloadFileCompleted(Object sender, AsyncCompletedEventArgs e)
at System.Net.WebClient.OnDownloadFileCompleted(AsyncCompletedEventArgs e)
at System.Net.WebClient.DownloadFileOperationCompleted(Object arg)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)

comments