Can't open an Excel 2K workbook from ASP.NET application on Win2K Server

Ask a Question related to ASP.NET Security, Design and Development.

  1. #1

    Default Can't open an Excel 2K workbook from ASP.NET application on Win2K Server

    I'm trying to open an Excel wokrbook from ASP.NET application with
    this statement:
    oExcel = Excel.Workbooks.Open(sFile)
    and I get this error:
    System.Exception: System.Runtime.InteropServices.COMException
    (0x800A03EC): Microsoft Excel cannot open or save any more documents
    because there is not enough available memory or disk space.
    This code works fine on my WIN2K workstation but not on the WEB
    server!

    When I look in the event log on the server I see this error:
    From MSI installer:
    Failed to connect to server. Error: 0x80070005
    Detection of product '{00000409-78E1-11D2-B60F-006097C998E7}', feature
    'ExcelUserData', component '{8ADD2C96-C8B7-11D1-9C67-0000F81F1B38}'
    failed. The resource
    'HKEY_CURRENT_USER\Software\Microsoft\Office\9.0\E xcel\UserData' does
    not exist.

    WEB Server system info: Win2000 SP4 advanced server; Office 2000 SP3;
    IIS 5.0
    PLEASE HELP!
    Alla Guest

  2. Similar Questions and Discussions

    1. convert entire workbook in excel to pdf
      Does anyone know why it seems to be impossible to convert an entire workbook to a single pdf usin gadobe acrobat 7.0 standard, os x tiger, office...
    2. Can I write Macros in excel workbook ?
      Hello, I am using spreadsheet::WriteExcel module for writing my output to excel file. But the user now wants to have macros in the excel file. ...
    3. How to save a excel workbook in a web application
      I used the following code to create a workbook and save it in a webapplication. dim oExcel As Excel.ApplicationClass dim oBook As...
    4. How to get a OPEN/SAVE dialog option window when open Excel from IE browser.
      I use the following to open Excel from IE browser, but I don't get a OPEN/SAVE dialog option window. Instead, the Excel opened in the browser...
    5. 'Document not saved' error - excel workbook
      Tried everything including allowing full control to ASPNET user to folder containing workbook but stiil get...
  3. #2

    Default Re: Can't open an Excel 2K workbook from ASP.NET application on Win2K Server

    Is Excel installed on the web server?
    Remember that Office automation is not supported on server side:
    INFO: Considerations for Server-Side Automation of Office
    [url]http://support.microsoft.com/default.aspx?scid=kb;EN-US;257757[/url]

    HtH,
    Andrea

    "Alla" <allaspivak@ameritech.net> wrote in message
    news:41977989.0401072027.73e65d2b@posting.google.c om...
    > I'm trying to open an Excel wokrbook from ASP.NET application with
    > this statement:
    > oExcel = Excel.Workbooks.Open(sFile)
    > and I get this error:
    > System.Exception: System.Runtime.InteropServices.COMException
    > (0x800A03EC): Microsoft Excel cannot open or save any more documents
    > because there is not enough available memory or disk space.
    > This code works fine on my WIN2K workstation but not on the WEB
    > server!
    >
    > When I look in the event log on the server I see this error:
    > From MSI installer:
    > Failed to connect to server. Error: 0x80070005
    > Detection of product '{00000409-78E1-11D2-B60F-006097C998E7}', feature
    > 'ExcelUserData', component '{8ADD2C96-C8B7-11D1-9C67-0000F81F1B38}'
    > failed. The resource
    > 'HKEY_CURRENT_USER\Software\Microsoft\Office\9.0\E xcel\UserData' does
    > not exist.
    >
    > WEB Server system info: Win2000 SP4 advanced server; Office 2000 SP3;
    > IIS 5.0
    > PLEASE HELP!

    Andrea D'Onofrio [MSFT] Guest

  4. #3

    Default Re: Can't open an Excel 2K workbook from ASP.NET application on Win2K Server

    If you read my message to the very end you'd seen what is installed on
    my WEB server and that is the following:
    Win2000 SP4 advanced server; Office 2000 SP3; IIS 5.0
    Thank you.

    "Andrea D'Onofrio [MSFT]" <andreado@online.microsoft.com> wrote in message news:<#kvbONd1DHA.1356@TK2MSFTNGP10.phx.gbl>...
    > Is Excel installed on the web server?
    > Remember that Office automation is not supported on server side:
    > INFO: Considerations for Server-Side Automation of Office
    > [url]http://support.microsoft.com/default.aspx?scid=kb;EN-US;257757[/url]
    >
    > HtH,
    > Andrea
    >
    > "Alla" <allaspivak@ameritech.net> wrote in message
    > news:41977989.0401072027.73e65d2b@posting.google.c om...
    > > I'm trying to open an Excel wokrbook from ASP.NET application with
    > > this statement:
    > > oExcel = Excel.Workbooks.Open(sFile)
    > > and I get this error:
    > > System.Exception: System.Runtime.InteropServices.COMException
    > > (0x800A03EC): Microsoft Excel cannot open or save any more documents
    > > because there is not enough available memory or disk space.
    > > This code works fine on my WIN2K workstation but not on the WEB
    > > server!
    > >
    > > When I look in the event log on the server I see this error:
    > > From MSI installer:
    > > Failed to connect to server. Error: 0x80070005
    > > Detection of product '{00000409-78E1-11D2-B60F-006097C998E7}', feature
    > > 'ExcelUserData', component '{8ADD2C96-C8B7-11D1-9C67-0000F81F1B38}'
    > > failed. The resource
    > > 'HKEY_CURRENT_USER\Software\Microsoft\Office\9.0\E xcel\UserData' does
    > > not exist.
    > >
    > > > > PLEASE HELP!
    Alla Guest

  5. #4

    Default Re: Can't open an Excel 2K workbook from ASP.NET application on Win2K Server

    > If you read my message to the very end you'd seen what is installed on
    > my WEB server and that is the following:
    I'm sorry...but I don't have much free time :-)
    > PLEASE HELP!
    Probably the error appears because you attempt to automate Excel server side
    (as I mentioned before).
    Owever, check the launch permission and access permission of Excel
    Application under dcom config:
    - launch the dcomcnfg command under Run...
    - under dcom config browse for "Microsoft Excel Application" and click on
    his properties
    - under Security tab customize the permission adding the aspnet user (this
    is the default, if you have changed something you must add the user under
    which credential the asp.net application runs). For testing/trobleshooting
    purpose you can add Everyone

    HtH,
    Andrea


    Andrea D'Onofrio [MSFT] Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139