473,397 Members | 2,099 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,397 software developers and data experts.

Windows Service won't start when referenced assemblies are in the GAC

I was wondering if anyone else has experienced this problem. On certain
machines we get the standard error when starting the service manually
(or on reboot):

"Error 1503: The service did not respond to the start or control
request in a timely fashion"
and
"Timeout(3000 milliseconds) waiting for the <MyServiceNameto connect"

I added code to the constructor of the service to write a message to
the event log and it was not getting called. So no hidden message boxes
or errors. I changed the service to log on as the admin account instead
of local system and that did not work. The only thing that would work
was to rebuild the service and the referenced assemblies without strong
naming them. The service references 3 assemblies, all of which are
installed to the GAC. I re-versioned the assebles and removed the
strong naming. It works, but why? We have tested this on several
machines without any issues.The machine in which the error occurs is
fast enough. I has more that 1 GB of ram and 3Ghz processor.Also, I am
not sure what actually causes this scenario.I would appreciate any help
or suggestions.

Aug 10 '06 #1
2 5163
Hello, lo************@gmail.com!

You can use fuslogvw tool for further investigation of
binding issue with strong named assemblies.

Generally windows services based on ServiceBase write exceptions
to the event log, or if you're on .NET 2.0 - CLR will add exception desc to
event log.

--
Regards, Vadym Stetsyak
www: http://vadmyst.blogspot.com
Aug 11 '06 #2
It was written in VS 2003 so .NET 1.1. The only error that I get in the
event log is the timeout error that I mentioned. "Timeout (3000
milliseconds) waiting for the <ServiceNameto connect. I will try the
tool that you mentioned. Thanks for the recommendation. What doesn't
make sense is that we have regular windows apps that reference the same
assemblies and they start without any errors.

Vadym Stetsyak wrote:
Hello, lo************@gmail.com!

You can use fuslogvw tool for further investigation of
binding issue with strong named assemblies.

Generally windows services based on ServiceBase write exceptions
to the event log, or if you're on .NET 2.0 - CLR will add exception desc to
event log.

--
Regards, Vadym Stetsyak
www: http://vadmyst.blogspot.com
Aug 21 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: 0to60 | last post by:
I have a windows service that when started creates two threads: one thread that runs a TcpListener waiting for TcpClients to connect, and another thread that reads from the resulting sockets. My...
0
by: LarryH | last post by:
Hi all, I going thru the MCSD course and I am creating a Windows Service. The Service compiles with no errors and I can install it using "Installutil" with no problem. But when I go into Services...
2
by: Mark | last post by:
I created an extremely simple windows service that only writes to the EventLogs on Stop and Pause. I installed it using the InstallUtil.exe program, the output of which is below. It appears to be...
3
by: Chuck Bowling | last post by:
Ok, I'm not sure this is a C# question but here goes anyhow... I used this walkthru to create a windows service: ...
3
by: mpriem | last post by:
Hi, I am developing my very first Windows Service. I want to query AD every 5 minutes to generate a Report which I will use in a website. I use the following testcode, but the service won't...
6
by: Tim Werth | last post by:
I posted this to microsoft.public.dotnet.general then I saw posts about services on this newsgroup. So, sorry for the independent cross-posting. This might not be the best place to post this,...
9
by: Yasir Zaheer | last post by:
I have made a windows service which is configured to start automatically at the system startup under the USER account type. The service is working perfectly fine when I try to start it manually,...
1
by: Ralf | last post by:
Situation: .NET windows service All works fine until we digitally signed the service exe. After that starting the service often fails (A timeout was reached (30000 milliseconds) while waiting...
4
by: =?Utf-8?B?am1hZ2FyYW0=?= | last post by:
I've written a .net Windows service in C#. It works most of the time for most people. It is configured to automatically start when Windows boots. Sometimes it fails to start on Windows XP during...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.