Home

Unable to load XXXX Add-In. Index was outside the bounds of the array.

%3CLINGO-SUB%20id%3D%22lingo-sub-392054%22%20slang%3D%22en-US%22%3EUnable%20to%20load%20XXXX%20Add-In.%20Index%20was%20outside%20the%20bounds%20of%20the%20array.%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-392054%22%20slang%3D%22en-US%22%3E%3CP%20class%3D%22%22%3EI%20have%20generated%20MS%20Visio%20Add-In%20and%20installed%20it.%26nbsp%3B%20When%20loading%20the%20Visio%202016%2C%20I'm%20getting%20error%20'Unable%20to%20load%20the%20XXXX%20Add-In.%26nbsp%3B%20Index%20was%20outside%20the%20bounds%20of%20the%20Array'%2C%20and%20the%20Add-In%20is%20not%20loaded%20in%20the%20Visio.%3C%2FP%3E%3CP%20class%3D%22%22%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20have%20installed%20Visio%202016%20MSO%20(64-bit%2C%20version%2016.0.4738.1000)%20and%20Visual%20Studio%202010%20(64-bit%2C%20version%2010.0.40219.1%20SP1Rel)%20on%20a%20Windows%207%20Professional%20(64-bit%2C%20version%206.1.7601)%3C%2FP%3E%3CP%3EPlease%20help%20me%20to%20resolve%20this.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F100847i6FD88DD6BB22BFAD%2Fimage-size%2Fmedium%3Fv%3D1.0%26amp%3Bpx%3D400%22%20alt%3D%22visio.png%22%20title%3D%22visio.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CDIV%20class%3D%22thread-message-content-body-text%20thread-full-message%22%3E%3CP%3E%3CSTRONG%3ECode%20snippet%20%3A%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CSPAN%3Epublic%20void%20OnConnection(object%20application%2C%20Extensibility.ext_ConnectMode%20connectMode%2C%20object%20addInInst%2C%20ref%20System.Array%20custom)%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%3E%7B%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20try%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%7B%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20mapXMLToVisio%20%3D%20new%20MyMapXMLToMicrosoftVisio()%3B%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20applicationObject%20%3D%20application%3B%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20this.visioApplication%20%3D%20applicationObject%20as%20Microsoft.Office.Interop.Visio.Application%3B%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20addInInstance%20%3D%20addInInst%3B%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%7D%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20catch%20(Exception%20e)%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%7B%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20MessageBox.Show(%22Unable%20to%20load%20the%20XXXX%20Add-in%3A%20%22%20%2B%20e.Message)%3B%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%7D%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%7D%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%20class%3D%22thread-message-content-body-text%20thread-full-message%22%3E%26nbsp%3B%3C%2FDIV%3E%3CDIV%20class%3D%22thread-message-content-body-text%20thread-full-message%22%3E%3CSPAN%3ELet%20me%20know%20if%20you%20need%20any%20further%20information.%3C%2FSPAN%3E%3C%2FDIV%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-392054%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3Eadd-in%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EDeveloper%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EVisio%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Highlighted
thahir86
Occasional Visitor

I have generated MS Visio Add-In and installed it.  When loading the Visio 2016, I'm getting error 'Unable to load the XXXX Add-In.  Index was outside the bounds of the Array', and the Add-In is not loaded in the Visio.

 

I have installed Visio 2016 MSO (64-bit, version 16.0.4738.1000) and Visual Studio 2010 (64-bit, version 10.0.40219.1 SP1Rel) on a Windows 7 Professional (64-bit, version 6.1.7601)

Please help me to resolve this. 

 

visio.png

 

Code snippet :

 

public void OnConnection(object application, Extensibility.ext_ConnectMode connectMode, object addInInst, ref System.Array custom)
{
            try
            {
                mapXMLToVisio = new MyMapXMLToMicrosoftVisio();
                applicationObject = application;
                this.visioApplication = applicationObject as Microsoft.Office.Interop.Visio.Application;
                addInInstance = addInInst;
            }
            catch (Exception e)
            {
                MessageBox.Show("Unable to load the XXXX Add-in: " + e.Message);
            }
        }
 
Let me know if you need any further information.
Related Conversations
Array Formulas Syntax - Matrix Calculations
ignacioch in Excel on
0 Replies
A problem with the Zoom level of a Tab
Tavory in Discussions on
9 Replies