473,320 Members | 2,112 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,320 software developers and data experts.

troubleshooting conflicting DLL references.

Here's the scenario:

We've purchased DTSearch search engine.

It ships with a .net api dll that we can add to our project.

Adding this DLL as a new reference, however, kills my project and spits out
a seemingly irrelevant error:
-------------------------------------------------------
C:\Inetpub\wwwroot\userControls\cioPostingDisplay. ascx.vb(58) : error
BC30392: 'Catch' cannot catch type 'exception' because it is not
'System.Exception' or a class that inherits from 'System.Exception'.
C:\Inetpub\wwwroot\userControls\staticContentDispl ay.ascx.vb(106) : error
BC30392: 'Catch' cannot catch type 'exception' because it is not
'System.Exception' or a class that inherits from 'System.Exception'.
C:\Inetpub\wwwroot\userControls\staticContentDispl ay.ascx.vb(108) : error
BC30456: 'Message' is not a member of 'exception'.
C:\Inetpub\wwwroot\userControls\staticContentDispl ay.ascx.vb(108) : error
BC30456: 'Source' is not a member of 'exception'.
-------------------------------------------------------

What are things that could possibly cause this? The vendor (rightfully so)
finds this behavior odd...as do I.

-Darrel
Nov 18 '05 #1
2 1662
It looks pretty clear to me:
error BC30392: 'Catch' cannot catch type 'exception' because it is not
'System.Exception' or a class that inherits from 'System.Exception'.

Your catch needs to be:
Try
' ... code
Catch(exception As System.Exception)
' ... code
Finally
' ... code
EndCatch

The remaining errors are because you're attempting to access member
properties and methods of System.Exception from a class that isn't derived
from System.Exception. Once you fix your catch statement, the rest ought to
work.

"darrel" wrote:
Here's the scenario:

We've purchased DTSearch search engine.

It ships with a .net api dll that we can add to our project.

Adding this DLL as a new reference, however, kills my project and spits out
a seemingly irrelevant error:
-------------------------------------------------------
C:\Inetpub\wwwroot\userControls\cioPostingDisplay. ascx.vb(58) : error
BC30392: 'Catch' cannot catch type 'exception' because it is not
'System.Exception' or a class that inherits from 'System.Exception'.
C:\Inetpub\wwwroot\userControls\staticContentDispl ay.ascx.vb(106) : error
BC30392: 'Catch' cannot catch type 'exception' because it is not
'System.Exception' or a class that inherits from 'System.Exception'.
C:\Inetpub\wwwroot\userControls\staticContentDispl ay.ascx.vb(108) : error
BC30456: 'Message' is not a member of 'exception'.
C:\Inetpub\wwwroot\userControls\staticContentDispl ay.ascx.vb(108) : error
BC30456: 'Source' is not a member of 'exception'.
-------------------------------------------------------

What are things that could possibly cause this? The vendor (rightfully so)
finds this behavior odd...as do I.

-Darrel

Nov 18 '05 #2

Here's the scenario:
We've purchased DTSearch search engine.
It ships with a .net api dll that we can add to our project.
Adding this DLL as a new reference, however, kills my project and spits out

a seemingly irrelevant error:
-------------------------------------------------------
C:\Inetpub\wwwroot\userControls\cioPostingDisplay. ascx.vb(58) : error
BC30392: 'Catch' cannot catch type 'exception' because it is not
'System.Exception' or a class that inherits from 'System.Exception'.
C:\Inetpub\wwwroot\userControls\staticContentDispl ay.ascx.vb(106) : error
BC30392: 'Catch' cannot catch type 'exception' because it is not
'System.Exception' or a class that inherits from 'System.Exception'.
C:\Inetpub\wwwroot\userControls\staticContentDispl ay.ascx.vb(108) : error
BC30456: 'Message' is not a member of 'exception'.
C:\Inetpub\wwwroot\userControls\staticContentDispl ay.ascx.vb(108) : error
BC30456: 'Source' is not a member of 'exception'.
-------------------------------------------------------
What are things that could possibly cause this? The vendor (rightfully so)

finds this behavior odd...as do I.
-Darrel


bit late, but first use system.exception instead of plain exception.

if u use Crystal Reports btw, there is your possible problem.
it uses also Exception, dunno why, but they do it
User submitted from AEWNET (http://www.aewnet.com/)
Nov 19 '05 #3

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

Similar topics

0
by: Jean-Luc | last post by:
Hi I am grafing pickling functionality on a big dictionary of object instances and I am having numerous problems. I think understand the notion of what can/can't be pickled and I know how to...
2
by: humble04 | last post by:
Hi, I am compiling a collection of C++ code. Most of them are using the new format #include <iostream>. I think all of them because I failed at finding out which header file uses the old format ...
7
by: Thiru | last post by:
I am writing an application that interacts with Oracle and Teradata. In order to create the executable, I need to link various Oracle and Teradata libraries. I found out that when I link the...
1
by: Robert A Riedel | last post by:
I am completely baffled when the following managed exception is thrown: "Object reference not set to an instance of an object" from a nested subroutine when referencing a variable allocated on the...
2
by: Ed L. | last post by:
I'm wrestling with tracking down a deadlock. Here's a 7.4.6 deadlock message: ERROR: deadlock detected DETAIL: Process 15655 waits for ShareLock on transaction 9381; blocked by process...
11
by: alex sparsky | last post by:
I have a rather unique problem that I need some advice on. I have multiple c# controls that need to make use of a common namespace. So when I go to include both controls that make use of that...
3
by: Nospam | last post by:
I'm trouble shooting my obfuscated program. I'd like suggestions on some tools to help. I'm using vs2005 with delayed signing option from the project settings and reading the hash from a key.snk...
2
by: siewong | last post by:
Existing Access Database Troubleshooting I am new to access database and inherited an access application and all users who were previously able to use this access file simulataneously are now...
1
by: helraizer1 | last post by:
Hi folks, I have an image based shoutbox which I am currently implementing emoticons onto. I have a way now for the emoticons to appear where the :D or =) etc. is on the image, but for some reason...
12
by: Michael.Z | last post by:
Anyone who can help: Given a Table.h file I am writing a Table.c file. I keep getting the compile error: previous declaration of Table was here / conflicting types for I think the...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

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.