TARGETDIR Issues on 1 PC

Peque

Member
Joined
Sep 14, 2023
Messages
15
Programming Experience
Beginner
Sorry if thyis is not posteds in correct forum - but Couldnt find anything that adapts to my question

I have developed a simple ADD-ON for Outlook - having customized location for delievering orders for customers.
Its only for a few users, so I created a local share - so it'll check and download if any updates are releashed to the plugin

But on one of these PC's - the plugin disable after some times - changing the network share as
In the KontrolPanel - add/remove programs I can see on that one computer it'll chamge the update path from
shares.company.com/share/OutlookFWS.vsto to TARGETDIR/OutlookFWS.vsto - and then it disables the plugin - but thats only on one out of 6 PC where its installed

Allthough these are laptops - they never works from home,. but I cannot figure out whats the difference here - since all are on Windows11 and Office365
I can remove the plugin, and reinstall it again - but within 14days - its deactivated - and the reference are changed to TARGETDIR/OutlookFWS.vsto
Only on that one PC.

I have no issues on a Computer that I'm developing from @ home - and then reconnecting through VPN - It never change that parameter
Only on that 1 PC - it'll change the updatepath from shares.company.com/share/OutlookFWS.vsto - to TARGETDIR/OutlookFWS.vsto

What can I do here - Is there anything else I can do here - since this is quite
What is the right way to do this ?

Thanks in advance
P
 
How are you deploying your add-in?

On the surface, this format look like a C# question, but rather a deployment question, and so you are likely in the correct forum.
 
I having setup a network share in the HQ - where all 6laptop's are connected (and mine from home through VPN - deploying to the share - and having the clients look for updates once a day if there pushed a new version out.
1704217559566.png


I publish through a VPN to the HQ to the share - and can see its installing the updates - but on one of the 6laptop - it'll change the inside outlook the path of the installed plugin:
1704218292068.png

to file://TARGETDIR/outlookFWS.vsto - and are deactivating the plugin in the users outlook.
I have tried almost anything - and not sure if this is just a monday PC - since this is the only one PC that do the same trick over and over again - where the rest does not have these issues.
 
I mean are you deploying your app via ClickOnce or via Windows Installer?
 
Well - I have tried several times with the same results that I can't find where to look in this matters.
This is a small plugin for Outlook Toolbar - which are placed in a inhouse server - but also available through VPN
From the logfile I've created for this clickonce installer - where here's a version 1.0.2.6 that are upgraded to 1.0.2.7 (sorry for the danish - but thats the language on the PC)
C#:
ERSIONSOPLYSNINGER OM PLATFORM
    Windows             : 10.0.22631.0 (Win32NT)
    Common Language Runtime     : 4.0.30319.42000
    System.Deployment.dll         : 4.8.9176.0 built by: NET481REL1LAST_B
    clr.dll             : 4.8.9181.0 built by: NET481REL1LAST_C
    dfdll.dll             : 4.8.9176.0 built by: NET481REL1LAST_B
    dfshim.dll             : 10.0.22621.1 (WinBuild.160101.0800)

KILDER
    Implementerings-URL            : file://shares.example.com/Software/OutlookFWS/OutlookFWS.vsto
    Program-URL            : file://shares.example.com/Software/OutlookFWS/Application%20Files/OutlookFWS_1_0_2_6/OutlookFWS.exe.manifest

ID'ER
    Implementerings-id        : OutlookFWS.vsto, Version=1.0.2.6, Culture=neutral, PublicKeyToken=1768b848874888c8, processorArchitecture=msil
    Program-id        : OutlookFWS.exe, Version=1.0.2.6, Culture=neutral, PublicKeyToken=1768b848874888c8, processorArchitecture=msil, type=win32

PROGRAMOVERSIGT
    * Kun onlineprogram.

FEJLOVERSIGT
    Der blev ikke fundet nogen fejl under handlingen.

OVERSIGT OVER FEJL I KOMPONENTLAGERTRANSAKTIONER
    Der blev ikke fundet nogen transaktionsfejl.

ADVARSLER
    Der blev ikke givet nogen advarsler under handlingen.

STATUS FOR HANDLING
    Der er ingen tilgængelige faseoplysninger.

OPLYSNINGER OM FEJL
    Der blev ikke fundet nogen fejl under handlingen.

TRANSAKTIONSOPLYSNINGER FOR KOMPONENTLAGER
    Der er ingen tilgængelige transaktionsoplysninger.

DETAILED EXECUTION FLOW
[10:15:46] : Activation through IPHM APIs started.
[10:15:46] : Method Call : InPlaceHostingManager(file://shares.example.com/Software/OutlookFWS/OutlookFWS.vsto,False) called.
[10:15:46] : Method Call : InPlaceHostingManager.GetManifestAsync() called.
[10:15:46] : Internal state=GettingManifest
[10:15:46] : Method Call : DeploymentManager.BindAsync() called.
[10:15:46] : Binding started in a worker thread.
[10:15:46] : Internal state=DownloadingDeploymentInformation
[10:15:46] : expectedAppId=file://shares.example.com/Software/OutlookFWS/OutlookFWS.vsto#OutlookFWS.vsto, Version=1.0.2.6, Culture=neutral, PublicKeyToken=1768b848874888c8, processorArchitecture=msil/OutlookFWS.exe, Version=1.0.2.6, Culture=neutral, PublicKeyToken=1768b848874888c8, processorArchitecture=msil, type=win32
[10:15:46] : Application is found in store and it is the CurrentBind. Binding with appid.
[10:15:46] : _cached=True
[10:15:46] : _isupdate=False
[10:15:46] : Binding is successful.
[10:15:46] : Creating GetManifestCompletedEventArgs.
[10:15:46] : Application identity=file://shares.example.com/Software/OutlookFWS/OutlookFWS.vsto#OutlookFWS.vsto, Version=1.0.2.6, Culture=neutral, PublicKeyToken=1768b848874888c8, processorArchitecture=msil/OutlookFWS.exe, Version=1.0.2.6, Culture=neutral, PublicKeyToken=1768b848874888c8, processorArchitecture=msil, type=win32
[10:15:46] : Subscription identity=OutlookFWS.vsto, Culture=neutral, PublicKeyToken=1768b848874888c8, processorArchitecture=msil
[10:15:46] : IsCached=True
[10:15:47] : Method Call : InPlaceHostingManager.Dispose() called.
[10:15:47] : Internal state=Done

VERSIONSOPLYSNINGER OM PLATFORM
    Windows             : 10.0.22631.0 (Win32NT)
    Common Language Runtime     : 4.0.30319.42000
    System.Deployment.dll         : 4.8.9176.0 built by: NET481REL1LAST_B
    clr.dll             : 4.8.9181.0 built by: NET481REL1LAST_C
    dfdll.dll             : 4.8.9176.0 built by: NET481REL1LAST_B
    dfshim.dll             : 10.0.22621.1 (WinBuild.160101.0800)

KILDER
    Implementerings-URL            : file://shares.example.com/Software/OutlookFWS/OutlookFWS.vsto
    Program-URL            : file://shares.example.com/Software/OutlookFWS/Application%20Files/OutlookFWS_1_0_2_7/OutlookFWS.exe.manifest

ID'ER
    Implementerings-id        : OutlookFWS.vsto, Version=1.0.2.7, Culture=neutral, PublicKeyToken=1768b848874888c8, processorArchitecture=msil
    Program-id        : OutlookFWS.exe, Version=1.0.2.7, Culture=neutral, PublicKeyToken=1768b848874888c8, processorArchitecture=msil, type=win32

PROGRAMOVERSIGT
    * Kun onlineprogram.

FEJLOVERSIGT
    Der blev ikke fundet nogen fejl under handlingen.

OVERSIGT OVER FEJL I KOMPONENTLAGERTRANSAKTIONER
    Der blev ikke fundet nogen transaktionsfejl.

ADVARSLER
    Der blev ikke givet nogen advarsler under handlingen.

STATUS FOR HANDLING
    Der er ingen tilgængelige faseoplysninger.

OPLYSNINGER OM FEJL
    Der blev ikke fundet nogen fejl under handlingen.

TRANSAKTIONSOPLYSNINGER FOR KOMPONENTLAGER
    Der er ingen tilgængelige transaktionsoplysninger.

DETAILED EXECUTION FLOW
[07:23:54] : Activation through IPHM APIs started.
[07:23:54] : Method Call : InPlaceHostingManager(file://shares.example.com/Software/OutlookFWS/OutlookFWS.vsto,False) called.
[07:23:54] : Method Call : InPlaceHostingManager.GetManifestAsync() called.
[07:23:54] : Internal state=GettingManifest
[07:23:54] : Method Call : DeploymentManager.BindAsync() called.
[07:23:54] : Binding started in a worker thread.
[07:23:54] : Internal state=DownloadingDeploymentInformation
[07:23:54] : expectedAppId=file://shares.example.com/Software/OutlookFWS/OutlookFWS.vsto#OutlookFWS.vsto, Version=1.0.2.7, Culture=neutral, PublicKeyToken=1768b848874888c8, processorArchitecture=msil/OutlookFWS.exe, Version=1.0.2.7, Culture=neutral, PublicKeyToken=1768b848874888c8, processorArchitecture=msil, type=win32
[07:23:54] : Application is not found in store.
[07:23:54] : Internal state=DownloadingApplicationInformation
[07:23:54] : _cached=False
[07:23:54] : _isupdate=False
[07:23:54] : Binding is successful.

It'll then check once a day - if there's any updated application. and works fine for 14days - it'll suddenly disabled

the last 3times it'll check are like this - before it'll change the directory from shares.example.comSoftware/OutlookFWS to TARGETDIR/OutlookFWS.vsto - and are therefor disabled - and can not be reactivated.
Must be uninstalled and installed again. - and starts all over again.
targetdir.png


C#:
VERSIONSOPLYSNINGER OM PLATFORM
    Windows             : 10.0.22631.0 (Win32NT)
    Common Language Runtime     : 4.0.30319.42000
    System.Deployment.dll         : 4.8.9176.0 built by: NET481REL1LAST_B
    clr.dll             : 4.8.9181.0 built by: NET481REL1LAST_C
    dfdll.dll             : 4.8.9176.0 built by: NET481REL1LAST_B
    dfshim.dll             : 10.0.22621.1 (WinBuild.160101.0800)

KILDER
    Implementerings-URL            : file://shares.example.com/Software/OutlookFWS/OutlookFWS.vsto
    Program-URL            : file://shares.example.com/Software/OutlookFWS/Application%20Files/OutlookFWS_1_0_2_7/OutlookFWS.exe.manifest

ID'ER
    Implementerings-id        : OutlookFWS.vsto, Version=1.0.2.7, Culture=neutral, PublicKeyToken=1768b848874888c8, processorArchitecture=msil
    Program-id        : OutlookFWS.exe, Version=1.0.2.7, Culture=neutral, PublicKeyToken=1768b848874888c8, processorArchitecture=msil, type=win32

PROGRAMOVERSIGT
    * Kun onlineprogram.

FEJLOVERSIGT
    Der blev ikke fundet nogen fejl under handlingen.

OVERSIGT OVER FEJL I KOMPONENTLAGERTRANSAKTIONER
    Der blev ikke fundet nogen transaktionsfejl.

ADVARSLER
    Der blev ikke givet nogen advarsler under handlingen.

STATUS FOR HANDLING
    Der er ingen tilgængelige faseoplysninger.

OPLYSNINGER OM FEJL
    Der blev ikke fundet nogen fejl under handlingen.

TRANSAKTIONSOPLYSNINGER FOR KOMPONENTLAGER
    Der er ingen tilgængelige transaktionsoplysninger.

DETAILED EXECUTION FLOW
[07:56:08] : Activation through IPHM APIs started.
[07:56:08] : Method Call : InPlaceHostingManager(file://shares.example.com/Software/OutlookFWS/OutlookFWS.vsto,False) called.
[07:56:08] : Method Call : InPlaceHostingManager.GetManifestAsync() called.
[07:56:08] : Internal state=GettingManifest
[07:56:08] : Method Call : DeploymentManager.BindAsync() called.
[07:56:08] : Binding started in a worker thread.
[07:56:08] : Internal state=DownloadingDeploymentInformation
[07:56:08] : expectedAppId=file://shares.example.com/Software/OutlookFWS/OutlookFWS.vsto#OutlookFWS.vsto, Version=1.0.2.7, Culture=neutral, PublicKeyToken=1768b848874888c8, processorArchitecture=msil/OutlookFWS.exe, Version=1.0.2.7, Culture=neutral, PublicKeyToken=1768b848874888c8, processorArchitecture=msil, type=win32
[07:56:08] : Application is found in store and it is the CurrentBind. Binding with appid.
[07:56:08] : _cached=True
[07:56:08] : _isupdate=False
[07:56:08] : Binding is successful.
[07:56:08] : Creating GetManifestCompletedEventArgs.
[07:56:08] : Application identity=file://shares.example.com/Software/OutlookFWS/OutlookFWS.vsto#OutlookFWS.vsto, Version=1.0.2.7, Culture=neutral, PublicKeyToken=1768b848874888c8, processorArchitecture=msil/OutlookFWS.exe, Version=1.0.2.7, Culture=neutral, PublicKeyToken=1768b848874888c8, processorArchitecture=msil, type=win32
[07:56:08] : Subscription identity=OutlookFWS.vsto, Culture=neutral, PublicKeyToken=1768b848874888c8, processorArchitecture=msil
[07:56:08] : IsCached=True
[07:56:08] : Method Call : InPlaceHostingManager.Dispose() called.
[07:56:08] : Internal state=Done

VERSIONSOPLYSNINGER OM PLATFORM
    Windows             : 10.0.22631.0 (Win32NT)
    Common Language Runtime     : 4.0.30319.42000
    System.Deployment.dll         : 4.8.9176.0 built by: NET481REL1LAST_B
    clr.dll             : 4.8.9181.0 built by: NET481REL1LAST_C
    dfdll.dll             : 4.8.9176.0 built by: NET481REL1LAST_B
    dfshim.dll             : 10.0.22621.1 (WinBuild.160101.0800)

KILDER
    Implementerings-URL            : file://shares.example.com/Software/OutlookFWS/OutlookFWS.vsto
    Program-URL            : file://shares.example.com/Software/OutlookFWS/Application%20Files/OutlookFWS_1_0_2_7/OutlookFWS.exe.manifest

ID'ER
    Implementerings-id        : OutlookFWS.vsto, Version=1.0.2.7, Culture=neutral, PublicKeyToken=1768b848874888c8, processorArchitecture=msil
    Program-id        : OutlookFWS.exe, Version=1.0.2.7, Culture=neutral, PublicKeyToken=1768b848874888c8, processorArchitecture=msil, type=win32

PROGRAMOVERSIGT
    * Kun onlineprogram.

FEJLOVERSIGT
    Der blev ikke fundet nogen fejl under handlingen.

OVERSIGT OVER FEJL I KOMPONENTLAGERTRANSAKTIONER
    Der blev ikke fundet nogen transaktionsfejl.

ADVARSLER
    Der blev ikke givet nogen advarsler under handlingen.

STATUS FOR HANDLING
    Der er ingen tilgængelige faseoplysninger.

OPLYSNINGER OM FEJL
    Der blev ikke fundet nogen fejl under handlingen.

TRANSAKTIONSOPLYSNINGER FOR KOMPONENTLAGER
    Der er ingen tilgængelige transaktionsoplysninger.

DETAILED EXECUTION FLOW
[08:04:02] : Activation through IPHM APIs started.
[08:04:02] : Method Call : InPlaceHostingManager(file://shares.example.com/Software/OutlookFWS/OutlookFWS.vsto,False) called.
[08:04:02] : Method Call : InPlaceHostingManager.GetManifestAsync() called.
[08:04:02] : Internal state=GettingManifest
[08:04:02] : Method Call : DeploymentManager.BindAsync() called.
[08:04:02] : Binding started in a worker thread.
[08:04:02] : Internal state=DownloadingDeploymentInformation
[08:04:02] : expectedAppId=file://shares.example.com/Software/OutlookFWS/OutlookFWS.vsto#OutlookFWS.vsto, Version=1.0.2.7, Culture=neutral, PublicKeyToken=1768b848874888c8, processorArchitecture=msil/OutlookFWS.exe, Version=1.0.2.7, Culture=neutral, PublicKeyToken=1768b848874888c8, processorArchitecture=msil, type=win32
[08:04:02] : Application is found in store and it is the CurrentBind. Binding with appid.
[08:04:02] : _cached=True
[08:04:02] : _isupdate=False
[08:04:02] : Binding is successful.

VERSIONSOPLYSNINGER OM PLATFORM
    Windows             : 10.0.22631.0 (Win32NT)
    Common Language Runtime     : 4.0.30319.42000
    System.Deployment.dll         : 4.8.9176.0 built by: NET481REL1LAST_B
    clr.dll             : 4.8.9181.0 built by: NET481REL1LAST_C
    dfdll.dll             : 4.8.9176.0 built by: NET481REL1LAST_B
    dfshim.dll             : 10.0.22621.1 (WinBuild.160101.0800)

KILDER
    Implementerings-URL            : file://shares.example.com/Software/OutlookFWS/OutlookFWS.vsto
    Program-URL            : file://shares.example.com/Software/OutlookFWS/Application%20Files/OutlookFWS_1_0_2_7/OutlookFWS.exe.manifest

ID'ER
    Implementerings-id        : OutlookFWS.vsto, Version=1.0.2.7, Culture=neutral, PublicKeyToken=1768b848874888c8, processorArchitecture=msil
    Program-id        : OutlookFWS.exe, Version=1.0.2.7, Culture=neutral, PublicKeyToken=1768b848874888c8, processorArchitecture=msil, type=win32

PROGRAMOVERSIGT
    * Kun onlineprogram.

FEJLOVERSIGT
    Der blev ikke fundet nogen fejl under handlingen.

OVERSIGT OVER FEJL I KOMPONENTLAGERTRANSAKTIONER
    Der blev ikke fundet nogen transaktionsfejl.

ADVARSLER
    Der blev ikke givet nogen advarsler under handlingen.

STATUS FOR HANDLING
    Der er ingen tilgængelige faseoplysninger.

OPLYSNINGER OM FEJL
    Der blev ikke fundet nogen fejl under handlingen.

TRANSAKTIONSOPLYSNINGER FOR KOMPONENTLAGER
    Der er ingen tilgængelige transaktionsoplysninger.

DETAILED EXECUTION FLOW
[08:04:02] : Activation through IPHM APIs started.
[08:04:02] : Method Call : InPlaceHostingManager(file://shares.example.com/Software/OutlookFWS/OutlookFWS.vsto,False) called.
[08:04:02] : Method Call : InPlaceHostingManager.GetManifestAsync() called.
[08:04:02] : Internal state=GettingManifest
[08:04:02] : Method Call : DeploymentManager.BindAsync() called.
[08:04:02] : Binding started in a worker thread.
[08:04:02] : Internal state=DownloadingDeploymentInformation
[08:04:02] : expectedAppId=file://shares.example.com/Software/OutlookFWS/OutlookFWS.vsto#OutlookFWS.vsto, Version=1.0.2.7, Culture=neutral, PublicKeyToken=1768b848874888c8, processorArchitecture=msil/OutlookFWS.exe, Version=1.0.2.7, Culture=neutral, PublicKeyToken=1768b848874888c8, processorArchitecture=msil, type=win32
[08:04:02] : Application is found in store and it is the CurrentBind. Binding with appid.
[08:04:02] : _cached=True
[08:04:02] : _isupdate=False
[08:04:02] : Binding is successful.
[08:04:02] : Creating GetManifestCompletedEventArgs.
[08:04:02] : Application identity=file://shares.example.com/Software/OutlookFWS/OutlookFWS.vsto#OutlookFWS.vsto, Version=1.0.2.7, Culture=neutral, PublicKeyToken=1768b848874888c8, processorArchitecture=msil/OutlookFWS.exe, Version=1.0.2.7, Culture=neutral, PublicKeyToken=1768b848874888c8, processorArchitecture=msil, type=win32
[08:04:02] : Subscription identity=OutlookFWS.vsto, Culture=neutral, PublicKeyToken=1768b848874888c8, processorArchitecture=msil
[08:04:02] : IsCached=True
[08:04:02] : Method Call : InPlaceHostingManager.Dispose() called.
[08:04:02] : Internal state=Done

Trying reenable plugin without reinstalling it - gives this error:

C#:
Ugyldig URI: Skemaet for URI'en er ikke gyldigt.


************** Undtagelsestekst **************
System.UriFormatException: Ugyldig URI: Skemaet for URI'en er ikke gyldigt.
   ved System.Uri.CreateThis(String uri, Boolean dontEscape, UriKind uriKind)
   ved Microsoft.VisualStudio.Tools.Office.Runtime.DomainCreator.CreateCustomizationDomainInternal(String solutionLocation, String manifestName, String documentName, Boolean showUIDuringDeployment, IntPtr hostServiceProvider, Boolean useFastPath, IntPtr& executor)
   ved Microsoft.VisualStudio.Tools.Office.Runtime.DomainCreator.Microsoft.VisualStudio.Tools.Office.Runtime.Interop.IDomainCreator.CreateCustomizationDomain(String solutionLocation, String manifestName, String documentName, Boolean showUIDuringDeployment, IntPtr hostServiceProvider, IntPtr& executor)
 
That's so frustrating. I sympathize.

Unfortunately, I don't know what could possibly be changing that file://share.example.com/files/ to file://TARGETDIR/ .
 

Latest posts

Back
Top Bottom