我已经使用第 3 方 dll 将桌面应用程序部署到测试终端服务器,以报告其可行性。在我的测试中,我收到了这个错误:
An unhandled exception of type 'System.IO.FileNotFoundException' occurred in General Purpose.dll
Additional information: Creating an instance of the COM component with CLSID {8EB296F1-6C46-4BC1-9F00-B49F14B57DB8} from the IClassFactory failed due to the following error: 800a0035.
它在创建新的第三方类(对应用程序至关重要的类)时发生。据我所知,这是唯一存在此类问题的第三方类,但也是此 DLL 中唯一的一个。
该应用程序使用 ClickOnce 正确部署以供普通桌面使用,但不适用于 TS 会话或服务器控制台。
所有 DLL 都设置为“复制本地”,并且我已经确认它们已复制到用户本地设置“Apps\2.0\crazylongnamehere”文件夹中。
我选择了发布路线(通过 MSI),因为我们目前有胖客户端,并且随着时间的推移,瘦客户端将慢慢集成。