2017-01-19 50 views
2

我的项目发布C#项目运行Visual Studio中很好,但是当我发布,并尝试在同一开发计算机上它运行setup.exe,我得到一个错误:从Visual Studio 2015的无效清单

+ Exception reading manifest from file:///C:/Game/Application%20Files/F1_1_0_0_9/F1.exe.manifest: the manifest may not be valid or the file could not be opened. 
    + Parsing and DOM creation of the manifest resulted in error. Following parsing errors were noticed: 
     -HRESULT: 0x8007001f 
     Start line: 0 
     Start column: 0 
     Host file:  
    + A device attached to the system is not functioning. (Exception from HRESULT: 0x8007001F) 

我试过禁用ClickOnce清单的签名,这只是给了我一个不同的错误。

回答

1

在尝试了数百万件事情之后,例如以不同的方式签署清单,使用不同版本的.NET删除/添加可识别dpi的标志到清单,等等,我设法通过从我的解决方案中删除清单文件来解决它。惊人。