Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium


Windows Service - Acting strange in Server 2003

Posted on 2004-10-26
Medium Priority
Last Modified: 2010-04-24

Hi all,

Created a VB.Net Windows Service -

quick timer - some quick File IO (opens file, writes a line to it)

the basics have been taken from this site : http://www.codeguru.com/vb/gen/vb_system/services/article.php/c4825/

using .Net Framework 1.1.4322 (to be exact)

anyway here is the deal (development machine = winxp pro)
machine this is supposed to run on = win 2003 server

so, on winxp pro everything works great, on win2003 server i can start the service and all, and it shows
running, but it does NOT generate any Event Logs (other then "succesfully started" and stopped) nor it throws an error
nor it writes to the file i want to write into which simply located in C:\File.txt

any ideas why Win 2003 would not let me do some of the things?

Question by:splavik

Author Comment

ID: 12427539
Never mind figured it out....

I did find a few things about this, ultimately it was my "forgetful mind"

here is what i did find on this subject
below is an excerpt from another venue:
>We have finally managed to figure out the problem.
>System.Management.dll does not have permission to the "Local Service"
>and "Network Service" accounts automatically in W2k3 Server, but it
>does in XP. Once I added these accounts my code runs fine.

Ultimately my problem was this, when i copied the files over to a different folder, i just copied the .exe that was
the Windows Service, what i have forgotten about were any DLL's that were in my /bin directory
as well as (and this is the BIG KICKER) the service.exe.config and service.pdb (don't know if this is really necessary but why not)

so i hope this helps other ppl out there... cheers


Accepted Solution

modulo earned 0 total points
ID: 12752410
PAQed with points refunded (60)

Community Support Moderator

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

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.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction As chip makers focus on adding processor cores over increasing clock speed, developers need to utilize the features of modern CPUs.  One of the ways we can do this is by implementing parallel algorithms in our software.   One recent…
1.0 - Introduction Converting Visual Basic 6.0 (VB6) to Visual Basic 2008+ (VB.NET). If ever there was a subject full of murkiness and bad decisions, it is this one!   The first problem seems to be that people considering this task of converting…
This video shows how to quickly and easily deploy an email signature for all users in Office 365 and prevent it from being added to replies and forwards. (the resulting signature is applied on the server level in Exchange Online) The email signat…
As many of you are aware about Scanpst.exe utility which is owned by Microsoft itself to repair inaccessible or damaged PST files, but the question is do you really think Scanpst.exe is capable to repair all sorts of PST related corruption issues?
Suggested Courses

580 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question