Click once deployment error - the manifest may not be valid or the file could not be opened
-
Monday, March 05, 2012 4:13 PM
Hi,
I have a click once deployed WPF application that is signed by a certificate. After the last deploy when trying I cant install the application. I receive the flowing error :
(I have not modified the manifest file manually, every thing is generated automatically)
ERROR SUMMARY
Below is a summary of the errors, details of these errors are listed later in the log.
* Activation of http://lnx-devgold7:3600/netraclauncher_DOTNET/deploy/BSClientMain.application?AppName=NetracAdminShell&Splash=CloseSplash&AppAliasName=PMM_Admin&JCORESESSIONID=aes256$d3mdmys+msAJD+SO80P8mAVT11E0GAktDU+iByHJAjQ0CWOv1CzhbJ0f+QH8TExHagy1QA617GwSJ35G84C3lA==&jcoreWsContext=%2FJCoreSOA_DOTNET?AppName=NetracAdminShell&Splash=CloseSplash&AppAliasName=PMM_Admin&JCORESESSIONID=aes256$d3mdmys+msAJD+SO80P8mAVT11E0GAktDU+iByHJAjQ0CWOv1CzhbJ0f+QH8TExHagy1QA617GwSJ35G84C3lA==&jcoreWsContext=%2FJCoreSOA_DOTNET&sslPort=3601 resulted in exception. Following failure messages were detected:
+ Exception reading manifest from http://lnx-devgold7:3600/netraclauncher_DOTNET/deploy/BSClientMain.application?AppName=NetracAdminShell&Splash=CloseSplash&AppAliasName=PMM_Admin&JCORESESSIONID=aes256$d3mdmys+msAJD+SO80P8mAVT11E0GAktDU+iByHJAjQ0CWOv1CzhbJ0f+QH8TExHagy1QA617GwSJ35G84C3lA==&jcoreWsContext=%2FJCoreSOA_DOTNET?AppName=NetracAdminShell&Splash=CloseSplash&AppAliasName=PMM_Admin&JCORESESSIONID=aes256$d3mdmys+msAJD+SO80P8mAVT11E0GAktDU+iByHJAjQ0CWOv1CzhbJ0f+QH8TExHagy1QA617GwSJ35G84C3lA==&jcoreWsContext=%2FJCoreSOA_DOTNET&sslPort=3601: the manifest may not be valid or the file could not be opened.
+ Unexpected end of file has occurred. The following elements are not closed: as:Timestamp, Object, Signature, r:issuer, r:license, msrel:RelData, KeyInfo, Signature, asmv1:assembly. Line 22, position 11.
COMPONENT STORE TRANSACTION FAILURE SUMMARY
No transaction error was detected.
WARNINGS
There were no warnings during this operation.
OPERATION PROGRESS STATUS
* [05/03/2012 17:59:31] : Activation of http://lnx-devgold7:3600/netraclauncher_DOTNET/deploy/BSClientMain.application?AppName=NetracAdminShell&Splash=CloseSplash&AppAliasName=PMM_Admin&JCORESESSIONID=aes256$d3mdmys+msAJD+SO80P8mAVT11E0GAktDU+iByHJAjQ0CWOv1CzhbJ0f+QH8TExHagy1QA617GwSJ35G84C3lA==&jcoreWsContext=%2FJCoreSOA_DOTNET?AppName=NetracAdminShell&Splash=CloseSplash&AppAliasName=PMM_Admin&JCORESESSIONID=aes256$d3mdmys+msAJD+SO80P8mAVT11E0GAktDU+iByHJAjQ0CWOv1CzhbJ0f+QH8TExHagy1QA617GwSJ35G84C3lA==&jcoreWsContext=%2FJCoreSOA_DOTNET&sslPort=3601 has started.
ERROR DETAILS
Following errors were detected during this operation.
* [05/03/2012 17:59:31] System.Deployment.Application.InvalidDeploymentException (ManifestParse)
- Exception reading manifest from http://lnx-devgold7:3600/netraclauncher_DOTNET/deploy/BSClientMain.application?AppName=NetracAdminShell&Splash=CloseSplash&AppAliasName=PMM_Admin&JCORESESSIONID=aes256$d3mdmys+msAJD+SO80P8mAVT11E0GAktDU+iByHJAjQ0CWOv1CzhbJ0f+QH8TExHagy1QA617GwSJ35G84C3lA==&jcoreWsContext=%2FJCoreSOA_DOTNET?AppName=NetracAdminShell&Splash=CloseSplash&AppAliasName=PMM_Admin&JCORESESSIONID=aes256$d3mdmys+msAJD+SO80P8mAVT11E0GAktDU+iByHJAjQ0CWOv1CzhbJ0f+QH8TExHagy1QA617GwSJ35G84C3lA==&jcoreWsContext=%2FJCoreSOA_DOTNET&sslPort=3601: the manifest may not be valid or the file could not be opened.
- Source: System.Deployment
- Stack trace:
at System.Deployment.Application.ManifestReader.FromDocument(String localPath, ManifestType manifestType, Uri sourceUri)
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)
at System.Deployment.Application.ApplicationActivator.ActivateDeploymentWorker(Object state)
--- Inner Exception ---
System.Xml.XmlException
- Unexpected end of file has occurred. The following elements are not closed: as:Timestamp, Object, Signature, r:issuer, r:license, msrel:RelData, KeyInfo, Signature, asmv1:assembly. Line 22, position 11.
- Source: System.Xml
- Stack trace:
at System.Xml.XmlTextReaderImpl.Throw(Exception e)
at System.Xml.XmlTextReaderImpl.Throw(String res, String arg)
at System.Xml.XmlTextReaderImpl.ThrowUnclosedElements()
at System.Xml.XmlTextReaderImpl.ParseElementContent()
at System.Xml.XmlTextReaderImpl.Read()
at System.Xml.XmlTextReader.Read()
at System.Deployment.Application.ManifestValidatingReader.XmlFilteredReader.Read()
at System.Xml.XmlTextReaderImpl.Skip()
at System.Xml.XmlTextReader.Skip()
at System.Deployment.Application.ManifestValidatingReader.XmlFilteredReader.Read()
at System.Xml.XmlTextReaderImpl.Skip()
at System.Xml.XmlTextReader.Skip()
at System.Deployment.Application.ManifestValidatingReader.XmlFilteredReader.Read()
at System.Xml.XmlTextReaderImpl.Skip()
at System.Xml.XmlTextReader.Skip()
at System.Deployment.Application.ManifestValidatingReader.XmlFilteredReader.Read()
at System.Xml.XmlTextReaderImpl.Skip()
at System.Xml.XmlTextReader.Skip()
at System.Deployment.Application.ManifestValidatingReader.XmlFilteredReader.Read()
at System.Xml.XmlTextReaderImpl.Skip()
at System.Xml.XmlTextReader.Skip()
at System.Deployment.Application.ManifestValidatingReader.XmlFilteredReader.Read()
at System.Xml.XmlCharCheckingReader.Read()
at System.Xml.XsdValidatingReader.Read()
at System.Deployment.Application.ManifestReader.FromDocument(String localPath, ManifestType manifestType, Uri sourceUri)
COMPONENT STORE TRANSACTION DETAILS
No transaction information is available.
All Replies
-
Wednesday, March 07, 2012 6:47 AMModeratorHi Yevgeni,
You may try the following things,
Uninstall the application and resign with a new certificate and try again.
Add the MINE type to the server and try again, see http://msdn.microsoft.com/en-us/library/ms228998.aspx.
http://support.microsoft.com/default.aspx?scid=kb;en-us;326965
Check if the Assembly name is legal, it should not contain space.
Check if the patch is longer than 100 characters, it shouldn’t.
Republish the application to a new place and try again.
Turn off the fire wall and try again.
In addition, please also check the Troubleshooting Specific Errors in ClickOnce Deployments.
Best Regards,
Bob Wu [MSFT]
MSDN Community Support | Feedback to us
-
Thursday, March 08, 2012 4:09 PM
Thanks for the reply, I have found the problem and apparently it was non of the above. Out click once deployment is located on a Weblogic server and the problem was that it keeps cache of file resources so after the deployment the response returned corrupted file stream (Cut in the middle). The solution was a restart of the deployment EAR (Web Site) which cleaned the cache.Yevgeni Lepa
- Marked As Answer by Bob Wu-MTMicrosoft Contingent Staff, Moderator Friday, March 09, 2012 6:46 AM
-
Friday, March 09, 2012 6:46 AMModeratorHi Yevgeni,
Thank you for share your solution with us. It is helpful.
Best Reards,
Bob Wu [MSFT]
MSDN Community Support | Feedback to us


