Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / New Users / January 2008

Tip: Looking for answers? Try searching our database.

Need Help With Windows Service Install

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
pbd22 - 07 Jan 2008 16:49 GMT
Hi.

I built a windows service using C#/2005 on a DEV
machine and am a little confused about moving the
service to a production server.

I have successfully installed (installutil) and run the
service on my XP dev machine.

When I install and run it on the 2003 box, I get a
"start and stop - nothing to do" error.

To me, this means there is a wrong file path or
something of that nature. But, I reproduced the
file paths on the XP box and everything checks
out.

So. my thoughts turned to the EXE, DLLS, etc.
On the 2003 box I have just included myservice.exe
and the DLLs in the same folder. But, In my DEV project,
I see  BIN, OBJ, and PROPERTIES folders.

I know I need to use the release EXE from my
project when I move to production, but do I need
to include the properties folder or the OBJ folder?
I assumed i just needed to move the Bin/Release/myproj.exe
file and its associated DLLs to the production server.
I also notice that the DLLs are referenced in the OBJ
folder in my project (there is no OBJ folder in the production
server). Is this going to mess things up?

Please help me sort this out - I know my service works.

Thanks.
Peter Hurford - 08 Jan 2008 11:40 GMT
> Hi.
>
[quoted text clipped - 30 lines]
>
> Thanks.

Am not familiar with this particular error, but there are a few things
you can check.

First of all, as regards what you release, in the simplest case you
basically just need to release the contents of your bin\debug or bin
\release folders. But to be honest it may be worth just creating a
simple setup project - this will automatically suck in the
dependencies so makes life easier as things get more complex.

Next, on your "live" machine, check the registry to see if it the
service got registered properly. HKLM\System\CurrentControlSet
\Services

Next, when you say "run" you actually mean "start", right? You're
starting and stopping this thing from under Administrative Tools
\Services, yes?

From there, other problems which may be likely could be e.g.
permissions on the server, or you may simply need to add some
diagnostic code which blasts out to the event log or something. But
make sure your service is installed properly before trying this.

hth

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.