Microsoft Office Interop Word Error
Contents |
be down. Please try the request again. Your cache administrator is webmaster. Generated Thu, 20 Oct 2016 14:29:59 GMT by s_wx1085 (squid/3.5.20)
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta
No Such Interface Supported (exception From Hresult: 0x80004002 (e_nointerface)).
Discuss the workings and policies of this site About Us Learn queryinterface call on the com component for the interface with iid more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack error loading type library/dll. (exception from hresult 0x80029c4a (type_e_cantloadlibrary)) Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 6.2 million programmers, just like you, http://answers.microsoft.com/en-us/msoffice/forum/msoffice_word-mso_other/unable-to-cast-com-object-of-type/34efcd57-e819-4a83-9cdd-501ab15b0971 helping each other. Join them; it only takes a minute: Sign up Error accessing COM components up vote 23 down vote favorite 15 I built an add-in for Microsoft Office Word. There isn't an issue using the add-in when Word is ran as Administrator, but when it's not ran as an Administrator, there are two common exceptions http://stackoverflow.com/questions/12957595/error-accessing-com-components accessing Ribbon elements. The first Exception: Unable to cast COM object of type 'System.__ComObject' to interface type 'Microsoft.Office.Core.IRibbonUI'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{000C03A7-0000-0000-C000-000000000046}' failed due to the following error: could not be found. (Exception from HRESULT: 0x80030002 (STG_E_FILENOTFOUND)). at Microsoft.Office.Core.IRibbonUI.InvalidateControl(String ControlID) This error occurs when the Control is invalidated by the following code: ribbon.InvalidateControl("control-id"); And the second Exception: Unable to cast COM object of type 'Microsoft.Office.Interop.Word.ApplicationClass' to interface type 'Microsoft.Office.Interop.Word._Application'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{00020970-0000-0000-C000-000000000046}' failed due to the following error: could not be found. (Exception from HRESULT: 0x80030002 (STG_E_FILENOTFOUND)). at Microsoft.Office.Interop.Word.ApplicationClass.get_Selection() This error occurs on the last line of the following code: object wdStory = Word.WdUnits.wdStory; object wdMove = Word.WdMovementType.wdMove; WrdApp.Selection.EndKey(ref wdStory, ref wdMove) How can I fix this problem? c# com ms-word office-2007 share|improve this question edited Jan 21 '15 at 21:22 Kody 38529 asked Oct 18 '12 at 14:55 Victor 3,28083987 1
use the previous link instead. Select a product Sort by Default Summary New or Updated http://kb.act.com/app/answers/detail/a_id/36939/~/when-trying-to-edit-a-template-i-receive-the-error%3A-unable-to-cast-com-object Description Date Updated Direction Ascending Descending Helpful search tips Find http://www.egenconsulting.com/error-editing-act-template-unable-to-cast-com-object-of-type-microsoft-office-interop-word-applicationclass-to-interface-type-microsoft-office-interop-word-_application/ the answer to your question When trying to edit a template I receive the Error: "Unable to cast COM object of type 'Microsoft.Office.Interop.Word.ApplicationClass' to interface type 'Microsoft.Office.Interop.Word._Application'." Answer ID 36939 | Updated 09/10/2016 12:56 PM Symptom: When trying to edit a template (exception from I receive the Error: "Unable to cast COM object of type 'Microsoft.Office.Interop.Word.ApplicationClass' to interface type 'Microsoft.Office.Interop.Word._Application'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{00020970-0000-0000-C000-000000000046}' failed due to the following error: The RPC server is unavailable. (Exception from HRESULT: 0x800706BA)." Product: Product Family: Act! Product: (exception from hresult Act! Pro, Act! Premium Cause: Unknown Workaround: You may be able to resolve this issue by closing Act! and Microsoft Word, then reopening Act! and Word. If that does not work, you will need to modify a registry key named LoadBehavior. It needs to have its value changed from 3 to 9. Once modified, you will need to reboot your computer. The registry key can be found in the following locations: For 32-Bit Version of Windows HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\Word\Addins\ACT7.OfficeAddIn HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\Word\Addins\ActOffice2007Addin.Connect HKEY_CURRENT_USER\Software\Microsoft\Office\Word\Addins\ACT7.OfficeAddIn HKEY_CURRENT_USER\Software\Microsoft\Office\Word\Addins\ActOffice2007Addin.Connect For 64-Bit Version of Windows HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Office\Word\Addins\ACT7.OfficeAddIn HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Office\Word\Addins\ActOffice2007Addin.Connect HKEY_CURRENT_USER\Software\Microsoft\Office\Word\Addins\ACT7.OfficeAddIn HKEY_CURRENT_USER\Software\Microsoft\Office\Word\Addins\ActOffice2007Addin.Connect WARNING! This KB article (including any software and related documentation) is provided "AS IS." Swiftpage disclaims all express or implied warranties of any kind with respect to the article, including but not limited to, any implied warranties of merchantability or fitness for a particular purpose. ©2016 Swiftpage ACT! LLC. All rights reserved. Swiftpage, ACT!, and the Swiftpage product and service names mentioned herein are registered trademarks o
Us Who we are Patricia Egen Daily News Staff Listing Staff Patricia Egen Resume Donald Egen Resume Blog eStore Products ACT Add-on Wizards Fields and Tables to Excel Wizard History Cleanup Wizard for ACT! Company Wizard Plus for ACT Advanced CopyFields Wizard Duplicate Remover Wizard Expert Advanced Delete User Wizard Egen Consulting Addon Products PEC Automation Tools Sales Automation Manager Web Prospect for Act PEC Automation Bundle Mail Merge Automation ACT V18 Top 10 Reasons to Subscribe to Act! Premium Other Products We Resell Handheld Contact for ACT – Mobile device integration Scan2Act ACT Subscription Pricing Services What we do ACT! Services ACT Business Intelligence Deep Dive Data Conversion Quotewerks Consulting Quotevalet from Quotewerks Quotewerks System Requirements Swiftpage and e-Marketing for ACT Support Support Plans Knowledgebase File downloads Training Contact Error editing ACT Template: Unable to cast COM object of type ‘Microsoft.Office.Interop.Word.ApplicationClass' to interface type ‘Microsoft.Office.Interop.Word._Application' By Patricia Egen • January 26th, 2015 Recently we worked with a client who upgraded their Office to 2013 and ran into this error with editing a template in ACT. The full error was: "Unable to cast COM object of type ‘Microsoft.Office.Interop.Word.ApplicationClass' to interface type ‘Microsoft.Office.Interop.Word._Application'. This operation failed because the QueryInterface call on the COM component for the interface with IID ‘{00020970-0000-0000-C000-000000000046}' failed due to the following error: The RPC server is unavailable. (Exception from HRESULT: 0x800706BA)." This post shows the workaround. The following are registry keys you will need to modify. The registry key is LoadBehavior. It needs to have its value changed from 3 to 9. It can be found in the following locations: For 32-Bit Version of Windows HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\Word\Addins\ACT7.OfficeAddIn HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\Word\Addins\ActOffice2007Addin.Connect HKEY_CURRENT_USER\Software\Microsoft\Office\Word\Addins\ACT7.OfficeAddIn HKEY_CURRENT_USER\Software\Microsoft\Office\Word\Addins\ActOffice2007Addin.Connect For 64-B