debugging windows service vb.net express 2008

Hi can anyone help me to do this?

i found one website that tells me to go into the design view right click and select 'add installer'.

however vb 2008 express doesn't have the template so the option isn't there?

many thank

Matt.
flynnyAsked:
Who is Participating?
 
DhaestConnect With a Mentor Commented:
How to: Debug Windows Service Applications  
http://msdn.microsoft.com/en-us/library/7a50syb3(VS.80).aspx
0
 
DhaestCommented:
Can you create windows services with the express edition ?
According this not: No support for creating Windows Services
http://en.wikipedia.org/wiki/Microsoft_Visual_Studio_Express#Visual_Basic_Express

(you can with a workaround, ... http://www.dotheweb.net/articles/dotnet/servicesexpress/services.aspx)
0
 
flynnyAuthor Commented:
i downloaded a template file for the service from here

http://www.planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=4511&lngWId=10

0
Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
flynnyAuthor Commented:
ok following the workaround that you posted is there anyway i can change the installer (page 3) to be automatically called from within vb?

i.e.
can

installutil <dir>

be called by the program rather than using a command prompt?
0
 
DhaestCommented:
You need to install the service first before you can start debugging it.
To install a service, you need to do this through the command prompt
0
 
flynnyAuthor Commented:
ok i've tried running

installutil C:\myService.exe

and i get the error

access to the path 'c:\windows\Microsoft.Net\Framework\v2.0.50727\InstallUtil.InstallLog' is denied

any ideas how to get around this?

many thanks,

matt.
0
 
flynnyAuthor Commented:
sorry i wasnt runnig  the cmd in administrator mode. its installed the service now i can see 'NewService1' in the list however when i try and start it i get the message

the newservice1 service started on Locl Computer and then stopped. Some services stop automatically if they are not in use by any other services ro programs.

any ideas what this means?
0
 
DhaestCommented:
Than there is a problem  (bug, problem) in your service.
0
 
flynnyAuthor Commented:
ok great i've manged to start the service now and as per the example it is logging the entries.

is there any way i can debug the code, i.e utilise break points, etc?
0
 
flynnyAuthor Commented:
superb thank you so muchfor all your help!
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.