Dcomconfig Settings for Excel 2003 on Windows XP

Discussion in 'ASP .Net Security' started by Prasad Patil, Mar 28, 2005.

  1. Prasad Patil

    Prasad Patil Guest

    Hi,
    I have a asp.net/c# web application when i try to create the following
    excel object using the following code mentioned below

    I have Office 2003 installed on my PC, VS.Net 2003. but still it gives the
    following
    error.

    I get the error

    COM object with CLSID {00024500-0000-0000-C000-000000000046} is either not
    valid or not registered.

    Sample Code of my Web Application

    Code:
    
    using Excel=Microsoft.Office.Interop.Excel;
    
    Excel.Application excelApp = null;
    
    try
    {
    // Instantiate Excel and start a new workbook.
    excelApp = new Excel.ApplicationClass();
    }
    catch( Exception theException )
    {
    String errorMessage;
    errorMessage = "SM Error: ";
    errorMessage = String.Concat( errorMessage, theException.Message );
    errorMessage = String.Concat( errorMessage, " Line: " );
    errorMessage = String.Concat( errorMessage, theException.Source );
    
    Response.Write( errorMessage);
    }
    
    
    
    The following DCOM config settings i have done
    In the Component Services - > Dcom Config ->

    Microsoft Excel Application object & {000C101C-0000-0000-C000-000000000046}
    object

    I have the following settings

    On the General Tab
    Authentication level is default

    On the Security Tab
    I have Given the the Lauch & Access Permissions for the following Users

    System, Interactive, EveryOne, Administrators, IUSR_XX, IWAM_XX, ASPNET,
    & the
    User with which i logon on to the System.

    On the Identity Tab

    For Excel Application object - I have Selected "The Launching User" radio
    option

    For {000C101C-0000-0000-C000-000000000046} object - I have selected "The
    System Account (services only)" radio option

    With these settings when i launch the Excel using a WinForm C# application
    it works fine but not for the web application.

    Kindly let me know if you have any suggestions/ideas


    Regards,
    Prasad
     
    Prasad Patil, Mar 28, 2005
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Kieran Kelly
    Replies:
    3
    Views:
    864
    Shaji
    Sep 29, 2003
  2. Siegfried Heintze
    Replies:
    0
    Views:
    2,302
    Siegfried Heintze
    Oct 24, 2005
  3. =?Utf-8?B?c2hhc2hhbmsga3Vsa2Fybmk=?=

    Problem with Excel reports ::::Excel 2003 Migration To Excel 2007

    =?Utf-8?B?c2hhc2hhbmsga3Vsa2Fybmk=?=, Oct 5, 2007, in forum: ASP .Net
    Replies:
    15
    Views:
    1,554
    =?Utf-8?B?c2hhc2hhbmsga3Vsa2Fybmk=?=
    Oct 24, 2007
  4. leeanne
    Replies:
    0
    Views:
    1,897
    leeanne
    Sep 24, 2008
  5. donet programmer
    Replies:
    3
    Views:
    1,589
    Gregory A. Beamer
    Nov 20, 2009
Loading...

Share This Page