HelloWorld控制台应用程序无法使用ClickOnce发布

时间:2013-06-05 00:23:44

标签: visual-studio clickonce

提前谢谢。使用我的VisualStudio / ClickOnce发布我总是遇到以下错误。

ERROR SUMMARY
Below is a summary of the errors, details of these errors are listed later in the log.
* Activation of C:\Users\carlos\Documents\visual studio 2012\Projects\ConsoleApplication1\ConsoleApplication1\publish\ConsoleApplication1.application resulted in exception. Following failure messages were detected:
    + Configuration system failed to initialize
    + Unrecognized configuration section startup. (C:\Windows\Microsoft.NET\Framework64\v4.0.30319\dfsvc.exe.Config line 2)

dfsvc.exe.Config是:

<configuration> <startup useLegacyV2RuntimeActivationPolicy="false"> <supportedRuntime version="v4.0" sku="client" /> </startup> </configuration>

我应该在我的电脑上安装什么东西?再次感谢。

1 个答案:

答案 0 :(得分:0)

我找到了一个解决方案, 我不确切知道哪个是修复,我做了三个步骤:

1 - 我修复了.net fx intallation
2 - Ran mage -cc清除clickonce商店
3 - 重新启动

感谢