• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1123
  • Last Modified:

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.
0
flynny
Asked:
flynny
  • 6
  • 4
1 Solution
 
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
 
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
Transaction-level recovery for Oracle database

Veeam Explore for Oracle delivers low RTOs and RPOs with agentless transaction log backup and transaction-level recovery of Oracle databases. You can restore the database to a precise point in time, even to a specific transaction.

 
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
 
DhaestCommented:
How to: Debug Windows Service Applications  
http://msdn.microsoft.com/en-us/library/7a50syb3(VS.80).aspx
0
 
flynnyAuthor Commented:
superb thank you so muchfor all your help!
0

Featured Post

Visualize your virtual and backup environments

Create well-organized and polished visualizations of your virtual and backup environments when planning VMware vSphere, Microsoft Hyper-V or Veeam deployments. It helps you to gain better visibility and valuable business insights.

  • 6
  • 4
Tackle projects and never again get stuck behind a technical roadblock.
Join Now