Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Run as service problem
Message
De
08/01/2005 17:26:18
 
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
00975455
Message ID:
00975456
Vues:
16
>I have a small exe which runs just fine when i run it as a console app. I converted it into a System Service and installed the service with installutil.
>
>The problem is that this exe refers to external dll (located in the same bin directory as the exe) When the exe tries to load one of the dll i get a FileNotFoundExeption. if i copy the dlls to whe winnt\system32 dir, everything is fine. but i don't want to do that.
>
>Is there any difference on dependency search path in .Net for service application ? And how could i resolve this without copying the dlls into the system directory or to the GAC ?

Did you try to reference that file with:
        lcStartupDirectory = Application.StartupPath + "\"
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform