Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Application identity is not set. Application.restart

Posted on 2013-02-07
4
Medium Priority
?
1,503 Views
Last Modified: 2013-02-28
hello all ,
i am getting this exception when
 Application.Restart()
           

Open in new window

any help ?

exception appear when call Application.restart
0
Comment
Question by:AhmedHindy
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 42

Expert Comment

by:sedgwick
ID: 38863121
is it while debugging?
0
 
LVL 143

Expert Comment

by:Guy Hengel [angelIII / a3]
ID: 38863130
indeed ... during debugging (looking at screenshot).

so, you can check out these suggestions I found:
I found that this problem exists only if you untick "Just My Code" under debug options.
in my case I just disabled the InvalidDeploymentException from Debug->Exceptions

you might look into this page for more explanation:
http://social.msdn.microsoft.com/Forums/en-US/csharpgeneral/thread/397c38e4-4306-4791-bed6-f319384c1086
0
 
LVL 42

Expert Comment

by:sedgwick
ID: 38863141
try this approach:

Application.Exit();

Process.Start(Application.ExecutablePath, "/restart" + Process.GetCurrentProcess().Id);

Open in new window


how-do-i-restart-my-c-sharp-winform-application
0
 
LVL 10

Accepted Solution

by:
Monica P earned 1000 total points
ID: 38863616
0

Featured Post

Veeam Disaster Recovery in Microsoft Azure

Veeam PN for Microsoft Azure is a FREE solution designed to simplify and automate the setup of a DR site in Microsoft Azure using lightweight software-defined networking. It reduces the complexity of VPN deployments and is designed for businesses of ALL sizes.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In my previous article (http://www.experts-exchange.com/Programming/Languages/.NET/.NET_Framework_3.x/A_4362-Serialization-in-NET-1.html) we saw the basics of serialization and how types/objects can be serialized to Binary format. In this blog we wi…
In my previous two articles we discussed Binary Serialization (http://www.experts-exchange.com/A_4362.html) and XML Serialization (http://www.experts-exchange.com/A_4425.html). In this article we will try to know more about SOAP (Simple Object Acces…
Video by: ITPro.TV
In this episode Don builds upon the troubleshooting techniques by demonstrating how to properly monitor a vSphere deployment to detect problems before they occur. He begins the show using tools found within the vSphere suite as ends the show demonst…
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…

722 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question