Solved

Application identity is not set. Application.restart

Posted on 2013-02-07
4
1,235 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
  • 2
4 Comments
 
LVL 42

Expert Comment

by:sedgwick
Comment Utility
is it while debugging?
0
 
LVL 142

Expert Comment

by:Guy Hengel [angelIII / a3]
Comment Utility
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
Comment Utility
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 500 total points
Comment Utility
0

Featured Post

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Suggested Solutions

Flash (http://en.wikipedia.org/wiki/Adobe_Flash) has evolved over the years to where it has become a masterful tool for displaying content screen.  It has excellent layout placement, UI precision as well as rendering capabilities. This, along with t…
Normally the drop down box control found in the .Net framework tools is able to select just one data and value at a time, which is displayed on the text area.   But what if you want to have multiple values to be selected in the drop down box? As …
This video discusses moving either the default database or any database to a new volume.
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

771 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now