<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Error creating documents (Excel/Word) in my Office Addin when Autodesk Vault Office Addin is loaded and connected to Vault in Vault Customization Forum</title>
    <link>https://forums.autodesk.com/t5/vault-customization-forum/error-creating-documents-excel-word-in-my-office-addin-when/m-p/10464547#M3765</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Sorry to inform you that I've no solution to this problem.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In sept 2020, I opened a support case with Autodesk using my Autodesk Partner account (Autodesk Partner center caseno 16889611 ), but besides confirming that they can reproduce the problem,&amp;nbsp; nothing has been happening !.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The only work around, is to code all the functions from the Office-plugin (checkin/out/undo etc) yourself... A big job, considering it may be obsolete if Autodesk fix the bug/make connection avaliable to Office&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kind regards.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 13 Jul 2021 11:27:30 GMT</pubDate>
    <dc:creator>mobworld</dc:creator>
    <dc:date>2021-07-13T11:27:30Z</dc:date>
    <item>
      <title>Error creating documents (Excel/Word) in my Office Addin when Autodesk Vault Office Addin is loaded and connected to Vault</title>
      <link>https://forums.autodesk.com/t5/vault-customization-forum/error-creating-documents-excel-word-in-my-office-addin-when/m-p/9699906#M3762</link>
      <description>&lt;P&gt;Hello there,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm currently working on an Office Addin (VSTO technology) and have a problem.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Office is 32 bit&lt;/P&gt;&lt;P&gt;Vault version is 2020.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The problem is only present when the user is logged in to Vault using Autodesk's Vault addin for Office (Word and Excel). When user isn't logged in, everything works as expected.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regarding Excel, I get and error when trying to add a new Excel workbook to Excel's WorkBooks Collection and in Word the problem occurs when I try to save a newly created document to disk using document.SaveAs/document.SaveAs2 method&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Code in Excel Addin :&lt;/P&gt;&lt;LI-CODE lang="general"&gt; private void button1_Click(object sender, EventArgs e)
        {

            try
            {
                //AppDomain.CurrentDomain.AssemblyResolve += CurrentDomain_AssemblyResolve;

                //string currPath = System.Environment.GetEnvironmentVariable("PATH");
                //currPath = @"C:\Program Files (x86)\Autodesk\DM Apps\Office Addin 2020\;" + currPath;
                //System.Environment.SetEnvironmentVariable("PATH", currPath);

                Microsoft.Office.Interop.Excel.Workbook newDoc = null;
                newDoc = ExcelAddIn1.Globals.ThisAddIn.Application.Workbooks.Add();

                newDoc.SaveAs(@"c:\temp\temp.xlsx");
            }
            catch (Exception ex) { }
            finally
            {
                //AppDomain.CurrentDomain.AssemblyResolve -= CurrentDomain_AssemblyResolve;
            }
        }
        private System.Reflection.Assembly CurrentDomain_AssemblyResolve(object sender, ResolveEventArgs args)
        {
            string[] asmName;
            string asmPath;
            asmName = args.Name.Split(",".ToCharArray());

            if (Environment.Is64BitProcess) { asmPath = @"D:\SourceCode\_AzureDevOps\NTI.Tools.Acw\_Build\AddCardWizard" + @"\Vault 2020 (x64)\x64\" + asmName[0] + ".dll"; }
            else { asmPath = @"C:\Program Files (x86)\Autodesk\DM Apps\Office Addin 2020\" + asmName[0] + ".dll"; }
            if (System.IO.File.Exists(asmPath))
            {
                System.Reflection.Assembly assembly = System.Reflection.Assembly.LoadFile(asmPath);
                return assembly;
            }
            return null;
        }&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I run the code above, I get the following error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ExcelAddin1.PNG" style="width: 999px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/808933iC5F5F4AA70C03846/image-size/large?v=v2&amp;amp;px=999" role="button" title="ExcelAddin1.PNG" alt="ExcelAddin1.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;("Could not load file or assembly 'Connectivity.Common.Windows, Version=1.0.6996.38200, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As the code shows, I have tried different things to make this work :&lt;/P&gt;&lt;P&gt;1. tried adding the path where the Vault Office Vault files are located to environment variable PATH&lt;/P&gt;&lt;P&gt;2. tried using assembly resolve to point to the location of the Vault Office files.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Modifing environment PATH, does not make any difference. When adding a AssemblyResolve handler, the event gets fires and I returns the assemblies found in 'C:\Program Files (x86)\Autodesk\DM Apps\Office Addin 2020' (Vault Office addin folder installed by Vault Client). When using AssemblyResolve, I get the following nasty error :&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ExcelAddin2.PNG" style="width: 515px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/808940i944B23E133067002/image-size/large?v=v2&amp;amp;px=999" role="button" title="ExcelAddin2.PNG" alt="ExcelAddin2.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;and Excel crashes.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;NOTE : All of this above only happens when Vault Addin is loaded and users is connected to Vault. I found a post from 2013&amp;nbsp;&lt;A href="https://forums.autodesk.com/t5/vault-customization/filenotfoundexception-in-office-s-saveas-methods/m-p/4409913" target="_blank" rel="noopener"&gt;https://forums.autodesk.com/t5/vault-customization/filenotfoundexception-in-office-s-saveas-methods/m-p/4409913&lt;/A&gt;&amp;nbsp;with the same problem (my Word problem is as described in the post)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;I'm able to reproduce the problem consistently using a very simple example as shown above. I'm very sure this must be something in "C:\Program Files (x86)\Autodesk\DM Apps\Office Addin 2020\VaultClient.dll" (Vault Office addin) which is causing the problem.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm aware that Vault 2020 sdk is only present in 64bit, but the problem shown in the example, does not use any Vault assemblies/references. But problem still occurs&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Someone who can point me in the right direction ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Aug 2020 14:29:43 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vault-customization-forum/error-creating-documents-excel-word-in-my-office-addin-when/m-p/9699906#M3762</guid>
      <dc:creator>mobworld</dc:creator>
      <dc:date>2020-08-19T14:29:43Z</dc:date>
    </item>
    <item>
      <title>Re: Error creating documents (Excel/Word) in my Office Addin when Autodesk Vault Office Addin is loaded and connected to Vault</title>
      <link>https://forums.autodesk.com/t5/vault-customization-forum/error-creating-documents-excel-word-in-my-office-addin-when/m-p/9702077#M3763</link>
      <description>&lt;P&gt;I've just updated to Vault 2020.3 and the problem still exists.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Got this error message, which clearly shows that the error lies within Vault Office plugin (OfficeAddinCommon.dll)&lt;BR /&gt;(I'm not referencing any Vault assemblies in my little test solution)&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ExcelAddin3.PNG" style="width: 434px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/809376i28CABAD0CDA43D14/image-size/large?v=v2&amp;amp;px=999" role="button" title="ExcelAddin3.PNG" alt="ExcelAddin3.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any suggestions are very appreciated &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How do I make Autodesk aware of this problem ? Old-school ADN bug reports does seem to exist any more ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Thu, 20 Aug 2020 11:46:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vault-customization-forum/error-creating-documents-excel-word-in-my-office-addin-when/m-p/9702077#M3763</guid>
      <dc:creator>mobworld</dc:creator>
      <dc:date>2020-08-20T11:46:02Z</dc:date>
    </item>
    <item>
      <title>Re: Error creating documents (Excel/Word) in my Office Addin when Autodesk Vault Office Addin is loaded and connected to Vault</title>
      <link>https://forums.autodesk.com/t5/vault-customization-forum/error-creating-documents-excel-word-in-my-office-addin-when/m-p/10464327#M3764</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/5336547"&gt;@mobworld&lt;/a&gt;&amp;nbsp;!&lt;/P&gt;&lt;P&gt;Did you finally managed to solve this issue?&lt;/P&gt;&lt;P&gt;I'm facing the same problem with excel, exactly at the same point (when the user is logged into Vault, if he is not logged in , no issue at all).&lt;/P&gt;&lt;P&gt;Can you share any workaround or anything you discovered?&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Tue, 13 Jul 2021 09:57:06 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vault-customization-forum/error-creating-documents-excel-word-in-my-office-addin-when/m-p/10464327#M3764</guid>
      <dc:creator>jose_oltra</dc:creator>
      <dc:date>2021-07-13T09:57:06Z</dc:date>
    </item>
    <item>
      <title>Re: Error creating documents (Excel/Word) in my Office Addin when Autodesk Vault Office Addin is loaded and connected to Vault</title>
      <link>https://forums.autodesk.com/t5/vault-customization-forum/error-creating-documents-excel-word-in-my-office-addin-when/m-p/10464547#M3765</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Sorry to inform you that I've no solution to this problem.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In sept 2020, I opened a support case with Autodesk using my Autodesk Partner account (Autodesk Partner center caseno 16889611 ), but besides confirming that they can reproduce the problem,&amp;nbsp; nothing has been happening !.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The only work around, is to code all the functions from the Office-plugin (checkin/out/undo etc) yourself... A big job, considering it may be obsolete if Autodesk fix the bug/make connection avaliable to Office&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kind regards.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Jul 2021 11:27:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vault-customization-forum/error-creating-documents-excel-word-in-my-office-addin-when/m-p/10464547#M3765</guid>
      <dc:creator>mobworld</dc:creator>
      <dc:date>2021-07-13T11:27:30Z</dc:date>
    </item>
  </channel>
</rss>

