473,545 Members | 1,779 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

COMException: Failure

COMException: Catostrphic failure

When I added a "dll" reference in the web project.
I was able to instantiate the class OK. But when I tried
to set the properties, it failed with
"COMExcepti on: Catostrphic failure".

Any idea?

Thanks.
Jul 19 '05 #1
3 3737

Hi Peter:

Thanks for the reply. We are going nuts over this.
Here are more details.

1. Created windos application.
2. Added reference to this COM dll.
3. Here is the code:
Dim aPDF As aspPDF.EASYPDFC lass
aPDF = New aspPDF.EASYPDFC lass()
aPDF.AddText("a sdsdsa")
It creates the instance successfully, but fails at last
line with the message below:

An unhandled exception of
type 'System.Runtime .InteropService s.COMException'
occurred in WindowsApplicat ion1.exe
Additional information: Catastrophic failure.

The dll is a aspEasyPdf dll which allows creating PDF
documents.

Thanks.
- D.J.
-----Original Message-----
Hi Damaji,

Can you post more information about your project for me to reproduce theproblem?
I would like to know what is the "dll" used for.
Have you used the dll in a legacy VB or C/C++ program? Did it work well?To narrow down the problem, can you try to create a new console project ora windows project ( if the dll is GUI based) to reference the dll to see ifthe problem persists?

I look forward to hearing from you!
Regards,
Peter Huang
Microsoft Online Partner Support
Get Secure! www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.--------------------
Content-Class: urn:content-classes:message
From: "Damaji Jambhale" <da****@hotmail .com>
Sender: "Damaji Jambhale" <da****@hotmail .com>
Subject: COMException: Failure
Date: Fri, 29 Aug 2003 13:20:30 -0700
Lines: 10
Message-ID: <0a************ *************** *@phx.gbl>
MIME-Version: 1.0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Newsreader: Microsoft CDO for Windows 2000
Thread-Index: AcNuav5Gq63F4sU 8QbuQYeScBCf0Kw ==
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
Newsgroups: microsoft.publi c.dotnet.genera l
Path: cpmsftngxa06.ph x.gbl
Xref: cpmsftngxa06.ph x.gbl microsoft.publi c.dotnet.genera l:106663NNTP-Posting-Host: TK2MSFTNGXA08 10.40.1.160
X-Tomcat-NG: microsoft.publi c.dotnet.genera l

COMExceptio n: Catostrphic failure

When I added a "dll" reference in the web project.
I was able to instantiate the class OK. But when I tried
to set the properties, it failed with
"COMException : Catostrphic failure".

Any idea?

Thanks.


.

Jul 19 '05 #2
Hi Damaji,

I have tested your code and I can reproduce the problem. I think it is the
issue how aspeasypdf design.
You can try the code below which will work on my machine.

Dim PDF As aspPDF.EASYPDFC lass
PDF = New aspPDF.EASYPDFC lass
PDF.OnStartPage (Nothing) 'I think the line code is a key point.
PDF.AddText("fs adfsdfsdf")
PDF.Save("test. pdf")
MsgBox("DONE")

You may have a try and let me know the result.

Regards,
Peter Huang
Microsoft Online Partner Support
Get Secure! www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
--------------------
Content-Class: urn:content-classes:message
From: "Damaji" <da****@hotmail .com>
Sender: "Damaji" <da****@hotmail .com>
References: <0a************ *************** *@phx.gbl> <rT************ **@cpmsftngxa06 .phx.gbl>Subject: RE: COMException: Failure
Date: Tue, 2 Sep 2003 10:01:09 -0700
Lines: 84
Message-ID: <01************ *************** *@phx.gbl>
MIME-Version: 1.0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Newsreader: Microsoft CDO for Windows 2000
Thread-Index: AcNxc850wp/waIFuRPenAYCBHe HzdA==
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
Newsgroups: microsoft.publi c.dotnet.genera l
Path: cpmsftngxa06.ph x.gbl
Xref: cpmsftngxa06.ph x.gbl microsoft.publi c.dotnet.genera l:106955
NNTP-Posting-Host: TK2MSFTNGXA11 10.40.1.163
X-Tomcat-NG: microsoft.publi c.dotnet.genera l
Hi Peter:

Thanks for the reply. We are going nuts over this.
Here are more details.

1. Created windos application.
2. Added reference to this COM dll.
3. Here is the code:
Dim aPDF As aspPDF.EASYPDFC lass
aPDF = New aspPDF.EASYPDFC lass()
aPDF.AddText("a sdsdsa")
It creates the instance successfully, but fails at last
line with the message below:

An unhandled exception of
type 'System.Runtime .InteropService s.COMException'
occurred in WindowsApplicat ion1.exe
Additional information: Catastrophic failure.

The dll is a aspEasyPdf dll which allows creating PDF
documents.

Thanks.
- D.J.
-----Original Message-----
Hi Damaji,

Can you post more information about your project for me

to reproduce the
problem?
I would like to know what is the "dll" used for.
Have you used the dll in a legacy VB or C/C++ program?

Did it work well?
To narrow down the problem, can you try to create a new

console project or
a windows project ( if the dll is GUI based) to reference

the dll to see if
the problem persists?

I look forward to hearing from you!
Regards,
Peter Huang
Microsoft Online Partner Support
Get Secure! www.microsoft.com/security
This posting is provided "as is" with no warranties and

confers no rights.
--------------------
Content-Class: urn:content-classes:message
From: "Damaji Jambhale" <da****@hotmail .com>
Sender: "Damaji Jambhale" <da****@hotmail .com>
Subject: COMException: Failure
Date: Fri, 29 Aug 2003 13:20:30 -0700
Lines: 10
Message-ID: <0a************ *************** *@phx.gbl>
MIME-Version: 1.0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Newsreader: Microsoft CDO for Windows 2000
Thread-Index: AcNuav5Gq63F4sU 8QbuQYeScBCf0Kw ==
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
Newsgroups : microsoft.publi c.dotnet.genera l
Path: cpmsftngxa06.ph x.gbl
Xref: cpmsftngxa06.ph x.gblmicrosoft.publ ic.dotnet.gener al:106663NNTP-Posting-Host: TK2MSFTNGXA08 10.40.1.160
X-Tomcat-NG: microsoft.publi c.dotnet.genera l

COMException : Catostrphic failure

When I added a "dll" reference in the web project.
I was able to instantiate the class OK. But when I tried
to set the properties, it failed with
"COMExceptio n: Catostrphic failure".

Any idea?

Thanks.


.


Jul 19 '05 #3

Hi Peter,

Thanks for the reply and finding.
Yes, it works, it still has other problem but as you said
it must be with aspEasyPdf design.

Thanks a lot.
-----Original Message-----
Hi Damaji,

I have tested your code and I can reproduce the problem. I think it is theissue how aspeasypdf design.
You can try the code below which will work on my machine.

Dim PDF As aspPDF.EASYPDFC lass
PDF = New aspPDF.EASYPDFC lass
PDF.OnStartPage (Nothing) 'I think the line code is a key point. PDF.AddText("fs adfsdfsdf")
PDF.Save("test. pdf")
MsgBox("DONE")

You may have a try and let me know the result.

Regards,
Peter Huang
Microsoft Online Partner Support
Get Secure! www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

--------------------
Content-Class: urn:content-classes:message
From: "Damaji" <da****@hotmail .com>
Sender: "Damaji" <da****@hotmail .com>
References: <0a************ *************** *@phx.gbl>

<rT*********** ***@cpmsftngxa0 6.phx.gbl>
Subject: RE: COMException: Failure
Date: Tue, 2 Sep 2003 10:01:09 -0700
Lines: 84
Message-ID: <01************ *************** *@phx.gbl>
MIME-Version: 1.0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Newsreader: Microsoft CDO for Windows 2000
Thread-Index: AcNxc850wp/waIFuRPenAYCBHe HzdA==
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
Newsgroups: microsoft.publi c.dotnet.genera l
Path: cpmsftngxa06.ph x.gbl
Xref: cpmsftngxa06.ph x.gbl microsoft.publi c.dotnet.genera l:106955NNTP-Posting-Host: TK2MSFTNGXA11 10.40.1.163
X-Tomcat-NG: microsoft.publi c.dotnet.genera l
Hi Peter:

Thanks for the reply. We are going nuts over this.
Here are more details.

1. Created windos application.
2. Added reference to this COM dll.
3. Here is the code:
Dim aPDF As aspPDF.EASYPDFC lass
aPDF = New aspPDF.EASYPDFC lass()
aPDF.AddText("a sdsdsa")
It creates the instance successfully, but fails at last
line with the message below:

An unhandled exception of
type 'System.Runtime .InteropService s.COMException'
occurred in WindowsApplicat ion1.exe
Additional information: Catastrophic failure.

The dll is a aspEasyPdf dll which allows creating PDF
documents.

Thanks.
- D.J.
-----Original Message-----
Hi Damaji,

Can you post more information about your project for me

to reproduce the
problem?
I would like to know what is the "dll" used for.
Have you used the dll in a legacy VB or C/C++ program?

Did it work well?
To narrow down the problem, can you try to create a new

console project or
a windows project ( if the dll is GUI based) to reference
the dll to see if
the problem persists?

I look forward to hearing from you!
Regards,
Peter Huang
Microsoft Online Partner Support
Get Secure! www.microsoft.com/security
This posting is provided "as is" with no warranties and

confers no rights.
--------------------
Content-Class: urn:content-classes:message
From: "Damaji Jambhale" <da****@hotmail .com>
Sender: "Damaji Jambhale" <da****@hotmail .com>
Subject: COMException: Failure
Date: Fri, 29 Aug 2003 13:20:30 -0700
Lines: 10
Message-ID: <0a************ *************** *@phx.gbl>
MIME-Version: 1.0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Newsreader: Microsoft CDO for Windows 2000
Thread-Index: AcNuav5Gq63F4sU 8QbuQYeScBCf0Kw ==
X-MimeOLE: Produced By Microsoft MimeOLE

V5.50.4910.0300Newsgroup s: microsoft.publi c.dotnet.genera l
Path: cpmsftngxa06.ph x.gbl
Xref: cpmsftngxa06.ph x.gbl

microsoft.pub lic.dotnet.gene ral:106663
NNTP-Posting-Host: TK2MSFTNGXA08 10.40.1.160
X-Tomcat-NG: microsoft.publi c.dotnet.genera l

COMExceptio n: Catostrphic failure

When I added a "dll" reference in the web project.
I was able to instantiate the class OK. But when I triedto set the properties, it failed with
"COMExcepti on: Catostrphic failure".

Any idea?

Thanks.
.


.

Jul 19 '05 #4

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

Similar topics

1
11227
by: Steven | last post by:
Hi there, I am trying to export a chart using the Excel11 object from C#. I can properly open workbooks and read cells, but calling Export() on the Chart object throws a COMException Exception: System.Runtime.InteropServices.COMException (0x800A03EC): Exception from HRESULT: 0x800A03EC. at Excel._Chart.Export(String Filename, Object...
2
2645
by: Jim Lacenski | last post by:
I have a VB class that uses .NET and ADODB to write into an Excel spreadsheet (via Jet) on a server as part of a web application. ADODB is used instead of ADO.NET because it greatly simplifies the write process, and is supported for use on a server. (Excel is not supported (1), licensing issues with OWC). The routine works fine for a user at...
2
4662
by: Bassel Tabbara | last post by:
I wrote the following code: oApp = new Outlook.Application(); oApp = new Outlook.Application(); oNameSpace= oApp.GetNamespace("MAPI"); oNameSpace.Logon(null,null,true,true); //gets defaultfolder for my Outlook Outbox oOutboxFolder = oNameSpace.GetDefaultFolder(Outlook.OlDefaultFolders.olFolderOutbox); But it won't work and it is giving...
5
2997
by: mattiassich | last post by:
The following code causes unhandled exception on the line: New ManagementObjectSearcher(query) Dim mos As System.Management.ManagementObjectSearcher Dim moc As System.Management.ManagementObjectCollection Dim mo As System.Management.ManagementObject Dim query As String = "SELECT * FROM Win32_OperatingSystem" mos = New...
3
5595
by: Jay A. Moritz | last post by:
I have an application that loads IE and iterates through web pages to retrieve information from the page then activates specific controls to retrieve the next page and iterate through that page for it's information, etc, etc. I have found many articles from people getting COMException errors when trying to use Interop.SHDocVw from a windows...
3
272
by: Damaji Jambhale | last post by:
COMException: Catostrphic failure When I added a "dll" reference in the web project. I was able to instantiate the class OK. But when I tried to set the properties, it failed with "COMException: Catostrphic failure". Any idea? Thanks.
0
1430
by: ssg31415926 | last post by:
I'm using System.DirectoryServices to access a Domino LDAP server. When I get a failed authentication, I usually see this: System.Runtime.InteropServices.COMException 0x8007052E: "Logon failure: unknown user name or bad password.\r\n". Suddenly, I'm seeing this: System.Runtime.InteropServices.COMException 0x80072029: "Inappropriate...
1
11411
by: sasikumarks | last post by:
Hi, Im using the following code to retrieve the user details from the AD server. But when i execute the code,it throws me the error. Please help me in this regards."System.Runtime.InteropServices.COMException (0x8007052E): Logon failure: unknown user name or bad password. at System.DirectoryServices.DirectoryEntry.Bind(Boolean throwIfFail) at...
2
2445
by: ortega23 | last post by:
Hi, I am trying to obtain the column number of the parent of a cell, if the cell is a linked cell (i.e. its value depends on another cells value). I try to read "Precedents"(parent cells) of a "Range"(selection of a single cell in this case) for each cell in my table to access parents of the linked cells.
0
7459
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...
0
7653
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
1
7411
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
5965
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5322
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...
0
4942
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...
0
3444
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...
1
1871
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
0
695
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.