Quantcast
Channel: Windows Presentation Foundation (WPF) forum
Viewing all articles
Browse latest Browse all 18858

WPF - XBAP application restart..

$
0
0

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


Viewing all articles
Browse latest Browse all 18858

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>