Click here to Skip to main content
15,921,716 members
Home / Discussions / C#
   

C#

 
AnswerRe: SQL Connection dropping Pin
Ennis Ray Lynch, Jr.11-Jun-09 3:15
Ennis Ray Lynch, Jr.11-Jun-09 3:15 
AnswerRe: SQL Connection dropping Pin
saurabh sahay11-Jun-09 6:34
saurabh sahay11-Jun-09 6:34 
QuestionLooking for a spesific control Pin
teknolog12311-Jun-09 1:53
teknolog12311-Jun-09 1:53 
AnswerRe: Looking for a spesific control Pin
Rob Philpott11-Jun-09 2:36
Rob Philpott11-Jun-09 2:36 
AnswerRe: Looking for a spesific control [modified] Pin
saurabh sahay11-Jun-09 6:36
saurabh sahay11-Jun-09 6:36 
GeneralRe: Looking for a spesific control Pin
teknolog12312-Jun-09 7:19
teknolog12312-Jun-09 7:19 
GeneralRe: Looking for a spesific control Pin
saurabh sahay12-Jun-09 13:18
saurabh sahay12-Jun-09 13:18 
QuestionDatagridview double enter event handler Pin
spikekirk11-Jun-09 1:31
spikekirk11-Jun-09 1:31 
AnswerRe: Datagridview double enter event handler [modified] Pin
Henry Minute11-Jun-09 2:06
Henry Minute11-Jun-09 2:06 
GeneralRe: Datagridview double enter event handler Pin
saurabh sahay11-Jun-09 6:38
saurabh sahay11-Jun-09 6:38 
GeneralRe: Datagridview double enter event handler Pin
Henry Minute11-Jun-09 6:42
Henry Minute11-Jun-09 6:42 
GeneralRe: Datagridview double enter event handler Pin
saurabh sahay11-Jun-09 6:47
saurabh sahay11-Jun-09 6:47 
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 

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.