之前是能够正常安装的,我在电脑上安装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缓存或者什么出错,但是不知道怎么解决这个。
求大神指点!