none
"The customization assembly could not be found or could not be loaded.” RRS feed

  • Question

  • Hello,

    I'm using VSTO 2010 and created a Word 2010 Template project as follows (dev machine with Windows Server 2008 R2, Office 2010, VSTO 2010):

    Create New C# Project > Office > 2010 > Word 2010 Template

    Attach the following code to the Document New event:

            private void ThisDocument_New()

            {

                object fixedFormatExtClassPtr = null;

                this.ExportAsFixedFormat(@"C:\temp\MyDocument.PDF", Word.WdExportFormat.wdExportFormatPDF, false, 0, 0, 0, 0, 0, false, false, 0, false, false, false, ref fixedFormatExtClassPtr);

            }

    Hit F5. The following exception will be displayed:

        “The customization assembly could not be found or could not be loaded.”

    The same behavior occurs when executing many other lines of code.

    Any ideas?

    Regards,

    António Ribeiro


    aribeiro

    Tuesday, April 2, 2013 11:35 AM

Answers

All replies