When I try to access \"Application.CommonAppDataPath\" i get this error message:
System.Deployment: Store metadata \"CurrentBind\" is not valid
ApplicationDeployment.IsNetworkDeployed (in the System.Deployment.Application namespace) is a boolean property that returns true
if the application was launched with ClickOnce.
if (ApplicationDeployment.IsNetworkDeployed)
{
//CommonAppPath code
}
What are you trying to do with CommonAppDataPath? Depending on what you're trying to accomplish, we could probably come up with something that will work no matter how the app is launched.