0
我想加载一个模块使用配置文件,但不断得到以下异常。无法加载模块使用配置文件
An exception occurred while initializing module 'HelloWorld'.
- The exception message was: The method or operation is not implemented.
- The Assembly that the module was trying to be loaded from was:HelloWorld, Version=1.0.0.0,
Culture=neutral, PublicKeyToken=null
Check the InnerException property of the exception for more information. If the exception
occurred while creating an object in a DI container, you can exception.GetRootException()
to help locate the root cause of the problem.
我有以下的App.config文件。
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<configSections>
<section name="modules" type="Microsoft.Practices.Prism.Modularity.ModulesConfigurationSection, Microsoft.Practices.Prism"/>
</configSections>
<modules>
<module assemblyFile="HelloWorld.dll" moduleType="HelloWorld.HelloWorldModule, HelloWorld, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null" moduleName="HelloWorld" startupLoaded="true" />
</modules>
</configuration>
我有双重检查的DLL名称,空间和类型的名字,我甚至从头开始重新创建该项目,但错误依然出现。请帮我解决这个问题,因为我已经坚持了几个小时。谢谢。