473,397 Members | 2,068 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

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
"COMException: Catostrphic failure".

Any idea?

Thanks.
Jul 19 '05 #1
3 3716

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.EASYPDFClass
aPDF = New aspPDF.EASYPDFClass()
aPDF.AddText("asdsdsa")
It creates the instance successfully, but fails at last
line with the message below:

An unhandled exception of
type 'System.Runtime.InteropServices.COMException'
occurred in WindowsApplication1.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: AcNuav5Gq63F4sU8QbuQYeScBCf0Kw==
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
Newsgroups: microsoft.public.dotnet.general
Path: cpmsftngxa06.phx.gbl
Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.general:106663NNTP-Posting-Host: TK2MSFTNGXA08 10.40.1.160
X-Tomcat-NG: microsoft.public.dotnet.general

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.


.

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.EASYPDFClass
PDF = New aspPDF.EASYPDFClass
PDF.OnStartPage(Nothing) 'I think the line code is a key point.
PDF.AddText("fsadfsdfsdf")
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/waIFuRPenAYCBHeHzdA==
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
Newsgroups: microsoft.public.dotnet.general
Path: cpmsftngxa06.phx.gbl
Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.general:106955
NNTP-Posting-Host: TK2MSFTNGXA11 10.40.1.163
X-Tomcat-NG: microsoft.public.dotnet.general
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.EASYPDFClass
aPDF = New aspPDF.EASYPDFClass()
aPDF.AddText("asdsdsa")
It creates the instance successfully, but fails at last
line with the message below:

An unhandled exception of
type 'System.Runtime.InteropServices.COMException'
occurred in WindowsApplication1.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: AcNuav5Gq63F4sU8QbuQYeScBCf0Kw==
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
Newsgroups: microsoft.public.dotnet.general
Path: cpmsftngxa06.phx.gbl
Xref: cpmsftngxa06.phx.gblmicrosoft.public.dotnet.general:106663NNTP-Posting-Host: TK2MSFTNGXA08 10.40.1.160
X-Tomcat-NG: microsoft.public.dotnet.general

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.


.


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.EASYPDFClass
PDF = New aspPDF.EASYPDFClass
PDF.OnStartPage(Nothing) 'I think the line code is a key point. PDF.AddText("fsadfsdfsdf")
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/waIFuRPenAYCBHeHzdA==
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
Newsgroups: microsoft.public.dotnet.general
Path: cpmsftngxa06.phx.gbl
Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.general:106955NNTP-Posting-Host: TK2MSFTNGXA11 10.40.1.163
X-Tomcat-NG: microsoft.public.dotnet.general
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.EASYPDFClass
aPDF = New aspPDF.EASYPDFClass()
aPDF.AddText("asdsdsa")
It creates the instance successfully, but fails at last
line with the message below:

An unhandled exception of
type 'System.Runtime.InteropServices.COMException'
occurred in WindowsApplication1.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: AcNuav5Gq63F4sU8QbuQYeScBCf0Kw==
X-MimeOLE: Produced By Microsoft MimeOLE

V5.50.4910.0300Newsgroups: microsoft.public.dotnet.general
Path: cpmsftngxa06.phx.gbl
Xref: cpmsftngxa06.phx.gbl

microsoft.public.dotnet.general:106663
NNTP-Posting-Host: TK2MSFTNGXA08 10.40.1.160
X-Tomcat-NG: microsoft.public.dotnet.general

COMException: 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
"COMException: 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
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 ...
2
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...
2
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...
5
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...
3
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...
3
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...
0
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:...
1
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...
2
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...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
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,...
0
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...
0
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,...
0
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...

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.