473,385 Members | 1,588 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,385 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 3714

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: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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,...

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.