Send a suggestion!

We're building a brand new version of the site, and we'd love to hear your ideas

Members

Technology Zones

IBM Learning Center

Articles

Hosted By

MaximumASP

Info

[3441] Creating a Windows Service in VB.NET

Last post 05-23-2008 10:35 AM by mekaushik. 102 replies.
Page 7 of 7 (103 items) « First ... < Previous 3 4 5 6 7
Sort Posts: Previous Next
  • 02-09-2006 11:14 PM In reply to

    Nice One!!

    Allthough its of no use to me as i would not be able to make a decent service... Still wanted to say that is an awesome article, definitely something i will look into more now i know the basics :D thanks!
    • Post Points: 0
  • Advertisement

    • Red Gate Software

    Advertisement

    Want to boost your .NET application performance?

    Some developers always seem to write efficient and lightening-fast code. What is their secret? It’s ANTS Profiler. “We improved the performance of the application up to 10 times” Dan Ports, Intrigma.

    Try it for yourself now.

  • 04-13-2006 1:41 PM In reply to

    • ravi_fss
    • Not Ranked
    • Joined on 04-13-2006
    • India
    • New Member
    • Points 30

    Re: [3441] Creating a Windows Service in VB.NET

    hi jayesh,

      i followed the steps given by you but i am unable to install the service.

    whenever i double click installutil.exe it open some xml code

    and when i run my program it gioves error service not started

    i am working on win xp .

    will this code work on win xp.

     

    thanks

    ravi verma

    • Post Points: 5
  • 04-13-2006 1:42 PM In reply to

    • ravi_fss
    • Not Ranked
    • Joined on 04-13-2006
    • India
    • New Member
    • Points 30

    Re: [3441] Creating a Windows Service in VB.NET

    hi jayesh,

      i followed the steps given by you but i am unable to install the service.

    whenever i double click installutil.exe it open some xml code

    and when i run my program it gives error service not started

    i am working on win xp .

    will this code work on win xp.

     

    thanks

    ravi verma

    • Post Points: 5
  • 04-22-2006 11:47 AM In reply to

    • vb0701
    • Not Ranked
    • Joined on 04-22-2006
    • India
    • New Member
    • Points 5

    Re: [3441] Creating a Windows Service in VB.NET

    Gr8 help Jayesh Sir !

    it works smoothly; do exactly as written... kindly use double qoutes as well as indicated by him and copy the exact path from your own explorer window to .net command prompt

    my worked though after 2-3 failures

    cheers









    • Post Points: 5
  • 04-22-2006 3:52 PM In reply to

    • Domeika
    • Not Ranked
    • Joined on 04-22-2006
    • United States
    • New Member
    • Points 5

    Re: [3441] Creating a Windows Service in VB.NET

    I first tried first method without success so I ran from the command prompt and it worked as advertised.
    • Post Points: 5
  • 05-14-2006 10:50 PM In reply to

    • yor
    • Not Ranked
    • Joined on 05-14-2006
    • Denmark
    • New Member
    • Points 5

    a simple way to install your service programmatically Eg. a setupprogram

    I this example installutil.exe is located here "c:\installutil.exe

    yourService.exe is the Your  Service  

    the code:

    Try

    Process.Start(

    "c:\installutil.exe", ChrW(34) & "C:\yourService\yourService\bin\Debug\yourService.exe" & ChrW(34))

    Catch ex As Exception

    MsgBox(ex.Message)

    End Try

     

    • Post Points: 5
  • 06-05-2006 6:43 PM In reply to

    Re: Windows Service using Timer

    • Post Points: 5
  • 06-07-2006 7:26 AM In reply to

    • CForsyth
    • Not Ranked
    • Joined on 06-07-2006
    • United States
    • New Member
    • Points 95

    Re: [3441] Creating a Windows Service in VB.NET

    Can this article be written for Visual Basic.Net 2005? It doesn't work if I follow it using VB 2005. :(
    • Post Points: 5
  • 12-08-2006 11:03 PM In reply to

    • bedfordn
    • Not Ranked
    • Joined on 12-08-2006
    • New Member
    • Points 5

    Re: [3441] Creating a Windows Service in VB.NET

    If you're having problems getting this tutorial to work with VS 2005, it's probably because you need to switch to using a different Timer class.  You can view more info here:
    http://weblogs.asp.net/sibrahim/archive/2004/01/13/58429.aspx

    A half-decent example of how to use the Threading.Timer class can be found here:
    http://www.informit.com/guides/content.asp?g=dotnet&seqNum=203&rl=1

    Hope this helps someone else...took me a couple hours to figure out what was going on!









    • Post Points: 5
  • 08-06-2007 7:04 PM In reply to

    • Archna
    • Not Ranked
    • Joined on 08-06-2007
    • United States
    • New Member
    • Points 15

    Re: [3441] Creating a Windows Service in VB.NET

    I am using VS 2005/ .net 2.0 and when I try to create a project in vb.net environment, I do not see the Windows Service template. I however can see the template when I use the c# environment. Can anybody tell me what could be the issue. Thanks.

    • Post Points: 15
  • 08-10-2007 7:28 AM In reply to

    • khari6579
    • Top 25 Contributor
    • Joined on 11-04-2005
    • India
    • Guru
    • Points 7,540

    Re: [3441] Creating a Windows Service in VB.NET

    Hi Archu,
     I think i may be a Service pack Problem...Here in my system its showing the Windows Service template...
    if u already installed Service Pack or not u try to install it.

    Good Luck

    Regards
    Hari K......








    Remember you are born to live, Don't live because you are born!!!
    Don't go the way life takes you.,Take life the way you go!!!
    • Post Points: 5
  • 09-12-2007 12:46 PM In reply to

    Re: [3441] Creating a Windows Service in VB.NET

    You might be looking without clicking + sign on Visual Basic projects.Try expending the tree for visual basics projects and then lookin windows project you will see windows service project.

     

    bye

    • Post Points: 5
  • 05-23-2008 10:35 AM In reply to

    • mekaushik
    • Not Ranked
    • Joined on 05-23-2008
    • India
    • New Member
    • Points 5

    Re: [3441] Creating a Windows Service in VB.NET

    select otherlanguage then visual basic then click on windows option then u will find the windows service templete  on the right box.

    try it hope it wiill solve ur problem

    kaushik

    • Post Points: 5
Page 7 of 7 (103 items) « First ... < Previous 3 4 5 6 7