D
dominic
Hi all,
I've created a simple application in C# to test for ClickOnce
deployment. After I've compiled the exe, I created the deployment
manifest and the application manifest with "mageui.exe", and then put it
onto a folder which could be recognized by IIS.
I tried to click on the .application file in Windows Explorer, and the
application is installed with no problem. Then I tried to do the same
thing through a web browser, typing the URL directly. The update screen
comes out normally, but after that an error message telling me that
"Unable to continue. The application is improperly formatted. Please
contact the vendor." is shown. The exception is attached at the end of
this message.
Since the XML files are created by mageui.exe without being modified, I
think they should have no formatting problem. And I have already
specified the Publisher. So is there anything that could cause this
problem? (FYI I'm using English WinXP, and have my default language for
non-Unicode programs set to Chinese (Taiwan)).
Thank you.
Dominic
---------------------
Exception given:
Windows version: 5.1
system.deployment.dll (in C:\WINDOWS\Microsoft.NET\Framework\v2.0.40607)
version: 2.0.40607.42 (beta1.040607-4200)
mscorwks.dll version: 2.0.40607.42 (beta1.040607-4200)
dfdll.dll version: 8.0.40607.42 (beta1.040607-4200)
Subscription Url: C:\Documents and Settings\User\Start
Menu\Programs\dominic\Sample application using ClickOnce
deployment..appref-ms
(23/03/05 12:41:34 PM) Activate manifest:
Activation of C:\Documents and Settings\User\Start
Menu\Programs\dominic\Sample application using ClickOnce
deployment..appref-ms resulted in exception.
Type: System.Deployment.ManifestParseException
Exception reading manifest from file
8b550599-633d-4caf-a070-6f0008b0f4ac.application: the manifest could be
invalid or the file could not be opened.
Source: System.Deployment
Stack trace: at
System.Deployment.ManifestReader.ExceptionHelper(String filename,
Exception ex)
at System.Deployment.ManifestReader.FromDocument(String docPath,
ManifestType manifestType)
at System.Deployment.DownloadManager.DownloadManifest(Uri& sourceUri,
String targetPath, IDownloadNotification notification, DownloadOptions
options, ManifestType manifestType)
at
System.Deployment.DownloadManager.DownloadDeploymentManifestDirect(SubscriptionStore
subStore, Uri& sourceUri, TempFile& tempFile, IDownloadNotification
notification, DownloadOptions options)
at
System.Deployment.DownloadManager.DownloadDeploymentManifest(SubscriptionStore
subStore, Uri& sourceUri, TempFile& tempFile, IDownloadNotification
notification, DownloadOptions options)
at
System.Deployment.ApplicationActivator.PerformDeploymentUpdate(SubscriptionState
subState)
at
System.Deployment.ApplicationActivator.ProcessOrFollowShortcut(String
shortcutFile, TempFile& deployFile)
at
System.Deployment.ApplicationActivator.PerformDeploymentActivation(Uri
activationUri, String deployLocalCachePath, Boolean isShortcut)
at
System.Deployment.ApplicationActivator.ActivateDeploymentWorker(Object
state)
--- Inner Exception ---
Type: System.Xml.XmlException
There are multiple root elements. Line 1, position 49.
Source: System.Xml
Stack trace: at System.Xml.XmlTextReader.Throw(Exception e)
at System.Xml.XmlTextReader.Throw(String res, String arg)
at System.Xml.XmlTextReader.Throw(Int32 pos, String res)
at System.Xml.XmlTextReader.ParseDocumentContent()
at System.Xml.XmlTextReader.Read()
at System.Deployment.XmlFilteredReader.Read()
at System.Xml.XmlTextReader.Skip()
at System.Deployment.XmlFilteredReader.Read()
at System.Xml.XmlValidatingReader.Read()
at System.Deployment.ManifestReader.FromDocument(String docPath,
ManifestType manifestType)
I've created a simple application in C# to test for ClickOnce
deployment. After I've compiled the exe, I created the deployment
manifest and the application manifest with "mageui.exe", and then put it
onto a folder which could be recognized by IIS.
I tried to click on the .application file in Windows Explorer, and the
application is installed with no problem. Then I tried to do the same
thing through a web browser, typing the URL directly. The update screen
comes out normally, but after that an error message telling me that
"Unable to continue. The application is improperly formatted. Please
contact the vendor." is shown. The exception is attached at the end of
this message.
Since the XML files are created by mageui.exe without being modified, I
think they should have no formatting problem. And I have already
specified the Publisher. So is there anything that could cause this
problem? (FYI I'm using English WinXP, and have my default language for
non-Unicode programs set to Chinese (Taiwan)).
Thank you.
Dominic
---------------------
Exception given:
Windows version: 5.1
system.deployment.dll (in C:\WINDOWS\Microsoft.NET\Framework\v2.0.40607)
version: 2.0.40607.42 (beta1.040607-4200)
mscorwks.dll version: 2.0.40607.42 (beta1.040607-4200)
dfdll.dll version: 8.0.40607.42 (beta1.040607-4200)
Subscription Url: C:\Documents and Settings\User\Start
Menu\Programs\dominic\Sample application using ClickOnce
deployment..appref-ms
(23/03/05 12:41:34 PM) Activate manifest:
Activation of C:\Documents and Settings\User\Start
Menu\Programs\dominic\Sample application using ClickOnce
deployment..appref-ms resulted in exception.
Type: System.Deployment.ManifestParseException
Exception reading manifest from file
8b550599-633d-4caf-a070-6f0008b0f4ac.application: the manifest could be
invalid or the file could not be opened.
Source: System.Deployment
Stack trace: at
System.Deployment.ManifestReader.ExceptionHelper(String filename,
Exception ex)
at System.Deployment.ManifestReader.FromDocument(String docPath,
ManifestType manifestType)
at System.Deployment.DownloadManager.DownloadManifest(Uri& sourceUri,
String targetPath, IDownloadNotification notification, DownloadOptions
options, ManifestType manifestType)
at
System.Deployment.DownloadManager.DownloadDeploymentManifestDirect(SubscriptionStore
subStore, Uri& sourceUri, TempFile& tempFile, IDownloadNotification
notification, DownloadOptions options)
at
System.Deployment.DownloadManager.DownloadDeploymentManifest(SubscriptionStore
subStore, Uri& sourceUri, TempFile& tempFile, IDownloadNotification
notification, DownloadOptions options)
at
System.Deployment.ApplicationActivator.PerformDeploymentUpdate(SubscriptionState
subState)
at
System.Deployment.ApplicationActivator.ProcessOrFollowShortcut(String
shortcutFile, TempFile& deployFile)
at
System.Deployment.ApplicationActivator.PerformDeploymentActivation(Uri
activationUri, String deployLocalCachePath, Boolean isShortcut)
at
System.Deployment.ApplicationActivator.ActivateDeploymentWorker(Object
state)
--- Inner Exception ---
Type: System.Xml.XmlException
There are multiple root elements. Line 1, position 49.
Source: System.Xml
Stack trace: at System.Xml.XmlTextReader.Throw(Exception e)
at System.Xml.XmlTextReader.Throw(String res, String arg)
at System.Xml.XmlTextReader.Throw(Int32 pos, String res)
at System.Xml.XmlTextReader.ParseDocumentContent()
at System.Xml.XmlTextReader.Read()
at System.Deployment.XmlFilteredReader.Read()
at System.Xml.XmlTextReader.Skip()
at System.Deployment.XmlFilteredReader.Read()
at System.Xml.XmlValidatingReader.Read()
at System.Deployment.ManifestReader.FromDocument(String docPath,
ManifestType manifestType)