部署和/或注册失败C# [英] Deployment and/or Registration Failed C#

查看:317
本文介绍了部署和/或注册失败C#的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在C#中有一个Device-application(紧凑框架)。调试解决方案时,出现以下错误:

I have a Device-application (Compact Framework) in C#. When I Debug my solution I get this error:

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   

我已经对此进行了一些研究,并尝试删除并添加参考回来。也可以硬重置仿真器,但仍然一无所获。

I have done some research about this and tried to remove and add the References back. Also hard reset the Emulator but still nothing.

请帮助我!

推荐答案

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

Compact Framework applications can not use Windows Forms DLLs. What it most likely happening here is that either you are directly referencing a desktop assembly, or you are through a dependency. That is causing Visual Studio to detect that it needs the desktop framework DLLs, which it then tries to push to the device. Since these files are quite large, it's running out of space (though even if it had space, it would fail to run).

您需要返回项目并删除对所有桌面程序集或可能反过来引用它们的程序集的所有引用。

You need to go back to your project and remove all references to any desktop assemblies or to assemblies that might in turn reference them.

这篇关于部署和/或注册失败C#的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆