Click here to Skip to main content
15,910,009 members
Home / Discussions / Windows Forms
   

Windows Forms

 
AnswerRe: listview alternative Pin
ghaberek18-Mar-11 7:09
ghaberek18-Mar-11 7:09 
Questionencryption/decryption on the fly Pin
jcom202029-Jan-11 6:38
jcom202029-Jan-11 6:38 
AnswerRe: encryption/decryption on the fly Pin
Dave Kreskowiak5-Feb-11 13:40
mveDave Kreskowiak5-Feb-11 13:40 
QuestionChange the connectionstring Pin
jadughar26-Jan-11 5:00
jadughar26-Jan-11 5:00 
AnswerRe: Change the connectionstring Pin
Ger Hayden26-Jan-11 5:48
Ger Hayden26-Jan-11 5:48 
GeneralRe: Change the connectionstring Pin
jadughar30-Jan-11 23:31
jadughar30-Jan-11 23:31 
GeneralRe: Change the connectionstring Pin
Ger Hayden3-Feb-11 0:24
Ger Hayden3-Feb-11 0:24 
QuestionWindows service OnBeforeInstall method throwing exception Pin
indian14321-Jan-11 11:21
indian14321-Jan-11 11:21 
Hi All,

I have projectinstaller class for my windows service in C#.Net, my windows service is hosting a WCF service in it. When I run the instalutil command on the command prompt.
Its throwing the below exception, what could be the reason for this. I am unable to start the service at all. Can any body please help me in this? Any sort of link or any help
would be greatly appreciated.

An exception occurred during the Rollback phase of the CalculatorWindowsServiceAppl.ProjectInstaller installer.
System.ArgumentException: The savedState dictionary does not contain the expected values and might have been corrupted.
An exception occurred during the Rollback phase of the installation. This exception will be ignored and the rollback will 
continue. However, the machine might not fully revert to its initial state after the rollback is complete.


protected override void OnBeforeInstall(IDictionary savedState)
{
            serviceInstaller1.ServiceName = "CalculatorWindowsService";

            base.OnBeforeInstall(savedState);

            String username = GetContextParameter("username");
            String password = GetContextParameter("password");
            String account = GetContextParameter("account");

            //String username = @"talx/c-aaleem";
            //String password = "mohammadathotmail";

            if (!String.IsNullOrEmpty(username))
                serviceProcessInstaller1.Username = username;
            if (!String.IsNullOrEmpty(password))
                serviceProcessInstaller1.Password = password;
            
            serviceProcessInstaller1.Context.LogMessage("Any Thing");
}

Thanks & Regards,

Md. Abdul Aleem
NIIT technologies
modified on Friday, January 21, 2011 5:31 PM

AnswerRe: Windows service OnBeforeInstall method throwing exception Pin
Ravi Sant6-Feb-11 23:54
Ravi Sant6-Feb-11 23:54 
QuestionHow to end CPU Processes Pin
Mahmood Rasuli21-Jan-11 10:22
Mahmood Rasuli21-Jan-11 10:22 
AnswerRe: How to end CPU Processes Pin
Dave Kreskowiak21-Jan-11 10:31
mveDave Kreskowiak21-Jan-11 10:31 
AnswerRe: How to end CPU Processes Pin
gogosai7-Mar-11 13:26
gogosai7-Mar-11 13:26 
QuestionQuestion about webbrowser.navigate Pin
neodeaths18-Jan-11 18:19
neodeaths18-Jan-11 18:19 
QuestionProblem in accessing an event of a user control from another in Win Forms Pin
Member 46280816-Jan-11 20:22
Member 46280816-Jan-11 20:22 
AnswerRe: Problem in accessing an event of a user control from another in Win Forms Pin
RobCroll16-Jan-11 23:24
RobCroll16-Jan-11 23:24 
QuestionPlay mp3 file in winforms Pin
polycom12327-Dec-10 21:33
polycom12327-Dec-10 21:33 
AnswerRe: Play mp3 file in winforms Pin
Abhinav S27-Dec-10 21:51
Abhinav S27-Dec-10 21:51 
GeneralRe: Play mp3 file in winforms Pin
polycom12329-Dec-10 2:00
polycom12329-Dec-10 2:00 
QuestionHow to show excel inside a window form? Pin
neodeaths15-Dec-10 17:58
neodeaths15-Dec-10 17:58 
AnswerRe: How to show excel inside a window form? Pin
Prerak Patel16-Dec-10 3:04
professionalPrerak Patel16-Dec-10 3:04 
GeneralRe: How to show excel inside a window form? Pin
RaviRanjanKr17-Dec-10 18:14
professionalRaviRanjanKr17-Dec-10 18:14 
AnswerRe: How to show excel inside a window form? Pin
Eddy Vluggen16-Dec-10 4:53
professionalEddy Vluggen16-Dec-10 4:53 
QuestionProgramming of interactive desktop background Pin
hansdam9-Dec-10 7:58
hansdam9-Dec-10 7:58 
AnswerRe: Programming of interactive desktop background Pin
Eddy Vluggen9-Dec-10 9:11
professionalEddy Vluggen9-Dec-10 9:11 
QuestionReading from Comboboxes on a datagrid view (C++/CLI - Windows Forms App in VS2008) [modified] Pin
Ger Hayden8-Dec-10 9:50
Ger Hayden8-Dec-10 9:50 

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.