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. 3 3764
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.
.
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 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.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.
.
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 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
referencethe 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.0300Newsgroup s: microsoft.publi c.dotnet.genera l Path: cpmsftngxa06.ph x.gbl Xref: cpmsftngxa06.ph x.gbl microsoft.pub lic.dotnet.gene ral: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
triedto set the properties, it failed with "COMExcepti on: Catostrphic failure".
Any idea?
Thanks.
. . This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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 FilterName, Object
Interactive)
|
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 the server, but when a user from a system other
than the server runs the page the error...
|
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 me the following error:
|
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 System.Management.ManagementObjectSearcher(query)
moc = mos.Get()
For Each mo In moc
|
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 service, so it's pretty
apparent to me that this is a difficult application to build, but I have...
| |
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.
|
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 authentication" SOMETIMES when I'm testing
with an invalid password. Anyone have an idea why. I've...
|
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 System.DirectoryServices.DirectoryEntry.Bind() at...
|
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.
|
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 usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
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.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
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 most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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 instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
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 into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
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
| |
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 effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |