我有一个应用程序要从 vb6 转换为 vb.net 2.0/3.5。使用 Subsonic 2.2 和 vb.net Interop Toolkit 2005。似乎无法使用 subsonic 获得 .net 表单以在互操作环境中工作。它一直说在 app.config 中找不到亚音速服务提供商。但我知道它就在那里。有没有人成功地同时使用这两个工具包?亚音速甚至会以这种方式在互操作环境中工作吗?提前致谢!
1 回答
0
需要在应用程序使用的任何主要配置文件中声明提供程序(可能不是 web.config)。此外,将 SubSonicService 设置为 configSections 中的第一个元素可能会有所帮助。
<configuration>
<configSections>
<section name="SubSonicService" type="SubSonic.SubSonicSection, SubSonic" allowDefinition="MachineToApplication" restartOnExternalChanges="true" requirePermission="false"/>
</configSections>
<!--Other stuff-->
</configuration>
于 2009-11-12T06:03:14.277 回答