Click here to Skip to main content
15,885,806 members
Home / Discussions / C#
   

C#

 
QuestionMapping data Pin
abnorm1-Aug-06 22:27
abnorm1-Aug-06 22:27 
QuestionUsercontrol - Respond to parent controls events? Pin
Ian Roberts1-Aug-06 22:21
Ian Roberts1-Aug-06 22:21 
AnswerRe: Usercontrol - Respond to parent controls events? Pin
S. Senthil Kumar2-Aug-06 3:37
S. Senthil Kumar2-Aug-06 3:37 
QuestionWinform Control Event Handling Pin
adityap1-Aug-06 21:22
adityap1-Aug-06 21:22 
Questiondifferent font in each row of listbox Pin
nauty1-Aug-06 21:18
nauty1-Aug-06 21:18 
AnswerRe: different font in each row of listbox Pin
albCode1-Aug-06 21:23
albCode1-Aug-06 21:23 
AnswerRe: different font in each row of listbox Pin
yueue2-Aug-06 4:56
yueue2-Aug-06 4:56 
QuestionError Rolling Back Setup (Installer Class) Pin
abhinish1-Aug-06 20:34
abhinish1-Aug-06 20:34 
hi guys!

need some help.
i m deploying a .net application using the .net setup project and also using the installer class to add some custom actions every thing is running fine..
but i want to rollback the setup if a condition does not matches.. for which i m using the

base.rollback(isavedstate) method but it gives an exception
that "savedstate might be corrupted" and then rollback the setup from the catch block..

i m searching for it from a long time but couldnt figured it out. can any one tell me what i m missing..
i wrote the code some what like this:

   protected override void OnBeforeInstall(IDictionary savedState)<br />
		{<br />
			base.OnBeforeInstall (savedState);<br />
<br />
			try<br />
			{<br />
if(DialogResult.No==(MessageBox.Show("This Setup Will restart your Internet Infromation Service Mannager(IIS). Do you want to Continue ? ","Alert",MessageBoxButtons.YesNo,MessageBoxIcon.Hand)))<br />
			  {<br />
						<br />
				base.Rollback(savedState);<br />
				return;<br />
							<br />
			  }<br />
                        }<br />
			catch(InstallException iex)<br />
			{this.Rollback(savedState);<br />
<br />
			}<br />
			catch(Exception ex)<br />
			{this.Rollback(savedState);<br />
			}<br />
		}


but it gets rollback in the catch block gining the error.

abhinav

QuestionCluster Management APIs Pin
NewDev4241-Aug-06 20:25
NewDev4241-Aug-06 20:25 
QuestionAnimated gif in DataGridView Pin
e_LA1-Aug-06 20:05
e_LA1-Aug-06 20:05 
QuestionTroubles Debugging In .NET 2.0.50727 Pin
white.thief1-Aug-06 19:11
white.thief1-Aug-06 19:11 
AnswerRe: Troubles Debugging In .NET 2.0.50727 Pin
leppie1-Aug-06 20:48
leppie1-Aug-06 20:48 
GeneralRe: Troubles Debugging In .NET 2.0.50727 Pin
white.thief2-Aug-06 5:09
white.thief2-Aug-06 5:09 
Questionhow to get the cpu and memory use ratio ? Pin
Janezzq1-Aug-06 15:06
Janezzq1-Aug-06 15:06 
AnswerRe: how to get the cpu and memory use ratio ? Pin
sundar1563-Aug-06 11:36
sundar1563-Aug-06 11:36 
Questionhow to get the cpu and memory use ratio ? Pin
Janezzq1-Aug-06 15:03
Janezzq1-Aug-06 15:03 
AnswerRe: how to get the cpu and memory use ratio ? Pin
seq-2-Aug-06 11:47
seq-2-Aug-06 11:47 
QuestionLocalization problem ! Pin
Vertyg01-Aug-06 13:08
Vertyg01-Aug-06 13:08 
AnswerRe: Localization problem ! Pin
lmoelleb1-Aug-06 21:23
lmoelleb1-Aug-06 21:23 
GeneralRe: Localization problem ! Pin
Vertyg01-Aug-06 22:02
Vertyg01-Aug-06 22:02 
GeneralRe: Localization problem ! [modified] Pin
lmoelleb1-Aug-06 23:39
lmoelleb1-Aug-06 23:39 
GeneralRe: Localization problem ! Pin
Vertyg02-Aug-06 7:51
Vertyg02-Aug-06 7:51 
QuestionNetwork Access monitoring Pin
sundar1561-Aug-06 11:16
sundar1561-Aug-06 11:16 
AnswerRe: Network Access monitoring Pin
Ingo2-Aug-06 1:47
Ingo2-Aug-06 1:47 
GeneralRe: Network Access monitoring Pin
sundar1562-Aug-06 8:54
sundar1562-Aug-06 8:54 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.