PDA

Click to See Complete Forum and Search --> : + Value does not fall within the expected range.


Big Red
Jan 22nd, 2009, 03:24 PM
I'm using Visual Studio 2008 and .NET 3.5
I have a solution with several projects located within the solution. It's all on source control and i actually publish one project so everyone in the company can use the program. The last time I published, now no one can get into teh program. I can an error stating, "Cannot Start Application - Application cannot be started. Contact the application vendor." and when i view the details, this is the file that comes up:

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:///C:/Documents%20and%20Settings/athorson/Start%20Menu/Programs/Diversified%20Woodcrafts/JobMasterV6.appref-ms%7C
Deployment Provider url : file://192.168.1.9/Applications/JobMasterV6/JMInterface.application
Application url : file://192.168.1.9/Applications/JobMasterV6/Application%20Files/JMInterface_6_0_1_5/JMInterface.exe.manifest

IDENTITIES
Application Identity : JMInterface.exe, Version=6.0.1.5, Culture=neutral, PublicKeyToken=f128db492d3b23ef, processorArchitecture=msil, type=win32

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\athorson\Start Menu\Programs\Diversified Woodcrafts\JobMasterV6.appref-ms/ 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
* [1/22/2009 3:06:48 PM] : Activation of C:\Documents and Settings\athorson\Start Menu\Programs\Diversified Woodcrafts\JobMasterV6.appref-ms/ has started.
* [1/22/2009 3:06:48 PM] : Performing necessary update check as specified by the deployment.
* [1/22/2009 3:06:49 PM] : Consuming new update.
* [1/22/2009 3:06:51 PM] : Installation of the application has started.
* [1/22/2009 3:06:51 PM] : Processing of application manifest has successfully completed.
* [1/22/2009 3:06:52 PM] : Request of trust and detection of platform is complete.

ERROR DETAILS
Following errors were detected during this operation.
* [1/22/2009 3:06:52 PM] System.ArgumentException
- Value does not fall within the expected range.
- Source: System.Deployment
- Stack trace:
at System.Deployment.Internal.Isolation.IStore.LockApplicationPath(UInt32 Flags, IDefinitionAppId ApId, IntPtr& Cookie)
at System.Deployment.Internal.Isolation.Store.LockApplicationPath(IDefinitionAppId app)
at System.Deployment.Application.ComponentStore.LockApplicationPath(DefinitionAppId definitionAppId)
at System.Deployment.Application.SubscriptionStore.LockApplicationPath(DefinitionAppId definitionAppId)
at System.Deployment.Application.FileDownloader.PatchFiles(SubscriptionState subState)
at System.Deployment.Application.FileDownloader.Download(SubscriptionState subState)
at System.Deployment.Application.DownloadManager.DownloadDependencies(SubscriptionState subState, AssemblyManifest deployManifest, AssemblyManifest appManifest, Uri sourceUriBase, String targetDirectory, String group, IDownloadNotification notification, DownloadOptions options)
at System.Deployment.Application.ApplicationActivator.DownloadApplication(SubscriptionState subState, ActivationDescription actDesc, Int64 transactionId, TempDirectory& downloadTemp)
at System.Deployment.Application.ApplicationActivator.InstallApplication(SubscriptionState& subState, ActivationDescription actDesc)
at System.Deployment.Application.ApplicationActivator.ConsumeUpdatedDeployment(SubscriptionState& subState, ActivationDescription actDesc)
at System.Deployment.Application.ApplicationActivator.PerformDeploymentUpdate(SubscriptionState& subState, String& errorPageUrl)
at System.Deployment.Application.ApplicationActivator.ProcessOrFollowShortcut(String shortcutFile, String& errorPageUrl, TempFile& deployFile)
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
No transaction information is available.

we have no clue as to what this error means or what it's occurring. Any ideas that anyone can give would be greatly appreciated!!!

DeanMc
Jan 23rd, 2009, 06:31 AM
So to be clear this only happens when you publish? what happens when you run the code in debug mode?

DeanMc
Jan 23rd, 2009, 06:34 AM
Ok I done some digging and it could be the issue here:
http://social.msdn.microsoft.com/Forums/en-US/winformssetup/thread/9e4b714e-bad4-4c62-a7ad-3c80e32d95eb/

Did you make any changes to the application after it was running ok?

Dennijr
Oct 21st, 2009, 06:31 PM
i have a very similar problem... running vista and after i try to run the setup, it does its thing then says cannot start application... my program works fine however when i run it in vb, anyone got any ideas at all?

PLATFORM VERSION INFO
Windows : 6.0.6001.65536 (Win32NT)
Common Language Runtime : 2.0.50727.3603
System.Deployment.dll : 2.0.50727.3053 (netfxsp.050727-3000)
mscorwks.dll : 2.0.50727.3603 (GDR.050727-3600)
dfdll.dll : 2.0.50727.3053 (netfxsp.050727-3000)
dfshim.dll : 2.0.50727.3053 (netfxsp.050727-3000)

SOURCES
Deployment url : file:///C:/Users/Dennijr/Desktop/dmp.application
Application url : file:///C:/Users/Dennijr/Desktop/Application%20Files/dmp_2_0_0_0/dmp.exe.manifest

IDENTITIES
Deployment Identity : dmp.application, Version=2.0.0.0, Culture=neutral, PublicKeyToken=f8fef8a003c16fa5, processorArchitecture=msil
Application Identity : dmp.exe, Version=2.0.0.0, Culture=neutral, PublicKeyToken=f8fef8a003c16fa5, 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 C:\Users\Dennijr\Desktop\dmp.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
* [21/10/2009 7:24:52 PM] : Activation of C:\Users\Dennijr\Desktop\dmp.application has started.
* [21/10/2009 7:24:52 PM] : Processing of deployment manifest has successfully completed.
* [21/10/2009 7:24:52 PM] : Installation of the application has started.
* [21/10/2009 7:24:52 PM] : Processing of application manifest has successfully completed.
* [21/10/2009 7:24:54 PM] : Request of trust and detection of platform is complete.

ERROR DETAILS
Following errors were detected during this operation.
* [21/10/2009 7:24:54 PM] System.ArgumentException
- Value does not fall within the expected range.
- Source: System.Deployment
- Stack trace:
at System.Deployment.Internal.Isolation.IStore.LockApplicationPath(UInt32 Flags, IDefinitionAppId ApId, IntPtr& Cookie)
at System.Deployment.Internal.Isolation.Store.LockApplicationPath(IDefinitionAppId app)
at System.Deployment.Application.ComponentStore.LockApplicationPath(DefinitionAppId definitionAppId)
at System.Deployment.Application.SubscriptionStore.LockApplicationPath(DefinitionAppId definitionAppId)
at System.Deployment.Application.FileDownloader.PatchFiles(SubscriptionState subState)
at System.Deployment.Application.FileDownloader.Download(SubscriptionState subState)
at System.Deployment.Application.DownloadManager.DownloadDependencies(SubscriptionState subState, AssemblyManifest deployManifest, AssemblyManifest appManifest, Uri sourceUriBase, String targetDirectory, String group, IDownloadNotification notification, DownloadOptions options)
at System.Deployment.Application.ApplicationActivator.DownloadApplication(SubscriptionState subState, ActivationDescription actDesc, Int64 transactionId, TempDirectory& downloadTemp)
at System.Deployment.Application.ApplicationActivator.InstallApplication(SubscriptionState& subState, ActivationDescription actDesc)
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
No transaction information is available.