Click here to Skip to main content
15,879,348 members
Home / Discussions / C#
   

C#

 
Questioncannot insert into database 2005 using visual c# 2008 Pin
Adekolurejo11-Jun-09 1:14
Adekolurejo11-Jun-09 1:14 
AnswerRe: cannot insert into database 2005 using visual c# 2008 Pin
Ravi Mori11-Jun-09 1:18
Ravi Mori11-Jun-09 1:18 
QuestionRe: cannot insert into database 2005 using visual c# 2008 Pin
Adekolurejo11-Jun-09 11:31
Adekolurejo11-Jun-09 11:31 
AnswerRe: cannot insert into database 2005 using visual c# 2008 Pin
saurabh sahay11-Jun-09 6:41
saurabh sahay11-Jun-09 6:41 
QuestionRe: cannot insert into database 2005 using visual c# 2008 Pin
Adekolurejo11-Jun-09 11:23
Adekolurejo11-Jun-09 11:23 
AnswerRe: cannot insert into database 2005 using visual c# 2008 Pin
saurabh sahay12-Jun-09 1:28
saurabh sahay12-Jun-09 1:28 
QuestionBandObject _Get if my toolbar is enable /disable. Pin
Nehal Pandya MCA11-Jun-09 0:57
Nehal Pandya MCA11-Jun-09 0:57 
QuestionWindows Service not Installing Pin
Sankalp Verma11-Jun-09 0:23
Sankalp Verma11-Jun-09 0:23 
i have created a windows service using VS2005 and installed it using the installutil.exe. I used the following command to install the service:

installutil /name=MyService /user=<username> /password=<password> <servcieexecutable>

After executing this command I get the output as:

The Commit phase completed successfully.

The transacted install has completed.

But still I can not see the service in services.msc window not Can I see any registry entries for this service. I have admin Privilege on my machine.

Any pointers??

PS: I am using following code to create the service:

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Diagnostics;
using System.ServiceProcess;
using System.Text;
using System.Collections;
using System.Configuration;
using System.IO;
namespace TestService
{
public partial class myService : ServiceBase
{
public myService()
{
InitializeComponent();
}

protected override void OnStart(string[] args)
{
FileStream fs = new FileStream(@"c:\temp\mcWindowsService.txt",
FileMode.OpenOrCreate, FileAccess.Write);
StreamWriter m_streamWriter = new StreamWriter(fs);
m_streamWriter.BaseStream.Seek(0, SeekOrigin.End);
m_streamWriter.WriteLine(" mcWindowsService: Service Started \n");
m_streamWriter.Flush();
m_streamWriter.Close();
}
/// <summary>
/// Stop this service.
/// </summary>
protected override void OnStop()
{
FileStream fs = new FileStream(@"c:\temp\mcWindowsService.txt",
FileMode.OpenOrCreate, FileAccess.Write);
StreamWriter m_streamWriter = new StreamWriter(fs);
m_streamWriter.BaseStream.Seek(0, SeekOrigin.End);
m_streamWriter.WriteLine(" mcWindowsService: Service Stopped \n"); m_streamWriter.Flush();
m_streamWriter.Close();
}

}
}
AnswerRe: Windows Service not Installing Pin
himanshu256111-Jun-09 1:14
himanshu256111-Jun-09 1:14 
AnswerRe: Windows Service not Installing Pin
Sankalp Verma11-Jun-09 1:44
Sankalp Verma11-Jun-09 1:44 
GeneralRe: Windows Service not Installing Pin
himanshu256111-Jun-09 2:05
himanshu256111-Jun-09 2:05 
GeneralRe: Windows Service not Installing Pin
Sankalp Verma11-Jun-09 2:12
Sankalp Verma11-Jun-09 2:12 
Questionparallel port -impout32.dll problem Pin
antew10-Jun-09 23:53
antew10-Jun-09 23:53 
AnswerRe: parallel port -impout32.dll problem Pin
Christian Graus10-Jun-09 23:58
protectorChristian Graus10-Jun-09 23:58 
AnswerRe: parallel port -impout32.dll problem Pin
Michael Bookatz11-Jun-09 0:28
Michael Bookatz11-Jun-09 0:28 
QuestionFTP server [modified] Pin
henur10-Jun-09 23:36
henur10-Jun-09 23:36 
AnswerRe: FTP server Pin
Michael Bookatz11-Jun-09 0:25
Michael Bookatz11-Jun-09 0:25 
GeneralRe: FTP server Pin
henur11-Jun-09 0:49
henur11-Jun-09 0:49 
AnswerRe: FTP server Pin
DavidKiryazi11-Jun-09 16:17
DavidKiryazi11-Jun-09 16:17 
GeneralRe: FTP server Pin
henur11-Jun-09 22:24
henur11-Jun-09 22:24 
Questionwhich is preferable Pin
Vijjuuu.10-Jun-09 23:11
Vijjuuu.10-Jun-09 23:11 
AnswerRe: which is preferable Pin
Michael Bookatz10-Jun-09 23:19
Michael Bookatz10-Jun-09 23:19 
GeneralRe: which is preferable Pin
Vijjuuu.10-Jun-09 23:21
Vijjuuu.10-Jun-09 23:21 
AnswerRe: which is preferable Pin
saanj10-Jun-09 23:20
saanj10-Jun-09 23:20 
GeneralRe: which is preferable Pin
Vijjuuu.10-Jun-09 23:21
Vijjuuu.10-Jun-09 23:21 

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.