Quantcast
Channel: Common Language Runtime Internals and Architecture forum
Viewing all articles
Browse latest Browse all 1710

Excel 2013 and 2016 VSTO Add-in

$
0
0

I'm running Windows 7 Professional SP 1

Processor: Intel(R) Core(TM) i5-4300U CPU @ 1.90GHz 2.50GHz

RAM: 8.00 GB System Type: 64-bit Operating System

Visual Studio Community 2015 14.0.25420.01 Update 3

Microsoft Office 365 ProPlus Version 16.0.7369.2038

Microsoft Excel 2016 MSO (16.0.7329.1017) 32-bit

I'm trying to learn how to create a Excel VSTO Add-In. I tried to run a blank project and ran into a problem. Any advice would be greatly appreciated.

Error: Managed Debugging Assistant 'FatalExecutionEngineError' has detected a problem in 'C:\Program Files (x86)\Microsoft Office\root\Office16\excel.exe'.

Additional information: The runtime has encountered a fatal error. The address of the error was at 0x63f41920, on thread 0x2260. The error code is 0xc0000005. This error may be a bug in the CLR or in the unsafe or non-verifiable portions of user code. Common sources of this bug include user marshaling errors for COM-interop or PInvoke, which may corrupt the stack.

Error: An unhandled exception of type 'System.ExecutionEngineException' occurred in Unknown Module.

The code for ThisAddIn.cs:

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Linq;
using Excel = Microsoft.Office.Interop.Excel;
using Office = Microsoft.Office.Core;
using Microsoft.Office.Tools.Excel;

namespace FirstExcelAddIn
{
    public partial class ThisAddIn
    {
        private void ThisAddIn_Startup(object sender, System.EventArgs e)
        {
        }

        private void ThisAddIn_Shutdown(object sender, System.EventArgs e)
        {
        }

        #region VSTO generated code

        /// <summary>
        /// Required method for Designer support - do not modify
        /// the contents of this method with the code editor.
        /// </summary>
        private void InternalStartup()
        {
            this.Startup += new System.EventHandler(ThisAddIn_Startup);
            this.Shutdown += new System.EventHandler(ThisAddIn_Shutdown);
        }
       
        #endregion
    }
}


Viewing all articles
Browse latest Browse all 1710

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>