Assembly or Directive Error?

  • Thread starter Thread starter Bruce D
  • Start date Start date
B

Bruce D

Hi all. I'm working on debugging someone else's code. The .NET application
is a mess...I can't open the project or solution files, so I've started
over...creating new projects and such. I'm working on a form that gives me
the following error when I try to build the project:

The type or namespace name 'ogi' could not be found (are you missing a using
directive or an assembly reference?)

Here is the line it's having problems with:
string mode =
ogi.ListUtilities.DeleteChk("logins","ID","chkChoose",this.lblDelete.Visible
,this.dsCustomer,this.dgLogin,d.getAdp("logins"));

I'm new to .NET and my problem is that I can't seem to figure out where
"ogi" is created. I need to find the code that is used to create this and
use it in my new project. I really wish I could just open the old
project...but it can't open (errors that I don't even want to try to work
out). Any ideas on where to look for this? I hope that isn't too broad of
a question. I can only imagine that it can be anywhere! Is there a tool
that I can use to help locate the code?

Thanks for any help...it's greatly appreciated.

-bruce duncan
* learning .NET as I go...
 
The type or namespace name 'ogi' could not be found (are you missing a
using
directive or an assembly reference?)

Here is the line it's having problems with:
string mode =
ogi.ListUtilities.DeleteChk("logins","ID","chkChoose",this.lblDelete.Visible
,this.dsCustomer,this.dgLogin,d.getAdp("logins"));

I'm new to .NET and my problem is that I can't seem to figure out where
"ogi" is created. I need to find the code that is used to create this and
use it in my new project. I really wish I could just open the old
project...but it can't open (errors that I don't even want to try to work
out). Any ideas on where to look for this? I hope that isn't too broad
of
a question. I can only imagine that it can be anywhere! Is there a tool
that I can use to help locate the code?

ogi is the first part of a namespace to a class the full name of the class
being: ogi.ListUtilities.DeleteChk.

The referenced class if not part of the current project would be in an
externally refererenced assembly (usually a .dll).

To get a project to make use of an external assembly right click on the
project, select add reference and browse
to the assembly you wish to add.

Do you have a compiled version of the application at all? If so one of the
assemblies in the applications directory should
have the class you are looking for. Otherwise the assembly has been
installed in the Global Assembly Cache (GAC) - which
you can see by clicking Add Reference and not browsing for an assembly.
Without some more information it will be a bit
trial and error.

Cheers,

Duncan
 
ogi is the first part of a namespace to a class the full name of the class
being: ogi.ListUtilities.DeleteChk.

The referenced class if not part of the current project would be in an
externally refererenced assembly (usually a .dll).

To get a project to make use of an external assembly right click on the
project, select add reference and browse
to the assembly you wish to add.

Do you have a compiled version of the application at all? If so one of the
assemblies in the applications directory should
have the class you are looking for. Otherwise the assembly has been
installed in the Global Assembly Cache (GAC) - which
you can see by clicking Add Reference and not browsing for an assembly.
Without some more information it will be a bit
trial and error.

Duncan,

Thanks for the insight. I've managed to open the project (one of them).
Under the references, along with the typical System ones, there is a
"webutilities". It has a yellow exclamation point beside it?? In the
properties, there is no "path"...only these:
(Name) = webutilities
Copy Local = False
Identity = webutilities
Strong Name = False
Type = Assembly
Version = 0.0.0.0

Is there anywhere that I can see the code in this reference? Do you think
this might be where the "ogi" class code is? How can I add this reference
to my project (or do I even want to...hard telling what unwanted code may be
in there).

Thanks!
-bruce
 
Duncan,
Thanks for the insight. I've managed to open the project (one of them).
Under the references, along with the typical System ones, there is a
"webutilities". It has a yellow exclamation point beside it?? In the
properties, there is no "path"...only these:
(Name) = webutilities
Copy Local = False
Identity = webutilities
Strong Name = False
Type = Assembly
Version = 0.0.0.0

Is there anywhere that I can see the code in this reference? Do you think
this might be where the "ogi" class code is? How can I add this reference
to my project (or do I even want to...hard telling what unwanted code may be
in there).

Thanks!
-bruce

Well I've found the webutilities.dll and have removed the reference with the
exclamation point and re-added it to the new path where I put the .dll file.
All seems to be working fine now! Thanks Duncan for the lead....
Really wish I could see what else was in that .dll

-bruce
 
Back
Top