Link to home
Start Free TrialLog in
Avatar of Pirie
Pirie

asked on

Service not starting

We have a program installed as a service on a Windows Server 2012. The installation went well and the service is shown in the list of services. If we start the service no error message appears on screen, but the service is not working. In the Windows Event we see the following message:

System.IO.FileNotFoundException: Kan bestand of assembly LicenseServiceApp, Version=11.0.0.0, Culture=neutral, PublicKeyToken=4a3c0a4c668b48b4 of een van de afhankelijkheden hiervan niet laden. Het systeem kan het opgegeven bestand niet vinden.
Bestandsnaam: LicenseServiceApp, Version=11.0.0.0, Culture=neutral, PublicKeyToken=4a3c0a4c668b48b4
   bij System.Reflection.Assembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection)
   bij System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection)
   bij System.Reflection.Assembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection)
   bij System.Reflection.Assembly.Load(String assemblyString)
   bij System.UnitySerializationHolder.GetRealObject(StreamingContext context)
   bij System.Web.Hosting.HostingEnvironment.CreateInstance(Type type)
   bij System.Web.Hosting.ApplicationHost.CreateApplicationHost(Type hostType, String virtualDir, String physicalDir)
   bij A.c699fd9982bc616c7034b1cf345df51a0.c72a06687b11280cb7af99771f5b18c9e()

WRSCH: registratie van assembly-bindingen is uitgeschakeld.
Als u assembly-bindingsfouten wilt registreren, stelt u de registerwaarde [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) in op 1.
Opmerking: er is een prestatiestraf gekoppeld aan de registratie van assembly-bindingsfouten.
Als u deze functie wilt uitschakelen, verwijdert u de registerwaarde [HKLM\Software\Microsoft\Fusion!EnableLog].

Unfortunately this message is in Dutch, so I will explain. The error says that ‘the file or assembly LicenseServiceApp…… Or one of its dependencies could not be loaded. The system cannot find the file’.

We have checked the user rights for logon of the service, these are all set to administrator rights. If we run the application as Windows Application it is running without any problem.

Any ideas to solve this problem?
Avatar of Yogeshnmakwana
Yogeshnmakwana
Flag of India image

Check all dependent service and restart them, then try to start this service.

If still the same then might be you have to reinstall application.
Hi,

I would also make sure that you have an up-to-date version of the .NET Framework, it looks like it's calling functions that the Framework actually deals with.

I may be wrong but it may be worth a check - does your system (such as software) meet the software system requirements ?

What is the application, have you contacted the support company of the application and queried the errors with them ?

Regards
Carl McGee
Avatar of Shabbir Rao
Shabbir Rao

Have you installed the same copy of windows on any other machine?

If yes and still it is having the same issue than it is obvious that there is a problem with the copy of the windows than I think you may contact Microsoft customer support.
Avatar of NVIT
As mentioned by Carl, contact the company of the application. Also ask if there is a different way of starting it as a service vs as an application. Sometimes, there may be a switch to provide on command line.
ASKER CERTIFIED SOLUTION
Avatar of Pirie
Pirie

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Pirie

ASKER

No answer helped me