![]()
I am developing on at home and trying to deploy my application and sql database to another computer, totally different location, which is being used as a server and client. I am working with SQL 2005 and VS 2005 Pro. I've tried everything from xcopy to clickonce. I obviously have no clue as to what I am doing.
My goal is to develop the software and database on computer and then deploy to this other computer. Please help this simple minded moron. Thanks

Deployment of VB.NET Application Fails
Manjit Sooch
I have seen some other posts where the user gets the message "Application cannot be started. Contact the application vendor"
I am having the same problem. I thought this might be connected with the SQL database I was using (I hadn't copied it into the project directory). So, as a test, I created a new form, consisting of one button which displayed a MessageBox in the click event.
When I publish this, I get the same error message when I run the .exe file.
The exception details are listed below.
Any thoughts
Thanks,
Rich
PLATFORM VERSION INFO
Windows : 5.1.2600.131072 (Win32NT)
Common Language Runtime : 2.0.50727.42
System.Deployment.dll : 2.0.50727.42 (RTM.050727-4200)
mscorwks.dll : 2.0.50727.42 (RTM.050727-4200)
dfdll.dll : 2.0.50727.42 (RTM.050727-4200)
dfshim.dll : 2.0.50727.42 (RTM.050727-4200)
SOURCES
Deployment url : file:///D:/Documents%20and%20Settings/Rich%20&%20Liz/My%20Documents/Visual%20Basic/Test%20project/Hello.application
Application url : file:///D:/Documents%20and%20Settings/Rich%20&%20Liz/My%20Documents/Visual%20Basic/Test%20project/Hello_1_0_0_1/Hello.exe.manifest
IDENTITIES
Deployment Identity : Hello.application, Version=1.0.0.1, Culture=neutral, PublicKeyToken=aa05562d4c9dd277, processorArchitecture=msil
Application Identity : Hello.exe, Version=1.0.0.1, Culture=neutral, PublicKeyToken=aa05562d4c9dd277, 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 D:\Documents and Settings\Rich & Liz\My Documents\Visual Basic\Test project\Hello.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
* [07/09/2006 21:09:51] : Activation of D:\Documents and Settings\Rich & Liz\My Documents\Visual Basic\Test project\Hello.application has started.
* [07/09/2006 21:09:52] : Processing of deployment manifest has successfully completed.
* [07/09/2006 21:09:52] : Installation of the application has started.
* [07/09/2006 21:09:52] : Processing of application manifest has successfully completed.
ERROR DETAILS
Following errors were detected during this operation.
* [07/09/2006 21:09:52] System.ArgumentException
- Value does not fall within the expected range.
- Source: mscorlib
- Stack trace:
at System.Deployment.Internal.Isolation.IDefinitionAppId.EnumAppPath()
at System.ActivationContext.CreateFromNameAndManifests(ApplicationIdentity applicationIdentity, String[] manifestPaths)
at System.Deployment.Application.ActivationDescription.ToActivationContext()
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)
at System.Deployment.Application.ApplicationActivator.ActivateDeploymentWorker(Object state)
COMPONENT STORE TRANSACTION DETAILS
No transaction information is available.
dams
We've tried to make it as simple as possible to do a deployment. If your app is running under F5/debug, and you then ClickOnce publish the app, then the files you need should be automatically included.
What is the error you are seeing on the end machine
FYI, once you publish the app to a "server", then the end machine needs to run the install to install it... publishing sets it up so it can be installed, but doesn't make it runnable on the machine it was published to.
Biodegradabl
If your application will work if you basically copy the files to the target machine, then you can install it using ClickOnce. If you also need to make changes to the system configuration, like creating registry entries and the like, you should create a Windows Installer (MSI) based setup. Visual Studio can do this using the Setup&Deployment project type. However I think this project type is not available in the Express editions. But there are other tools you can use for that purpose, see http://www.installsite.org/go/msidev.htm