我的程序在VS2017中可以正常运行和构建,但是当我发布项目时,无法在客户现场安装它。
运行setup.exe
对话框时,显示并显示“ ..
无法调用方法“结束验证”,所有元素都尚未验证..,无法在那里找到任何信息..您知道怎么了吗?
[2019-03-06 18:27:31] System.InvalidOperationException
- Det går inte att anropa metoden 'EndValidation' om inte alla element har verifierats. Anrop av 'ValidateEndElement' som motsvarar anrop av 'ValidateElement' kan saknas.
- Källa: System.Xml
- Stackspårning:
vid System.Xml.Schema.XmlSchemaValidator.EndValidation()
vid System.Xml.XsdValidatingReader.Read()
vid System.Deployment.Application.ManifestReader.FromDocument(String localPath, ManifestType manifestType, Uri sourceUri)
vid System.Deployment.Application.DownloadManager.DownloadApplicationManifest(AssemblyManifest deploymentManifest, String targetDir, Uri deploymentUri, IDownloadNotification notification, DownloadOptions options, Uri& appSourceUri, String& appManifestPath)
vid System.Deployment.Application.ApplicationActivator.DownloadApplication(SubscriptionState subState, ActivationDescription actDesc, Int64 transactionId, TempDirectory& downloadTemp)
vid System.Deployment.Application.ApplicationActivator.InstallApplication(SubscriptionState& subState, ActivationDescription actDesc)
vid System.Deployment.Application.ApplicationActivator.PerformDeploymentActivation(Uri activationUri, Boolean isShortcut, String textualSubId, String deploymentProviderUrlFromExtension, BrowserSettings browserSettings, String& errorPageUrl, Uri& deploymentUri)
vid System.Deployment.Application.ApplicationActivator.PerformDeploymentActivationWithRetry(Uri activationUri, Boolean isShortcut, String textualSubId, String deploymentProviderUrlFromExtension, BrowserSettings browserSettings, String& errorPageUrl)
--- Slut på stackspårningen från föregående plats där ett undantag utlöstes ---
vid System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
vid System.Deployment.Application.ApplicationActivator.PerformDeploymentActivationWithRetry(Uri activationUri, Boolean isShortcut, String textualSubId, String deploymentProviderUrlFromExtension, BrowserSettings browserSettings, String& errorPageUrl)
vid System.Deployment.Application.ApplicationActivator.ActivateDeploymentWorker(Object state)