Windows Develop Bookmark and Share   
 index > ClickOnce and Setup & Deployment Projects > ClickOnce deployment failing after VS2008 SP1 and .NET 3.5 SP1 upgrades
 

ClickOnce deployment failing after VS2008 SP1 and .NET 3.5 SP1 upgrades

I have been trying for many hours now to restore to my client the working ClickOnce deployment of my VB.NET project to his remote server. Never had any problems for many months, and now I get the fatal error message:

"Application cannot be started. Contact the application vendor."

i.e. me!!

I have searched this forum and found the same "Value does not fall within the expected range." error, but alas cannot find a clear solution amongst the postings.

I attach the log file generated when I click on the Detail... button.

HELP!!!

Perhaps I am naive in attributing this to the recent service packs...

Sambodh

PLATFORM VERSION INFO
Windows : 5.1.2600.196608 (Win32NT)
Common Language Runtime : 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://alpha/processing/Simulator/MMSimulator.application
Deployment Provider url: file://alpha/processing/simulator/MMSimulator.application
Application url: file://alpha/processing/Simulator/Application%20Files/MMSimulator_1_0_0_13/MMSimulator.exe.manifest

IDENTITIES
Deployment Identity: MMSimulator.application, Version=1.0.0.13, Culture=neutral, PublicKeyToken=8c441d16ba868123, processorArchitecture=msil
Application Identity: MMSimulator.exe, Version=1.0.0.13, Culture=neutral, PublicKeyToken=8c441d16ba868123, processorArchitecture=msil, type=win32

APPLICATION SUMMARY
* Installable application.

ERROR SUMMARY
Below is a summary of the errors, details of these errors are listed later in the log.
* Activation of file://alpha/processing/Simulator/MMSimulator.application resulted in exception. Following failure messages were detected:
+ Value does not fall within the expected range.

COMPONENT STORE TRANSACTION FAILURE SUMMARY
No transaction error was detected.

WARNINGS
There were no warnings during this operation.

OPERATION PROGRESS STATUS
* [2/09/2008 4:43:51 PM] : Activation of file://alpha/processing/Simulator/MMSimulator.application has started.
* [2/09/2008 4:43:54 PM] : Processing of deployment manifest has successfully completed.
* [2/09/2008 4:43:54 PM] : Installation of the application has started.
* [2/09/2008 4:43:55 PM] : Processing of application manifest has successfully completed.
* [2/09/2008 4:43:58 PM] : Request of trust and detection of platform is complete.
* [2/09/2008 4:44:32 PM] : Downloading of subscription dependencies is complete.
* [2/09/2008 4:44:32 PM] : Commit of the downloaded application has started.
* [2/09/2008 4:44:32 PM] : Installation of application has successfully completed.

ERROR DETAILS
Following errors were detected during this operation.
* [2/09/2008 4:44:33 PM] System.ArgumentException
- Value does not fall within the expected range.
- Source: System.Deployment
- Stack trace:
at System.Deployment.Application.NativeMethods.CorLaunchApplication(UInt32 hostType, String applicationFullName, Int32 manifestPathsCount, String[] manifestPaths, Int32 activationDataCount, String[] activationData, PROCESS_INFORMATION processInformation)
at System.Deployment.Application.ComponentStore.ActivateApplication(DefinitionAppId appId, String activationParameter, Boolean useActivationParameter)
at System.Deployment.Application.SubscriptionStore.ActivateApplication(DefinitionAppId appId, String activationParameter, Boolean useActivationParameter)
at System.Deployment.Application.ApplicationActivator.Activate(DefinitionAppId appId, AssemblyManifest appManifest, String activationParameter, Boolean useActivationParameter)
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)

COMPONENT STORE TRANSACTION DETAILS
* Transaction at [2/09/2008 4:44:32 PM]
+ System.Deployment.Internal.Isolation.StoreOperationStageComponent
- Status: Installed
- HRESULT: 0x0
- Manifest: N09X3ONN.693.application
+ System.Deployment.Internal.Isolation.StoreOperationSetDeploymentMetadata
- Status: Set
- HRESULT: 0x0
+ System.Deployment.Internal.Isolation.StoreOperationStageComponent
- Status: Installed
- HRESULT: 0x0
- Manifest: MMSimulator.exe.manifest
+ System.Deployment.Internal.Isolation.StoreOperationStageComponentFile
- Status: Installed
- HRESULT: 0x0
- File: MMSimulator.exe.config
+ System.Deployment.Internal.Isolation.StoreOperationStageComponentFile
- Status: Installed
- HRESULT: 0x0
- File: Spider.sdf
+ System.Deployment.Internal.Isolation.StoreOperationStageComponent
- Status: Installed
- HRESULT: 0x0
- Manifest: Microsoft.Synchronization.Data.Server.dll.genman
+ System.Deployment.Internal.Isolation.StoreOperationStageComponentFile
- Status: Installed
- HRESULT: 0x0
- File: Microsoft.Synchronization.Data.Server.dll
+ System.Deployment.Internal.Isolation.StoreOperationStageComponent
- Status: Installed
- HRESULT: 0x0
- Manifest: MMSimulator.exe.genman
+ System.Deployment.Internal.Isolation.StoreOperationStageComponentFile
- Status: Installed
- HRESULT: 0x0
- File: MMSimulator.exe
+ System.Deployment.Internal.Isolation.StoreOperationStageComponent
- Status: Installed
- HRESULT: 0x0
- Manifest: Microsoft.Synchronization.Data.SqlServerCe.dll.genman
+ System.Deployment.Internal.Isolation.StoreOperationStageComponentFile
- Status: Installed
- HRESULT: 0x0
- File: Microsoft.Synchronization.Data.SqlServerCe.dll
+ System.Deployment.Internal.Isolation.StoreOperationStageComponent
- Status: Installed
- HRESULT: 0x0
- Manifest: Microsoft.Synchronization.Data.dll.genman
+ System.Deployment.Internal.Isolation.StoreOperationStageComponentFile
- Status: Installed
- HRESULT: 0x0
- File: Microsoft.Synchronization.Data.dll
+ System.Deployment.Internal.Isolation.StoreOperationStageComponent
- Status: Installed
- HRESULT: 0x0
- Manifest: System.Data.SqlServerCe.dll.genman
+ System.Deployment.Internal.Isolation.StoreOperationStageComponentFile
- Status: Installed
- HRESULT: 0x0
- File: System.Data.SqlServerCe.dll
+ System.Deployment.Internal.Isolation.StoreOperationInstallDeployment
- Status: Installed
- HRESULT: 0x0
- AppId: file://alpha/processing/Simulator/MMSimulator.application#MMSimulator.application, Version=1.0.0.13, Culture=neutral, PublicKeyToken=8c441d16ba868123, processorArchitecture=msil
+ System.Deployment.Internal.Isolation.StoreOperationSetDeploymentMetadata
- Status: Set
- HRESULT: 0x0
+ System.Deployment.Internal.Isolation.StoreTransactionOperationType (27)
- HRESULT: 0x0

Sambodh  Tuesday, September 02, 2008 7:01 AM

Hi Sambodh

Do you mean you just meet this problem after you udate your .Net Framework version and Visual Studio version? Though my duty is about winform develop and deployment, not familiary with the Visual Studio and .Net Framework version update. I will try my best.

From the information you give me, I know that you are using Windows XP. So if you install the .Net Framework package after the IIS, it will have some trouble. This issue won’t happen in the later version of Windows.

So in this issue, I don’t think it is the problem of your ClickOnce application. It related to the .Net update package installation. So I suggest you can contact the .Net Framework and VS update installation forum to ask for the correct step of update. After that please contact me of the ClickOnce issue.

Sincerely,

Kira Qian

Windows Forms General FAQs
Windows Forms Data Controls and Databinding FAQs

Kira Qian  Friday, September 05, 2008 10:20 AM

We are changing the issue type to “Comment�because you have not followed up with the necessary information. If you have more time to look at the issue and provide more information, please feel free to change the issue type back to “Question�by editing your initial post and changing the radio button at the top of the post editor window. If the issue is resolved, we will appreciate it if you can share the solution so that the answer can be found and used by other community members having similar questions.

Thank you!

Best Regards

Kira Qian

Kira Qian  Monday, September 08, 2008 9:33 AM

Thanks for your reply.

I have resolved the situation by rebuilding my application in a new project, and deploying that without problems. Not the optimum, and fortunately not too large a task to reconstruct the code, mostly cut and paste, but a bit annoying not to know why!

Sambodh

Sambodh  Wednesday, September 10, 2008 6:31 AM

You can use google to search for other answers

Custom Search

More Threads

• Disable right Click on ActiveX Control in C#
• Install COM - OCX - ActiveX with ClickOnce
• Isolated property "not imported" failure
• Can the Confirm Installation Dialog Be Customized?
• Win Vista - Setup Project Deployment
• I can't launch the installer because of "cannot be installed because the file cannot be found in cabinet file" error.
• ClickOnce Trusted Publishers and win 2000
• Checking for DLL before installing
• Problem (with manifest) using COM isolation within a ClickOnce Application
• Deploy Project built in XP won't run on Server 2003