Publish Error - Application Improperly Formatted

Hi.

I have developed an application using VB Express Beta 2. I am trying to publish it to share the application with others. When I try to publish it to my hard drive and then run the setup.exe, I get an Application Failed pop up that says the application is improperly formatted and the details are as follows:

PLATFORM VERSION INFO
Windows : 5.1.2600.131072 (Win32NT)
Common Language Runtime : 2.0.50215.44
System.Deployment.dll : 2.0.50215.44 (beta2.050215-4400)
mscorwks.dll : 2.0.50215.44 (beta2.050215-4400)
dfdll.dll : 8.0.50215.44 (beta2.050215-4400)
dfshim.dll : 2.0.50215.44 (beta2.050215-4400)

SOURCES
Deployment url :file:///C:/Documents%20and%20Settings/Jamie%20and%20Jim/My%20Documents/Robot/Customizable%20Robot%20Beta%202.application

ERROR SUMMARY
Below is a summary of the errors, details of these errors are listed later in the log.
* Activation of C:\Documents and Settings\Jamie and Jim\My Documents\Robot\Customizable Robot Beta 2.application resulted in exception. Following failure messages were detected:
+ Exception reading manifest fromfile:///C:/Documents%20and%20Settings/Jamie%20and%20Jim/My%20Documents/Robot/Customizable%20Robot%20Beta%202.application: the manifest could be invalid or the file could not be opened.
+ The manifest has no XML signature.

COMPONENT STORE TRANSACTION FAILURE SUMMARY
No transaction error was detected.

WARNINGS
There were no warnings during this operation.

OPERATION PROGRESS STATUS
* [02 May 2005 13:59:01 -04:00] : Activation of C:\Documents and Settings\Jamie and Jim\My Documents\Robot\Customizable Robot Beta 2.application has started.

ERROR DETAILS
Following errors were detected during this operation.
* [02 May 2005 13:59:02 -04:00] System.Deployment.Application.InvalidDeploymentException (ManifestParse)
- Exception reading manifest fromfile:///C:/Documents%20and%20Settings/Jamie%20and%20Jim/My%20Documents/Robot/Customizable%20Robot%20Beta%202.application: the manifest could be invalid 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.DownloadManifest(Uri& sourceUri, String targetPath, IDownloadNotification notification, DownloadOptions options, ManifestType manifestType, ServerInformation& serverInformation)
at System.Deployment.Application.DownloadManager.DownloadDeploymentManifestDirect(SubscriptionStore subStore, Uri& sourceUri, TempFile& tempFile, IDownloadNotification notification, DownloadOptions options, ServerInformation& serverInformation)
at System.Deployment.Application.DownloadManager.DownloadDeploymentManifest(SubscriptionStore subStore, Uri& sourceUri, TempFile& tempFile, IDownloadNotification notification, DownloadOptions options)
at System.Deployment.Application.ApplicationActivator.PerformDeploymentActivation(Uri activationUri, Boolean isShortcut)
at System.Deployment.Application.ApplicationActivator.ActivateDeploymentWorker(Object state)
Inner Exception
System.Deployment.Application.ValidationFailedException (Unknown subtype)
- The manifest has no XML signature.
- Source: System.Deployment
- Stack trace:
at System.Deployment.Application.Manifest.AssemblyManifest.ValidateSignature(Stream s)
at System.Deployment.Application.ManifestReader.FromDocument(String localPath, ManifestType manifestType, Uri sourceUri)

COMPONENT STORE TRANSACTION DETAILS
No transaction information is available.

I also get these warnings in the Error List of my application:

Warning 11 SignTool reported an error 'Failed to sign publish\Customizable Robot Beta 2_1_0_0_24\Customizable Robot Beta 2.exe.manifest. sm.exe failed: Value cannot be null.
Parameter name: uriString
'. C:\WINDOWS\Microsoft.NET\Framework\v2.0.50215\Microsoft.Common.targets 0 0

Warning 12 SignTool reported an error 'Failed to sign publish\Customizable Robot Beta 2.application. sm.exe failed: Value cannot be null.
Parameter name: uriString
'. C:\WINDOWS\Microsoft.NET\Framework\v2.0.50215\Microsoft.Common.targets 0 0
I have checked to make sure that the checkbox for the Sign the ClickOnce manifests is checked and I still have no luck. Any help would be greatly appreciated!!

Thanks,
Marie

[5523 byte] By [Marie5] at [2008-1-28]
# 1
Hi Marie,

There is a known issue in Beta2 that having spaces in your application name will cause the ClickOnce manifests to not be signed when published (a requirement for successful install).

Workaround:
-
Remove the spaces from your application name and re-publish.

Let me know if this helps,

-Patrick Darragh
VB PM

PatrickDarragh at 2007-8-21 > top of Msdn Tech,Visual Basic,Visual Basic IDE...