ClickOnce Store Metadata "AppType" Invalid
I have an application that uses ClickOnce deployment. It works on about a dozen machines except one. I am getting the following error. I found a solution from http://groups.google.com/group/microsoft.public.dotnet.distributed_apps/msg/42d44ffe781d3610 but it requires go to registry and remove AppType which is not the best solution because every time i have a new version, it won't work again.
Does anyone have any idea about this type of error and how to deal with it.
Many thanks.
Best regards, Vlad.
=========================================== INFORMATION ABOUT THE VERSION OF THE PLATFORM Windows: 5.1. 2600.131072 (Win32NT) Common Runtime Language: 2.0.50727.3053 System.Deployment.dll: 2.0.50727.3053 (netfxsp.050727-3000) mscorwks.dll: 2.0.50727.3053 (netfxsp.050727-3000) dfdll.dll: 2.0.50727.3053 (netfxsp .050727-3000) dfshim.dll: 2.0.50727.3053 (netfxsp.050727-3000)
SOURCES Deployment URL: file: // xxx \ yyy.application
ERROR SUMMARY Below is a summary of the errors, the details of these errors are listed later in the log. * Activating file: // \ xxx \ yyy.application resulted in an exception. The following error messages were encountered: + The "AppType" metadata is not valid. + The input line was not in the correct format.
STORE COMPONENT FAILURE SUMMARY Transaction error not detected.
PRECAUTIONS There were no warnings during this operation.
PROGRESS STATUS * [5/20/09 12:22:26 PM]: Activation of file activated: // \ xxx \ yyy.application.
ERROR DETAILS The following errors were encountered during this operation. * [5/20/09 12:22:27 PM] System.Deployment.Application.DeploymentException (SubscriptionState) - Storing "AppType" metadata is invalid. - Source: System.Deployment - Stack Traces: at System.Deployment.Application.ComponentStore.GetPropertyAppType (definition of AppId appId, String propName) at System.Deployment.Application.ComponentStore.GetSubscriptionStateInternal (definition of Identity subscriptionId) at System.Deployment.Subloyment.Subloyment. GetSubscriptionStateInternal (SubsStationState subState) at System.Deployment.Application.SubscriptionState.Validate () at System.Deployment.Application.SubscriptionState.get_IsInstalled () at System.Deployment.Application.SubscriptionStore.CheckAndReferencedateApplicate (SubscriptionState.CheckAndReferencedateApplicate (SubscriptionStateIt)Int64 transactionId) in System.Deployment.Application.DownloadManager.DownloadDeploymentManifestDirectBypass (SubsStoreStore subStore, Uri & sourceUri, TempFile & TempFile, SubscriptionState & subState, IDownload notification notification, DownloadOption.Download options. DownloadDeploymentManifestBypass (SubsStoreStore subStore, Uri & sourceUri, TempFile & TempFile, SubscriptionState & subState, IDownload notification notification, DownloadOptions options) in System.Deployment.Application.ApplicationActivator.PerformDeployment.ApplicationActivator.PerformDepriverExployment , String & errorPageUrl) in System.Deployment.Application.ApplicationActivator.ActivateDeploymentWorker (Object State) --- Inner Exception --- System.FormatException - The input string was not in the correct format. - Source: mscorlib - Stack Traces: at System.Number.StringToNumber (String str, NumberStyles, NumberBuffer & number, NumberFormatInfo info, Boolean parseDecimal parameters) at System.Number.ParseUInt32 (String value, NumberStyles, NumberFormatInfo options) in System numfm UInt16.Parse (String s, NumberStyles style, NumberFormatInfo info) at System.Convert.ToUInt16 (string value) at System.Deployment.Application.ComponentStore.GetPropertyAppType (AppId appId definition, String propName)to System.Number.StringToNumber (String parameters str, NumberStyles, NumberBuffer & number, NumberFormatInfo info, Boolean parseDecimal) to System.Number.ParseUInt32 (String value, NumberStyles options, NumberFormatInfo numfmt) to System.UInt16.Parse (String s style, NumberFormatInfo info) at System.Convert.ToUInt16 (string value) at System.Deployment.Application.ComponentStore.GetPropertyAppType (AppId appId definition, String propName)to System.Number.StringToNumber (String parameters str, NumberStyles, NumberBuffer & number, NumberFormatInfo info, Boolean parseDecimal) to System.Number.ParseUInt32 (String value, NumberStyles options, NumberFormatInfo numfmt) to System.UInt16.Parse (String s style, NumberFormatInfo info) at System.Convert.ToUInt16 (string value) at System.Deployment.Application.ComponentStore.GetPropertyAppType (AppId appId definition, String propName)GetPropertyAppType (AppId appId definition, String propName)GetPropertyAppType (AppId appId definition, String propName)
COMPONENT STORE OPERATION DETAILS Transaction information not available.
a source to share
I found the answer on: MS Help and Support . What else you need to do after you follow these steps from Microsoft is restart your machine. After rebooting the machine, everything should work fine.
a source to share