Signed assemblies do not allow my service

When I sign assemblies in my service using Verisign signtool.exe, it does not start when the machine starts on a computer running Windows 2003 Server. The event log has two events:

"Timeout (30,000 milliseconds) waiting for xxx service to connect." and "xxx Service failed to start due to the following error: The service did not respond to a start or control request in a timely manner.

It starts normally after starting the machine. It works great in XP and Vista. It starts normally when assemblies are unsigned.

+5
source share
3 answers

.NET: , , . ServiceBase.RequestAdditionalTime, : , . : SCM .

, Authenticode , Publisher, : .exe.config:

<configuration>
    <runtime>
        <generatePublisherEvidence enabled="false"/>
    </runtime>
</configuration>

- (CAS): PublisherMembershipCondition, . , , , ( ).

, 2010: , 4.0.NET Framework, .

+4

spacedog, Authenticode . , , ? , Authenticode , , , . , Authenticode.

GAC - - , (. Authenticode and Assemblies) / , .

- Windows . :

- . , , ; . , SetServiceStatus , , - .

SetServiceStatus (Service Control Manager, SCM), , ServiceBase.RequestAdditionalTime.

+1

All Articles