when i run(compile/debug) an app after editing then it shows exception and save all changes.I shutdown my pc and when after restarting i run it again then code runs fine.

if any one knows reason of this .please do tell me.

See in windows mobile if there is an error code saved n if you restart the IDE and run then it will show the same error which it shows at that time. but if it is not saved then it will run the previous code without error.

sorry, i forget to post in this thread for a year. what actually hapened was that some files of visual studio IDE got currupted (or something else may have happened). But as i reinstalled visual studio IDE my problem was solved.