部署和/或注册失败C#

时间:2013-03-25 07:18:31

标签: c# compact-framework emulation device assembly-references

我在C#中有一个设备应用程序(Compact Framework)。当我调试我的解决方案时,我收到此错误:

Error   1   Deployment and/or registration failed with error: 0x8973190e. Error writing file   '%csidl_program_files%\hhrcv_app\system.windows.forms.dll'. Error 0x80070070: There is not enough space on the disk.
Device Connectivity Component   

我已经对此做了一些研究,并试图删除并添加引用。也很难重置模拟器,但仍然没有。

请帮助我!

1 个答案:

答案 0 :(得分:1)

Compact Framework应用程序无法使用Windows窗体DLL。这里最有可能发生的事情是,您要么直接引用桌面程序集,要么是通过依赖项。这导致Visual Studio检测到它需要桌面框架DLL,然后它尝试推送到设备。由于这些文件非常大,因此空间不足(即使它有空间,也无法运行)。

您需要返回到项目并删除对任何桌面装配或可能反过来引用它们的装配的所有引用。