Logged In: NO

Hello,
I had a similar error using msdn,caused by the MsdnHtmlUtilitiesV20.InitializeNamespaces where assemblys returned by GetReferencedAssemblies where not in the gac but part of the Project.

This is a quick but working fix.

public static void InitializeNamespaces(Project project)
{
// If we don't have namespaces list yet, go through each referenced assembly,
// load the assembly, get the types, then cache the namespaces for all public types.
if (namespaces.Count == 0)
{
Dictionary<string,Assembly> ProjectAssemblys=new Dictionary<string,Assembly>();
foreach (AssemblySlashDoc doc in project.AssemblySlashDocs)
{
Assembly theAssembly = Assembly.LoadFrom(doc.Assembly);
if (!ProjectAssemblys.ContainsKey(theAssembly.GetName().ToString()))
ProjectAssemblys.Add(theAssembly.GetName().ToString(),theAssembly);
}

foreach (Assembly theAssembly in ProjectAssemblys.Values)
{

AssemblyName[] assemblies = theAssembly.GetReferencedAssemblies();
foreach (AssemblyName an in assemblies)
{
Assembly assembly=null;
if (ProjectAssemblys.ContainsKey(an.ToString()))
assembly = ProjectAssemblys[an.ToString()];
else
assembly= Assembly.LoadWithPartialName(an.Name);
if (assembly == null)
{
throw new System.IO.FileNotFoundException(String.Concat("Unable to locate the referenced Assembly ", an.Name));
}
Type[] assemblyTypes = assembly.GetTypes();
foreach (Type type in assemblyTypes)
{
if (type.IsPublic)
{
if (type.Namespace == null)
continue;
namespaces[type.Namespace] = type.Namespace.Replace('.', '_') + '_';
namespaces[type.Namespace.Replace(".", "")] = type.Namespace.Replace('.', '_') + '_';
}
}
}
}
}
}
=============================================