469,963 Members | 1,309 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,963 developers. It's quick & easy.

Assembly or Directive Error?

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","chkChoo se",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...
Nov 16 '05 #1
3 1266
>
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","chkChoo se",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
Nov 16 '05 #2
> 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
Nov 16 '05 #3
> 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
Nov 16 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Jim Heavey | last post: by
4 posts views Thread by Bruce W. Roeser | last post: by
4 posts views Thread by DELESTRE Christophe | last post: by
7 posts views Thread by Steve Richter | last post: by
7 posts views Thread by Steve Richter | last post: by
2 posts views Thread by Ebbe Kristensen | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.