473,811 Members | 2,586 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 2428

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
2778
by: jinu | last post by:
hello, I need to run a vb.net application in different OSs like windows 2003, windows 2000, windows 98 etc.... where only windows 2003 have built-in .net framework and to be installed in others. The problem is, client do not want to install excel in all the machines where this application in intended to run BUT need to read an excel file for data from all the machines. I coded using OLEDB. but is it possible to read an excel file...
1
858
by: Benjamin | last post by:
I am making a Windows EXE (.NET Visual Basic Windows Application). I would like to make it possible to open Excel Worksheets from my EXE. This should work independent of Excel version on client machine (it is out of my control to know what versions of Excel different users has.) Anyway let us say that Excel 2000 is the oldest acceptable version. I build the EXE on a PC with Excel 2000. But I it is not working on an Excel 2003 machine! ...
6
12510
by: Matthew Wieder | last post by:
I have the following requirements: Build a stand-alone C# application that asks the user to click in a cell in an Excel spreadsheet, and then displays the address of that cell in the C# application. It seems simple enough, but the problem I'm encountering is as follows: In order for the user to select the cell from Excel, they must first click once on the Excel window to give it focus and then their second click is what changes the cell...
1
15885
by: Brian Conklin | last post by:
Hello Eneryone, I am having a problem. I have written a little app that will take a text "pipe" delimited file and place all of the values in to an Excel spreadsheet. It works great on any of my XP Pro machines. When I install the app on a Win2K Pro machine, I get the following error message: ************** Exception Text ************** System.Runtime.InteropServices.COMException (0x80020008): Bad variable type. at...
2
10017
by: scorpion53061 | last post by:
This excel find/replace code works great under Excel 2003 but bombs with an error (pasted below the code) in Excel 2000. Can anyone suggest an alternative to make both happy? I am using vb.net windows application. I also tried creating an object and assigning the find/replace event to it but I also received errors. I am a little under the gun on this one.... WSheet.Application.Selection.Replace(What:="NONE", Replacement:="",...
0
558
by: Prasad Patil | last post by:
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
5
3157
by: Mike in Santa Rosa | last post by:
I'm trying to get a simple c# app built that can launch/manipulate an excel workbook, sheet. I've chased down several examples and can't any of them to work. So I must be doing somethnig obviouslt wrong. Most examples to get things started include something: using Microsoft.Office.Interop.Excel; or using Excel; or using Excel = Microsoft.Office.Interop.Excel;
4
2349
by: snare88 | last post by:
I have a question regarding a VB.NET 2003 application which was built on a Windows XP machine with Office 2002 installed. The software does some interfacing with Microsoft Excel. I now want to run this application on a Windows 2000 machine with Office 2003 installed. However, it is not functioning correctly. The application DOES work on a Windows XP machine running Office 2003. I am referencing the "Microsoft Excel 10.0 Object...
2
4929
by: Nicholas Dreyer | last post by:
The following error Run-time exception thrown : System.Runtime.InteropServices.COMException - Error loading type library/DLL. happens while running the code listed at the bottom of this message in the environment shown here: Operating System: Microsoft Windows Version 5.1 (Build
0
9728
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10389
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10135
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7670
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6890
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5554
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5692
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4339
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3867
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.