[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now


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
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions

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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

A while ago, I was working on a Windows Forms application and I needed a special label control with reflection (glass) effect to show some titles in a stylish way. I've always enjoyed working with graphics, but it's never too clever to re-invent …
Since .Net 2.0, Visual Basic has made it easy to create a splash screen and set it via the "Splash Screen" drop down in the Project Properties.  A splash screen set in this manner is automatically created, displayed and closed by the framework itsel…
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…
Are you ready to place your question in front of subject-matter experts for more timely responses? With the release of Priority Question, Premium Members, Team Accounts and Qualified Experts can now identify the emergent level of their issue, signal…

656 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