471,357 Members | 1,122 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,357 software developers and data experts.

Dcomcnfg Settings for Excel 2003 on Windows XP

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

Expand|Select|Wrap|Line Numbers
  1.  
  2. using Excel=Microsoft.Office.Interop.Excel;
  3.  
  4. Excel.Application excelApp = null;
  5.  
  6. try
  7. {
  8. // Instantiate Excel and start a new workbook.
  9. excelApp = new Excel.ApplicationClass();
  10. }
  11. catch( Exception theException )
  12. {
  13. String errorMessage;
  14. errorMessage = "SM Error: ";
  15. errorMessage = String.Concat( errorMessage, theException.Message );
  16. errorMessage = String.Concat( errorMessage, " Line: " );
  17. errorMessage = String.Concat( errorMessage, theException.Source );
  18.  
  19. Response.Write( errorMessage);
  20. }
  21.  
  22.  
  23.  
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
Jul 21 '05 #1
0 2264

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

6 posts views Thread by Matthew Wieder | last post: by
1 post views Thread by Brian Conklin | last post: by
2 posts views Thread by scorpion53061 | last post: by
reply views Thread by Prasad Patil | last post: by
5 posts views Thread by Mike in Santa Rosa | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.