In method MefFileModuleTypeLoader.LoadModuleType call to moduleInfo.Ref returns
string "C:/Users/Yakov/Documents/C%23/Prism45/Source/Quickstarts/Modularity/Desktop/ModularityWithMef/ModularityWithMef.Desktop/bin/Debug/ModularityWithMef.Desktop.ModuleE.dll"
instead of correct one "C:/Users/Yakov/Documents/C#/Prism45/Source/Quickstarts/Modularity/Desktop/ModularityWithMef/ModularityWithMef.Desktop/bin/Debug/ModularityWithMef.Desktop.ModuleE.dll"
Directory name (C#) containing # char causes exception:
InnerException: System.IO.FileNotFoundException
HResult=-2147024893
Message=Could not load file or assembly 'ModularityWithMef.Desktop.ModuleE.dll' or one of its dependencies. The system cannot find the path specified.
Source=mscorlib
FileName=ModularityWithMef.Desktop.ModuleE.dll
FusionLog=""
StackTrace:
at System.Reflection.AssemblyName.nGetFileInformation(String s)
at System.Reflection.AssemblyName.GetAssemblyName(String assemblyFile)
at System.ComponentModel.Composition.Hosting.AssemblyCatalog.LoadAssembly(String codeBase)
at System.ComponentModel.Composition.Hosting.AssemblyCatalog..ctor(String codeBase)
at Microsoft.Practices.Prism.MefExtensions.Modularity.MefFileModuleTypeLoader.LoadModuleType(ModuleInfo moduleInfo) in c:\Users\Yakov\Documents\C#\Prism45\Source\PrismLibrary\Desktop\Prism.MefExtensions\Modularity\MefFileModuleTypeLoader.Desktop.cs:line 112
InnerException: System.IO.DirectoryNotFoundException
HResult=-2147024893
Message=The system cannot find the path specified. (Exception from HRESULT: 0x80070003)
InnerException:
Comments: ** Comment from web user: wolga2 **
string "C:/Users/Yakov/Documents/C%23/Prism45/Source/Quickstarts/Modularity/Desktop/ModularityWithMef/ModularityWithMef.Desktop/bin/Debug/ModularityWithMef.Desktop.ModuleE.dll"
instead of correct one "C:/Users/Yakov/Documents/C#/Prism45/Source/Quickstarts/Modularity/Desktop/ModularityWithMef/ModularityWithMef.Desktop/bin/Debug/ModularityWithMef.Desktop.ModuleE.dll"
Directory name (C#) containing # char causes exception:
InnerException: System.IO.FileNotFoundException
HResult=-2147024893
Message=Could not load file or assembly 'ModularityWithMef.Desktop.ModuleE.dll' or one of its dependencies. The system cannot find the path specified.
Source=mscorlib
FileName=ModularityWithMef.Desktop.ModuleE.dll
FusionLog=""
StackTrace:
at System.Reflection.AssemblyName.nGetFileInformation(String s)
at System.Reflection.AssemblyName.GetAssemblyName(String assemblyFile)
at System.ComponentModel.Composition.Hosting.AssemblyCatalog.LoadAssembly(String codeBase)
at System.ComponentModel.Composition.Hosting.AssemblyCatalog..ctor(String codeBase)
at Microsoft.Practices.Prism.MefExtensions.Modularity.MefFileModuleTypeLoader.LoadModuleType(ModuleInfo moduleInfo) in c:\Users\Yakov\Documents\C#\Prism45\Source\PrismLibrary\Desktop\Prism.MefExtensions\Modularity\MefFileModuleTypeLoader.Desktop.cs:line 112
InnerException: System.IO.DirectoryNotFoundException
HResult=-2147024893
Message=The system cannot find the path specified. (Exception from HRESULT: 0x80070003)
InnerException:
Comments: ** Comment from web user: wolga2 **
This bug has been reported already in 2011. See "Error when place Modularity sample to directory with # in name".