Office PIA COM registration Errror

Discussion in 'ASP.NET 2.0' started by mclaio, Jul 26, 2008.

  1. Hi,

    I am trying to use a few COM assemblies. They are the Office PIAs. Here is some info about the specific assemblies:

    http://www.microsoft.com/downloads/details.aspx?FamilyID=59DAEBAA-BED4-4282-A28C-B864D8BFA513&displaylang=en

    I am getting this error when I host the site on DiscountAsp.net:


    Retrieving the COM class factory for component with CLSID {000209FF-0000-0000-C000-000000000046} failed due to the following error: 80040154. Description: 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.

    Exception Details: System.Runtime.InteropServices.COMException: Retrieving the COM class factory for component with CLSID {000209FF-0000-0000-C000-000000000046} failed due to the following error: 80040154.


    I think the cause is that the assemblies need to be registered. I have copied the files locally to the bin, but that doesn't seem to matter. Is it possible to register the COM assemblies using DiscountAsp.net?

    We are trying tosilently open a Word Document, edit it and save it under a different name for the user to download. I don't need to display the file.

    From what we have gathered the Office Web Components cannot be used for this purpose. The Office PIAs are required for this task.

    Thanks,

    Debendra Modi
     
  2. Hi,
    I'd suggest opening a Support ticket and asking about this.
    My guess is no, due to their complexity and the COM types involved.
    On a Shared environment I don't see how Primary Interop Assemblies can fit in, personally. [​IMG]
    All the best,
    Mark
     
  3. Thanks for your reply. Discountasp.net has refused to register the COM. They suggested posting this problem on the forum to see if there is any other solution possible, without using the PIA's.


    thanks,


    Debendra
     
  4. Hi,
    What do you need to do on the server?
    I'll see if I can find some solutions for you.
    All the best,
    Mark
     
  5. We first make a copy of a word file for each user and save this with a distinct name. Then, weopen this Word File and do a find and replace using the COM.

    Thanks

    Debendra
     
  6. <STRIKE>I'll check into this for you.
    <STRIKE>
    OK...Apparently with ASP.NET 3.0 and later you can modifiy Word documments server-side.
    This looks very complicated but possible.

    Server-Side Generation of Word 2007 Docs
    http://msdn.microsoft.com/en-us/magazine/cc163526.aspx

    Data-driven document generation with Word 2007
    http://www.tipsdotnet.com/ArticleBlog.aspx?KWID=71

    Searching for a phrase using Regex
    http://www.fingerfuel.com/Resources/FingerfuelBlogs/JustinFishersBlog/tabid/82/Default.aspx?EntryId=17


    Post Edited (wisemx) : 7/29/2008 12:52:05 PM GMT
     

Share This Page