Solved

Windows Service - Acting strange in Server 2003

Posted on 2004-10-26
152 Views
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?

cheers
0
Question by:splavik
    2 Comments
     

    Author Comment

    by:splavik
    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


    0
     

    Accepted Solution

    by:
    PAQed with points refunded (60)

    modulo
    Community Support Moderator
    0

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Shellfire Box VPN + Lifetime Subscription

    The Shellfire Box easily connects all of your devices, even those that don't offer the possibility to establish a safe vpn connection. Access blocked content and surf safely, no matter where in the world you are located.

    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 …
    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…
    Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…
    This video discusses moving either the default database or any database to a new volume.

    934 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

    Need Help in Real-Time?

    Connect with top rated Experts

    23 Experts available now in Live!

    Get 1:1 Help Now