Deployment and/or Registration Failed C#

梦想与她 提交于 2020-02-07 03:42:09

问题


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.

Please help me!


回答1:


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.



来源:https://stackoverflow.com/questions/15609593/deployment-and-or-registration-failed-c-sharp

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!