Hello
This exception happens deep in the internals of the .NET framework itself, most probably because one or more assemblies in the AppDomain return their CodeBase as empty string.
Could you run code like this (ie to enumerate all assemblies in the domain and to show their CodeBase):
foreach (Assembly asm in AppDomain.CurrentDomain.GetAssemblies())
{
if (asm.IsDynamic)
continue;
System.Diagnostics.Debug.WriteLine(asm.Name + " - " + asm.EscapedCodeBase);
}
This would greatly help to pinpoint the cause of this issue.
Thanks in advance