Ask a Question related to ASP.NET Security, Design and Development.
-
Prasad Patil #1
Dcomconfig 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
The following DCOM config settings i have doneCode: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); }
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 Guest
-
Flash 8 chokes on XML from Excel 2003
Using Flash 8's XML object and trying to read in XML created in Excel 2003 I get error -6 back from the XML.status property which means "An XML... -
Any security blocking settings on Windows 2003/IIS6 or aDMZ with MX 6.1
I have this simple script working on an internal Coldfusion MX 6.1+Windows 2000/IIS5 but not on an external -DMZ Coldfusion MX 6.1+Windows... -
excel 2003 to PDF
When I try to convert an Excel file containing color cells, the PDF documents out with an all black background with color letters. Any ideas on how... -
Windows 2003 Server settings
Is anyone aware of settings that I need to change in IIS 6.0 for Shockwave files to play correctly? We recently migrated from Windows Server 2000... -
file and settings transfer Windows XP - windows ME
does anyone know where I can find the files and settings transfer wizard disk so that I can install it onto one of the computers that runs Windows...



Reply With Quote

