Note that there are some explanatory texts on larger screens.

plurals
  1. PORetrieving the COM class factory for component error while generating word document
    primarykey
    data
    text
    <p>I am trying to edit a word document from VB.NET using for the most part this code:</p> <p><strong>How to automate Word from Visual Basic .NET to create a new document</strong> <a href="http://support.microsoft.com/kb/316383" rel="nofollow noreferrer">http://support.microsoft.com/kb/316383</a></p> <p>It works fine on my machine but when i publish to the server i get the following error.</p> <blockquote> <p>Retrieving the COM class factory for component with CLSID {000209FF-0000-0000-C000-000000000046} failed due to the following error: 80070005.</p> <p><strong>Description:</strong> An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.</p> <p><strong>Exception Details:</strong> System.UnauthorizedAccessException: Retrieving the COM class factory for component with CLSID {000209FF-0000-0000-C000-000000000046} failed due to the following error: 80070005.</p> </blockquote> <p>The actual error happens when i try to just create a word application object</p> <pre><code> Dim oWord As New Word.Application </code></pre> <p>Using Visual Studio 2008 and VB.NET 3.5. I made a reference to the "Microsoft Word 10.0 Object Library" and i see Interop.Word.dll file in the bin directory. </p> <p>Using MS Office 2003 on development machine and Windows Server 2003</p> <p>Still fairly new to .NET and don't have much knowledge about window server, but "UnauthorizedAccessException" sounds like a permission issue. I'm wondering if someone could point me in the right direction on what i might need to do to give my little application access to use word. </p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload