By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
429,558 Members | 1,373 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 429,558 IT Pros & Developers. It's quick & easy.

COMException: Failure

P: n/a
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
Share this Question
Share on Google+
3 Replies


P: n/a

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

P: n/a
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

P: n/a

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 discussion thread is closed

Replies have been disabled for this discussion.