The problem I see with this is that it looks like the line:
System.Deployment.Application.ApplicationDeployment.CurrentDeployment.CurrentVersion.ToString
Will error in the debug, simply because the application is not installed. Yet the information on the last published version is available in the Publish tab. Anyone know how to tell if the code is being run in the debug environment so that this can be "IF'd" out.
thanks
|