Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Security > Dcomconfig Settings for Excel 2003 on Windows XP

Thread Tools

Dcomconfig Settings for Excel 2003 on Windows XP

Prasad Patil
Posts: n/a
I have a 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

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

using Excel=Microsoft.Office.Interop.Excel;

Excel.Application excelApp = null;

// 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}

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

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

Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Settings.settings file with settings for multiple regions donet programmer ASP .Net 3 11-20-2009 03:05 PM
Problem with Excel reports ::::Excel 2003 Migration To Excel 2007 =?Utf-8?B?c2hhc2hhbmsga3Vsa2Fybmk=?= ASP .Net 15 10-24-2007 01:34 PM
moving "my documents and settings\user\local settings\temp" FredHead Computer Support 11 01-17-2007 06:03 AM
Outlook 2003 settings, password, etc. from windows backup file...can I get it.... flygirl Computer Support 2 02-25-2006 04:39 AM
Wanted: Help with Document settings\ServerName\ASPNET\Local settings\Temp Siegfried Heintze ASP .Net 0 10-24-2005 06:02 PM