473,396 Members | 1,861 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,396 software developers and data experts.

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 1379
>
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Jim Heavey | last post by:
I am trying to figure out the @Assembly directive. I have an application which uses "codebehind" and only uses source code, so I am using the "src=" option of the @Page directive. So I have...
3
by: Dan | last post by:
Hi, I have a problem using an aspx page with a Control on it. I get the following error message Compiler Error Message: CS1595: 'Test.Class2' is defined in multiple places; using definition...
4
by: Bruce W. Roeser | last post by:
All, I'm reading a book by Charles Petzold (Programming VS.Net). Pretty good content but am confused about the difference. From the text: ...
5
by: Greg Collins [MVP] | last post by:
I have an ASP.NET page that uses a tag: <asp:Xml id="foo" runat="server" DocumentSource="rss.xml" TransformSource="rss20.xsl" /> This creates a Web page from an XML file that was generated by...
4
by: DELESTRE Christophe | last post by:
I’m sorry to disturb you but I have a problem on .NET development, and I’m need some help to resolve it if it’s possible. I have an aspx page with src property (no dll for my web...
7
by: Steve Richter | last post by:
I am attempting to use the IBM DB2Connection class in my .aspx web page. Using Visual Web Developer 2005 express, I cant figure out how to add a reference to a project. heck, I cant figure out...
7
by: Steve Richter | last post by:
When I build a C# class and install it in the GAC, my code works as it should, my .aspx code finds the DLL and can run a static method: <%@ Assembly Name="AutoCoder, Culture=neutral,...
3
by: Jim | last post by:
Hi, I have an assembly and it's satellite in my GAC. I have referenced the DLLs in my project (from the same location where I added it to the GAC). CopyLocal is set false. When I run the...
2
by: Andy Fish | last post by:
Hi, I have a single-file aspx file (no codebehind). when I try to do this: <%@ Import Namespace="MySql.Data.MySqlClient" %> I get this: CS0246: The type or namespace name 'MySql' could...
2
by: Ebbe Kristensen | last post by:
Hi All I am trying to get access to an assembly in an ASPX project. I have added the assembly to GAC using gacutil and added an "%@Import namespace = "MyNamespace" %" to the .aspx file but this...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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...
0
Oralloy
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
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...

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.