472,351 Members | 1,520 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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

Catastrophic failure

I have written an ASP.NET web app in C# that is trying to connect to a
database using OleDb. I put code in a dll that uses another dll to create a
connection object (and open it if requested) to send back to the web app to
connect to the database.

I am getting the following error when I change anything in my web app and
recompile.
Catastrophic failure
Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information
about the error and where it originated in the code.

Exception Details: System.Data.OleDb.OleDbException: Catastrophic failure

Stack Trace:

[OleDbException (0x8000ffff): Catastrophic failure]
System.Data.OleDb.OleDbConnection.ProcessResults(I nt32 hr)
System.Data.OleDb.OleDbConnection.CreateProviderEr ror(Int32 hr)
System.Data.OleDb.OleDbConnection.CreateProvider(O leDbConnectionString
constr)
System.Data.OleDb.OleDbConnection.Open()

I reset IIS to clear the problem (the only way that I have found other than
rebooting), and it will then work just fine. But if I adjust my code (the
web app not either of the dlls) and recompile, it will throw the
Catastrophic failure when I access the page. My coworker thought that it
might be because I was using a static module to create the connection, so I
adjusted the dll to be non-static. That did not solve the problem.

Is there anyway to prevent this failure, and is there anyway to clear this
error without having to restart IIS?

Jul 21 '05 #1
4 7957
Hi Marshall,

I'd like to know what kind of database system you are working on? And
what's the version of it? If you are using a SQL Server, please try to
check the following link to get a workaround.

http://support.microsoft.com/default...b;en-us;243349

Or you can simply use a SQL server data provider to recover it.

If anything is unclear, please feel free to reply to the post.

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."

--------------------
| From: "J. Marshall Latham" <ma******@networkip.net>
| Subject: Catastrophic failure
| Date: Wed, 24 Sep 2003 16:06:01 -0500
| Lines: 37
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
| Message-ID: <uA**************@TK2MSFTNGP10.phx.gbl>
| Newsgroups: microsoft.public.dotnet.general
| NNTP-Posting-Host: 24.204.3.242
| Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTN GP10.phx.gbl
| Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.general:109778
| X-Tomcat-NG: microsoft.public.dotnet.general
|
| I have written an ASP.NET web app in C# that is trying to connect to a
| database using OleDb. I put code in a dll that uses another dll to
create a
| connection object (and open it if requested) to send back to the web app
to
| connect to the database.
|
| I am getting the following error when I change anything in my web app and
| recompile.
| Catastrophic failure
| Description: An unhandled exception occurred during the execution of the
| current web request. Please review the stack trace for more information
| about the error and where it originated in the code.
|
| Exception Details: System.Data.OleDb.OleDbException: Catastrophic failure
|
| Stack Trace:
|
| [OleDbException (0x8000ffff): Catastrophic failure]
| System.Data.OleDb.OleDbConnection.ProcessResults(I nt32 hr)
| System.Data.OleDb.OleDbConnection.CreateProviderEr ror(Int32 hr)
| System.Data.OleDb.OleDbConnection.CreateProvider(O leDbConnectionString
| constr)
| System.Data.OleDb.OleDbConnection.Open()
|
|
|
| I reset IIS to clear the problem (the only way that I have found other
than
| rebooting), and it will then work just fine. But if I adjust my code (the
| web app not either of the dlls) and recompile, it will throw the
| Catastrophic failure when I access the page. My coworker thought that it
| might be because I was using a static module to create the connection, so
I
| adjusted the dll to be non-static. That did not solve the problem.
|
| Is there anyway to prevent this failure, and is there anyway to clear this
| error without having to restart IIS?
|
|
|
|

Jul 21 '05 #2
I am connecting to an Informix database. I believe it is 9.2. I don't
remember the version. I am using Informix ODBC and Invormix OleDb
drivers/providers.

JML
"Kevin Yu" <v-****@online.microsoft.com> wrote in message
news:nk**************@cpmsftngxa06.phx.gbl...
Hi Marshall,

I'd like to know what kind of database system you are working on? And
what's the version of it? If you are using a SQL Server, please try to
check the following link to get a workaround.

http://support.microsoft.com/default...b;en-us;243349

Or you can simply use a SQL server data provider to recover it.

If anything is unclear, please feel free to reply to the post.

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."

Jul 21 '05 #3
Hi Marshall,

I've done some research on this issue. This might be caused by the Informix
ODBC driver. Some certain versions of Informix ODBC driver isn't compatable
with Microsoft Transaction Server (MTS). That's why your IIS cannot connect
to the database. You can check it out at the following link:

http://support.microsoft.com/default...b;en-us;197815

Please try to contact Informix for a driver that supports MTS. If there
isn't one availabe, please try to revert it to an old version.

HTH

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."
--------------------
| From: "J. Marshall Latham" <ma******@networkip.net>
| References: <uA**************@TK2MSFTNGP10.phx.gbl>
<nk**************@cpmsftngxa06.phx.gbl>
| Subject: Re: Catastrophic failure
| Date: Thu, 25 Sep 2003 08:24:49 -0500
| Lines: 27
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
| Message-ID: <Oq**************@TK2MSFTNGP10.phx.gbl>
| Newsgroups: microsoft.public.dotnet.general
| NNTP-Posting-Host: 24.204.3.242
| Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTN GP10.phx.gbl
| Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.general:109851
| X-Tomcat-NG: microsoft.public.dotnet.general
|
| I am connecting to an Informix database. I believe it is 9.2. I don't
| remember the version. I am using Informix ODBC and Invormix OleDb
| drivers/providers.
|
| JML
|
|
| "Kevin Yu" <v-****@online.microsoft.com> wrote in message
| news:nk**************@cpmsftngxa06.phx.gbl...
| > Hi Marshall,
| >
| > I'd like to know what kind of database system you are working on? And
| > what's the version of it? If you are using a SQL Server, please try to
| > check the following link to get a workaround.
| >
| > http://support.microsoft.com/default...b;en-us;243349
| >
| > Or you can simply use a SQL server data provider to recover it.
| >
| > If anything is unclear, please feel free to reply to the post.
| >
| > Kevin Yu
| > =======
| > "This posting is provided "AS IS" with no warranties, and confers no
| > rights."
|
|
|

Jul 21 '05 #4
Hi, Marshall

You might also check if there are more than one connections open using this
driver, If there are see if closing the first connection before opening
another resolves the problem. If so, this is likely due to a bug in the
informix/db2 driver.

Thank you for choosing the MSDN Managed Newsgroups,

John Eikanger
Microsoft Developer Support

This posting is provided ďAS ISĒ with no warranties, and confers no rights.
"Microsoft highly recommends to all of our customers that they visit the
http://www.microsoft.com/protect site and perform the three straightforward
steps listed to improve your computerís security."
--------------------
| From: "J. Marshall Latham" <ma******@networkip.net>
| References: <uA**************@TK2MSFTNGP10.phx.gbl>
<nk**************@cpmsftngxa06.phx.gbl>
| Subject: Re: Catastrophic failure
| Date: Thu, 25 Sep 2003 08:24:49 -0500
| Lines: 27
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
| Message-ID: <Oq**************@TK2MSFTNGP10.phx.gbl>
| Newsgroups: microsoft.public.dotnet.general
| NNTP-Posting-Host: 24.204.3.242
| Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTN GP10.phx.gbl
| Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.general:109851
| X-Tomcat-NG: microsoft.public.dotnet.general
|
| I am connecting to an Informix database. I believe it is 9.2. I don't
| remember the version. I am using Informix ODBC and Invormix OleDb
| drivers/providers.
|
| JML

Jul 21 '05 #5

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

Similar topics

12
by: eddie wang | last post by:
I got the following when opening up a page. It usually happens after I modify one page(not connections.asp) without refresh in IE. I have to...
2
by: MeAndI | last post by:
Hi, I've create a custom com object and I use it as follow: set test = Server.CreateObject(myObject.classID) ' --> all OK the istance of the...
1
by: sakthisakthi | last post by:
Hai I had developed one web application in dotnet with VB.net as code behind. I had included one addtional Acitvex control (FpLibX.ocx) in...
0
by: Veibert M Pinontoan | last post by:
I try to create wrapper for WMSyncReader. The code is :using System; using System.Runtime.InteropServices; namespace WMFSDKWrapper { public class...
5
by: mattiassich | last post by:
The following code causes unhandled exception on the line: New ManagementObjectSearcher(query) Dim mos As...
4
by: J. Marshall Latham | last post by:
I have written an ASP.NET web app in C# that is trying to connect to a database using OleDb. I put code in a dll that uses another dll to create a...
2
by: jdanoz | last post by:
Hello, i have a vb.net project with a reference to an ActiveX object (ocx). If i try to use the ocx from vb6 project (adding the reference) it...
5
by: Tony M. | last post by:
I just want to share a discovery. I was using a sub routine to call itself, a recursive loop. In it I used ADO to process records, and I was...
2
by: Frav | last post by:
The Reps team have been experiencing that Access 2002 unexpectedly quits while working and also lots of Corruption Failures and "Record lock can...
0
better678
by: better678 | last post by:
Question: Discuss your understanding of the Java platform. Is the statement "Java is interpreted" correct? Answer: Java is an object-oriented...
1
by: Kemmylinns12 | last post by:
Blockchain technology has emerged as a transformative force in the business world, offering unprecedented opportunities for innovation and...
0
by: Naresh1 | last post by:
What is WebLogic Admin Training? WebLogic Admin Training is a specialized program designed to equip individuals with the skills and knowledge...
0
by: antdb | last post by:
Ⅰ. Advantage of AntDB: hyper-convergence + streaming processing engine In the overall architecture, a new "hyper-convergence" concept was...
0
by: Matthew3360 | last post by:
Hi there. I have been struggling to find out how to use a variable as my location in my header redirect function. Here is my code. ...
2
by: Matthew3360 | last post by:
Hi, I have a python app that i want to be able to get variables from a php page on my webserver. My python app is on my computer. How would I make it...
0
hi
by: WisdomUfot | last post by:
It's an interesting question you've got about how Gmail hides the HTTP referrer when a link in an email is clicked. While I don't have the specific...
0
Oralloy
by: Oralloy | last post by:
Hello Folks, I am trying to hook up a CPU which I designed using SystemC to I/O pins on an FPGA. My problem (spelled failure) is with the...
0
by: Carina712 | last post by:
Setting background colors for Excel documents can help to improve the visual appeal of the document and make it easier to read and understand....

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.