Hi,
We are developing an xBAP application where one of the requirement is when users logs out then we need to shutdown current Application and should start Application. When saw some of the posts most of them suggested
System.Diagnostics.Process.Start(Application.ResourceAssembly.Location);
Application.Current.Shutdown();
But This never worked to us, we also tried below that doesn't worked as well.
if (System.Deployment.Application.ApplicationDeployment.IsNetworkDeployed)
{
Uri launchUri = System.Deployment.Application.ApplicationDeployment.CurrentDeployment.ActivationUri;
Application.Current.Exit += delegate(object sender, ExitEventArgs e)
{
System.Diagnostics.Process.Start(launchUri.AbsoluteUri);
};
Application.Current.Shutdown();
}
Now we are struck here & really looking for help.
Regards,
Prakash.G