问题
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