Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Running VS as a service - SOLVED!
Message
De
29/04/2019 19:42:17
 
 
À
29/04/2019 19:38:32
Information générale
Forum:
Visual Studio
Catégorie:
Autre
Divers
Thread ID:
01668300
Message ID:
01668308
Vues:
30
>It's just a guess, but it might have been related to pathing.
>When I run it manually it uses the pathing established with my log in.
>To get the app to run as a service, I had to change all the network drive letters in the app.config to their natural equivalents.
>The app might still have been looking for the report viewer on a network path.
>Including the report viewer in the app avoided that issue, if it was one.

That would certainly be something to check.

I try to universalize all that at the application setting level. Thus, if it work on one specific interface, it should work on another.

I use UNC approach everywhere. It turned out to be a good approach so far.

One other thing to consider is to always have a universal startup path that your application can rely on. Thus, from a global setting the application reads at startup, you can access the related directories from the same root path, no matter from which interface the application got started.
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
Répondre
Fil
Voir

Click here to load this message in the networking platform