none
Unable to load Outlook add-in user control on customer deployment when Outlook run without 'Run As administrator' RRS feed

  • Question

  • Hello,

    I am working on Outlook COM Add-in, which is deployed on Windows 10 (German locale) on customer setup. If I run Outlook application with 'Run as administrator' then everything works fine.

    But if I run Outlook without 'Run as administrator' then I get following exception.

    System.Windows.Markup.XamlParseException: Aktiveringen af konstruktøren på typen 'OfficePlugin.UserControlContact', som svarer til de angivne bindingsbegrænsninger, udløste en undtagelse. ---> System.IO.IOException: Ressourcen view/usercontrols/usercontrolcontact.xaml blev ikke fundet.

    I carried following tests on customer setup but no success.

    1. Install Outlook add-in by running installer as administrator

    2. Install Outlook add-in in custom folder , outside 'C:\Program files (x86)'folder.

    3. Reinstalled 'Visual Studio 2010 Tools for Office Runtime' manually

    I am unable to understand why Outlook add-in is unable to access the resource file from 'de-DE' folder(when run without 'Run as administrator'). Please help me on how should I troubleshoot this issue.

    Customer does not want to run Outlook as administrator.

    Regards,

    Nilesh

    System.Windows.Markup.XamlParseException: Aktiveringen af konstruktøren på typen 'OfficePlugin.UserControlContact', som svarer til de angivne bindingsbegrænsninger, udløste en undtagelse. ---> System.IO.IOException: Ressourcen view/usercontrols/usercontrolcontact.xaml blev ikke fundet.

       ved MS.Internal.AppModel.ResourcePart.GetStreamCore(FileMode mode, FileAccess access)

       ved System.IO.Packaging.PackagePart.GetStream(FileMode mode, FileAccess access)

       ved System.IO.Packaging.PackagePart.GetStream()

       ved System.Windows.Application.LoadComponent(Object component, Uri resourceLocator)

    Tuesday, March 12, 2019 6:38 AM

All replies

  • Hello,

    I am working on Outlook COM Add-in, which is deployed on Windows 10 (German locale) on customer setup. If I run Outlook application with 'Run as administrator' then everything works fine.

    But if I run Outlook without 'Run as administrator' then I get following exception.

    System.Windows.Markup.XamlParseException: Aktiveringen af konstruktøren på typen 'OfficePlugin.UserControlContact', som svarer til de angivne bindingsbegrænsninger, udløste en undtagelse. ---> System.IO.IOException: Ressourcen view/usercontrols/usercontrolcontact.xaml blev ikke fundet.

    I carried following tests on customer setup but no success.

    1. Install Outlook add-in by running installer as administrator

    2. Install Outlook add-in in custom folder , outside 'C:\Program files (x86)'folder.

    3. Reinstalled 'Visual Studio 2010 Tools for Office Runtime' manually

    I am unable to understand why Outlook add-in is unable to access the resource file from 'de-DE' folder(when run without 'Run as administrator'). Please help me on how should I troubleshoot this issue.

    Customer does not want to run Outlook as administrator.

    Regards,

    Nilesh

    System.Windows.Markup.XamlParseException: Aktiveringen af konstruktøren på typen 'OfficePlugin.UserControlContact', som svarer til de angivne bindingsbegrænsninger, udløste en undtagelse. ---> System.IO.IOException: Ressourcen view/usercontrols/usercontrolcontact.xaml blev ikke fundet.

       ved MS.Internal.AppModel.ResourcePart.GetStreamCore(FileMode mode, FileAccess access)

       ved System.IO.Packaging.PackagePart.GetStream(FileMode mode, FileAccess access)

       ved System.IO.Packaging.PackagePart.GetStream()

       ved System.Windows.Application.LoadComponent(Object component, Uri resourceLocator)

    Hi NileshAV,

    From your description, your issue is more related to the Visual Studio Tools for Office (VSTO). I suggest you can go to the Visual Studio Tools for Office (VSTO) forum for getting suitable help.

    Thank you for your understanding.

    Best Regards

    Yong Lu


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Wednesday, March 13, 2019 1:51 AM