Visual Studio Development Bookmark and Share   
 index > Visual Studio Tools for Office > Could not create an instance of Start up object
 

Could not create an instance of Start up object

I have a Word document file created within Word 2003 with an attached manifest created using VSTO SE.  I am attempting to open this file within another environment that has Word 2007 and here are the details I get for the error, 'Office document customization is not available'.  It sees that the customization assembly is there but it gives an CannotCreateStartupObjectException exception.  The customization assembly, RunningReport.dll only uses Office 2007 files.  Does anyone know what I can do to get this file open correctly in a Word 2007 environment?



Could not create an instance of startup object RunningReport.ThisDocument in assembly RunningReport, Version=1.0.3574.24309, Culture=neutral.


************** Exception Text **************
Microsoft.VisualStudio.Tools.Applications.Runtime.CannotCreateStartupObjectException: Could not create an instance of startup object RunningReport.ThisDocument in assembly RunningReport, Version=1.0.3574.24309, Culture=neutral.
   at Microsoft.VisualStudio.Tools.Applications.Runtime.AppDomainManagerInternal.CreateStartupObject(EntryPoint entryPoint, Dependency dependency, Assembly objectAssembly)
   at Microsoft.VisualStudio.Tools.Applications.Runtime.AppDomainManagerInternal.ConfigureAppDomain()
   at Microsoft.VisualStudio.Tools.Applications.Runtime.AppDomainManagerInternal.LoadAssembliesAndConfigureAppDomain(IHostServiceProvider serviceProvider)
   at Microsoft.VisualStudio.Tools.Applications.Runtime.AppDomainManagerInternal.LoadEntryPointsHelper(IHostServiceProvider serviceProvider)


************** Loaded Assemblies **************
mscorlib
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.3082 (QFE.050727-3000)
    CodeBase: file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
Microsoft.VisualStudio.Tools.Applications.Runtime
    Assembly Version: 8.0.0.0
    Win32 Version: 8.0.50727.940
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/Microsoft.VisualStudio.Tools.Applications.Runtime/8.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualStudio.Tools.Applications.Runtime.dll
----------------------------------------
System
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Xml
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.3082 (QFE.050727-3000)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
Microsoft.Office.Tools.Common
    Assembly Version: 8.0.0.0
    Win32 Version: 8.0.50727.940
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/Microsoft.Office.Tools.Common/8.0.0.0__b03f5f7f11d50a3a/Microsoft.Office.Tools.Common.dll
----------------------------------------
System.Windows.Forms
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System.Drawing
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
RunningReport
    Assembly Version: 1.0.3575.20020
    Win32 Version: 1.0.3575.20020
    CodeBase: file:///C:/CHAN/ASI%20Development/Plugins/ASI/bin/Debug/RunningReport.DLL
----------------------------------------
Microsoft.Office.Tools.Word.v9.0
    Assembly Version: 9.0.0.0
    Win32 Version: 9.0.21022.8
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/Microsoft.Office.Tools.Word.v9.0/9.0.0.0__b03f5f7f11d50a3a/Microsoft.Office.Tools.Word.v9.0.dll
----------------------------------------
Microsoft.Office.Tools.v9.0
    Assembly Version: 9.0.0.0
    Win32 Version: 9.0.21022.8
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/Microsoft.Office.Tools.v9.0/9.0.0.0__b03f5f7f11d50a3a/Microsoft.Office.Tools.v9.0.dll
----------------------------------------
System.AddIn
    Assembly Version: 3.5.0.0
    Win32 Version: 3.5.30729.1 built by: SP
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.AddIn/3.5.0.0__b77a5c561934e089/System.AddIn.dll
----------------------------------------
Microsoft.VisualStudio.Tools.Applications.Runtime.v9.0
    Assembly Version: 9.0.0.0
    Win32 Version: 9.0.21022.8
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/Microsoft.VisualStudio.Tools.Applications.Runtime.v9.0/9.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualStudio.Tools.Applications.Runtime.v9.0.dll
----------------------------------------


 

asdfssdff  Thursday, October 15, 2009 6:29 PM
Hello asdfssdff,

Welcome to MSDN forums!

I'm going to help you to trouble shoot the problem. In normal case a customization which was built in VSTO 2005 SE will run in Office 2007 environment without any problem.

Please note following things:

Please make sure you have Office PIAs installed in your client machine.

Please make sure you have grant full trust to the assembly, in order to get permission to run it.

Most possible thing is you have some errors in your startup method, so one thing you could try is comment all the code in startup method and run it again.

Hope this helps you, looking forward to your feedback.


Thanks.


Tim Li

MSDN Subscriber Support in Forum

If you have any feedback on our support, please contact EMAIL GONE


Please remember to mark the replies as answers if they help and unmark them if they provide no help.
Tim Li  Friday, October 16, 2009 8:37 AM
Hello and thanks for the response.

I do have all of the Office PIA's installed, it has full trust, and I commented out all of the code for the startup method and this didn't change anything.  Does anyone have any ideas?

Steve
Steve 5656565656  Friday, October 16, 2009 6:10 PM

Hello Tim Li,

I have done all that you have suggested and I still am having trouble with this issue. Do you have any other suggestions?

Steve 5656565656  13 hours 5 minutes ago

You can use google to search for other answers

Custom Search

More Threads

• Changes to App.Config not propagating to runtime in Excel VSTO 2005
• Deactivated add-in by VS. Customized ribbon is gone.
• Adding nested content controls programmatically with container showing placeholder text
• Get value without making a selection
• Extract PDF from Word 2007 document
• VSTO 2005 SE for Word 2003 problem
• Microsoft Office Access 2003 Developer Extensions and Visual Studio 2005
• [Excel] Modifications on a chart
• Smart Tag - Method get_VerbCaptionFromID2 is called twice when NULL is returned..
• OWC-XML Structure migration issues SQL2005