无法安装vs 利用clickonce发布的程序,提示应用程序无法启动

之前是能够正常安装的,我在电脑上安装vs2015时出了点问题,成功安装上vs2015时就出现无法安装vs发布的程序了。
错误页面如下:


错误日志为:
PLATFORM VERSION INFO
Windows : 10.0.17134.0 (Win32NT)
Common Language Runtime : 4.0.30319.42000
System.Deployment.dll : 4.7.3056.0 built by: NET472REL1
clr.dll : 4.7.3468.0 built by: NET472REL1LAST_C
dfdll.dll : 4.7.3056.0 built by: NET472REL1
dfshim.dll : 10.0.17134.1 (WinBuild.160101.0800)

SOURCES
Deployment url : http://cnalcluoapp89/ClientPrograms/eTrace%5bOne2One-CVMS%5d/eTrace%5BO2O-CVMS%5D-CN1.application

ERROR SUMMARY
Below is a summary of the errors, details of these errors are listed later in the log.
* Activation of http://cnalcluoapp89/ClientPrograms/eTrace%5bOne2One-CVMS%5d/eTrace[O2O-CVMS]-CN1.application resulted in exception. Following failure messages were detected:
+ The type initializer for 'System.Net.ServicePointManager' threw an exception.
+ The type initializer for 'System.Net.ComNetOS' threw an exception.
+ Configuration system failed to initialize
+ Unrecognized configuration section startup. (C:\Windows\Microsoft.NET\Framework64\v4.0.30319\dfsvc.exe.Config line 2)

COMPONENT STORE TRANSACTION FAILURE SUMMARY
No transaction error was detected.

WARNINGS
There were no warnings during this operation.

OPERATION PROGRESS STATUS
* [5/29/2020 8:57:42 AM] : Activation of http://cnalcluoapp89/ClientPrograms/eTrace%5bOne2One-CVMS%5d/eTrace[O2O-CVMS]-CN1.application has started.

ERROR DETAILS
Following errors were detected during this operation.
* [5/29/2020 8:57:42 AM] System.TypeInitializationException
- The type initializer for 'System.Net.ServicePointManager' threw an exception.
- Source: System
- Stack trace:
at System.Net.ServicePointManager.EnsureConfigurationLoaded()
at System.Deployment.Application.SystemNetDownloader.DownloadAllFiles()
at System.Deployment.Application.FileDownloader.Download(SubscriptionState subState, X509Certificate2 clientCertificate)
at System.Deployment.Application.DownloadManager.DownloadManifestAsRawFile(Uri& sourceUri, String targetPath, IDownloadNotification notification, DownloadOptions options, ServerInformation& serverInformation)
at System.Deployment.Application.DownloadManager.DownloadDeploymentManifestDirectBypass(SubscriptionStore subStore, Uri& sourceUri, TempFile& tempFile, SubscriptionState& subState, IDownloadNotification notification, DownloadOptions options, ServerInformation& serverInformation)
at System.Deployment.Application.DownloadManager.DownloadDeploymentManifestBypass(SubscriptionStore subStore, Uri& sourceUri, TempFile& tempFile, SubscriptionState& subState, IDownloadNotification notification, DownloadOptions options)
at System.Deployment.Application.ApplicationActivator.PerformDeploymentActivation(Uri activationUri, Boolean isShortcut, String textualSubId, String deploymentProviderUrlFromExtension, BrowserSettings browserSettings, String& errorPageUrl, Uri& deploymentUri)
at System.Deployment.Application.ApplicationActivator.PerformDeploymentActivationWithRetry(Uri activationUri, Boolean isShortcut, String textualSubId, String deploymentProviderUrlFromExtension, BrowserSettings browserSettings, String& errorPageUrl)
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Deployment.Application.ApplicationActivator.PerformDeploymentActivationWithRetry(Uri activationUri, Boolean isShortcut, String textualSubId, String deploymentProviderUrlFromExtension, BrowserSettings browserSettings, String& errorPageUrl)
at System.Deployment.Application.ApplicationActivator.ActivateDeploymentWorker(Object state)
--- Inner Exception ---
System.TypeInitializationException
- The type initializer for 'System.Net.ComNetOS' threw an exception.
- Source: System
- Stack trace:
at System.Net.ServicePointManager..cctor()
--- Inner Exception ---
System.Configuration.ConfigurationErrorsException
- Configuration system failed to initialize
- Source: System.Configuration
- Stack trace:
at System.Configuration.ConfigurationManager.PrepareConfigSystem()
at System.Configuration.ConfigurationManager.get_AppSettings()
at System.Windows.Forms.DpiHelper.Initialize()
--- Inner Exception ---
System.Configuration.ConfigurationErrorsException
- Unrecognized configuration section startup. (C:\Windows\Microsoft.NET\Framework64\v4.0.30319\dfsvc.exe.Config line 2)
- Source: System.Configuration
- Stack trace:
at System.Configuration.ConfigurationSchemaErrors.ThrowIfErrors(Boolean ignoreLocal)
at System.Configuration.BaseConfigurationRecord.ThrowIfParseErrors(ConfigurationSchemaErrors schemaErrors)
at System.Configuration.ClientConfigurationSystem.EnsureInit(String configKey)

COMPONENT STORE TRANSACTION DETAILS
No transaction information is available.



我尝试像网上所说删除C:\Users\username\AppData\Local\Apps\2.0,还是无法安装。
我猜测应该是clickonce缓存或者什么出错,但是不知道怎么解决这个。
求大神指点!

...全文
468 3 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
  • 打赏
  • 举报
回复
估计是缺少了一些 .net framework 高版本的组件,需要更新 .net framework 到最新版本。
  • 打赏
  • 举报
回复
唉,重装系统解决了该问题,各位尽情回答,我给分。
  • 打赏
  • 举报
回复
呃呃呃,没人吗

7,774

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 非技术区
社区管理员
  • 非技术区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧