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

Pretty stupid question



I have been handed a program that someone else wrote to preform simple
maintenance on. I had a request to fix a minor bug, so I checked the program
out of Source Safe and attempted to just build it.

When I do, I get a build error

Could not find type 'MyProject.MyControl'. Please make sure that the
assembly that contains this type is referenced. If this type is a part of
your development project, make sure that the project has been successfully
built.
The previous programmer had created a user control that is refrenenced all
over this program, it is part of the same namespace.

My thought is that it needs to be complied before the rest of the pages in
the program and that is not happening.

Anyone got a quick way to fix this?

Thanks,
Justin
Nov 17 '05 #1
4 1439
Did you get latest of the entire solution? If so, then does the control
exist in one of the projects there?

Simply right click that project, and build it. After that, you should be
able to build the current project without any problems.
--------------------------------------------------------------------------------
All that glitters has a high refractive index.
www.mendhak.com
"Justin Lazanowski" <ju****@nospam.southeastmilk.org> wrote in message
news:O1**************@TK2MSFTNGP14.phx.gbl...


I have been handed a program that someone else wrote to preform simple
maintenance on. I had a request to fix a minor bug, so I checked the
program out of Source Safe and attempted to just build it.

When I do, I get a build error

Could not find type 'MyProject.MyControl'. Please make sure that the
assembly that contains this type is referenced. If this type is a part of
your development project, make sure that the project has been successfully
built.
The previous programmer had created a user control that is refrenenced all
over this program, it is part of the same namespace.

My thought is that it needs to be complied before the rest of the pages in
the program and that is not happening.

Anyone got a quick way to fix this?

Thanks,
Justin

Nov 17 '05 #2
Yes the code for this user control is there, however it's a form (or user
control) within the main project. It is not a seperate project. When I right
click on the control there is not an option to build it.
"S.M. Altaf [MVP]" <sm*****@PLEASEDONTSPAMMEmsn.com> wrote in message
news:Om**************@TK2MSFTNGP14.phx.gbl...
Did you get latest of the entire solution? If so, then does the control
exist in one of the projects there?

Simply right click that project, and build it. After that, you should be
able to build the current project without any problems.
--------------------------------------------------------------------------------
All that glitters has a high refractive index.
www.mendhak.com
"Justin Lazanowski" <ju****@nospam.southeastmilk.org> wrote in message
news:O1**************@TK2MSFTNGP14.phx.gbl...


I have been handed a program that someone else wrote to preform simple
maintenance on. I had a request to fix a minor bug, so I checked the
program out of Source Safe and attempted to just build it.

When I do, I get a build error

Could not find type 'MyProject.MyControl'. Please make sure that the
assembly that contains this type is referenced. If this type is a part
of your development project, make sure that the project has been
successfully built.
The previous programmer had created a user control that is refrenenced
all over this program, it is part of the same namespace.

My thought is that it needs to be complied before the rest of the pages
in the program and that is not happening.

Anyone got a quick way to fix this?

Thanks,
Justin


Nov 17 '05 #3
You can't build the control separately from the project, if it IS part of
the project. It seems that there is a problem with the name reference to the
control class in the rest of the project. Check the name references against
the name of the control class.

If you're using Visual Studio.Net, you can go to the Class View pane and see
the control class in its namespace context.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
Ambiguity has a certain quality to it.

"Justin Lazanowski" <ju****@nospam.southeastmilk.org> wrote in message
news:ep****************@TK2MSFTNGP09.phx.gbl...
Yes the code for this user control is there, however it's a form (or user
control) within the main project. It is not a seperate project. When I
right click on the control there is not an option to build it.
"S.M. Altaf [MVP]" <sm*****@PLEASEDONTSPAMMEmsn.com> wrote in message
news:Om**************@TK2MSFTNGP14.phx.gbl...
Did you get latest of the entire solution? If so, then does the control
exist in one of the projects there?

Simply right click that project, and build it. After that, you should be
able to build the current project without any problems.
--------------------------------------------------------------------------------
All that glitters has a high refractive index.
www.mendhak.com
"Justin Lazanowski" <ju****@nospam.southeastmilk.org> wrote in message
news:O1**************@TK2MSFTNGP14.phx.gbl...


I have been handed a program that someone else wrote to preform simple
maintenance on. I had a request to fix a minor bug, so I checked the
program out of Source Safe and attempted to just build it.

When I do, I get a build error

Could not find type 'MyProject.MyControl'. Please make sure that the
assembly that contains this type is referenced. If this type is a part
of your development project, make sure that the project has been
successfully built.
The previous programmer had created a user control that is refrenenced
all over this program, it is part of the same namespace.

My thought is that it needs to be complied before the rest of the pages
in the program and that is not happening.

Anyone got a quick way to fix this?

Thanks,
Justin



Nov 17 '05 #4
SP

"Justin Lazanowski" <ju****@nospam.southeastmilk.org> wrote in message
news:ep****************@TK2MSFTNGP09.phx.gbl...
Yes the code for this user control is there, however it's a form (or user
control) within the main project. It is not a seperate project. When I
right click on the control there is not an option to build it.
Look at the user control in code view. Is the namespace the same as the
MyProject in 'MyProject.MyControl' and is the class name 'MyControl'?

SP


"S.M. Altaf [MVP]" <sm*****@PLEASEDONTSPAMMEmsn.com> wrote in message
news:Om**************@TK2MSFTNGP14.phx.gbl...
Did you get latest of the entire solution? If so, then does the control
exist in one of the projects there?

Simply right click that project, and build it. After that, you should be
able to build the current project without any problems.
--------------------------------------------------------------------------------
All that glitters has a high refractive index.
www.mendhak.com
"Justin Lazanowski" <ju****@nospam.southeastmilk.org> wrote in message
news:O1**************@TK2MSFTNGP14.phx.gbl...


I have been handed a program that someone else wrote to preform simple
maintenance on. I had a request to fix a minor bug, so I checked the
program out of Source Safe and attempted to just build it.

When I do, I get a build error

Could not find type 'MyProject.MyControl'. Please make sure that the
assembly that contains this type is referenced. If this type is a part
of your development project, make sure that the project has been
successfully built.
The previous programmer had created a user control that is refrenenced
all over this program, it is part of the same namespace.

My thought is that it needs to be complied before the rest of the pages
in the program and that is not happening.

Anyone got a quick way to fix this?

Thanks,
Justin



Nov 17 '05 #5

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

Similar topics

0
by: Andy Fish | last post by:
Hi, I am trying to use MXXMLWriter with the indent flag to pretty print an XML document from vb6. Although the output is mostly indented in a reasonable way, the end tags are always bunched...
119
by: rhat | last post by:
I heard that beta 2 now makes ASP.NET xhtml compliant. Can anyone shed some light on what this will change and it will break stuff as converting HTML to XHTML pages DO break things. see,...
5
by: raz | last post by:
Greetings all. I apologize for what is almost certainly a stupid question, but I can't figure this out, and have no more time for head bashing... The short version: what is the appropriate...
2
by: Ron Weldy | last post by:
I read that you don't need .cs files to deploy but I suppose if you are trying to reconstruct someone's work, you will need these files. Is that correct?
3
by: rroman | last post by:
I have a very simple form, takes information from the user, updates a SQL database, now I just want to redirect to a "Thank You For Your Time" web page within the same bowser. ASP. NET VB
6
by: Adam Smith | last post by:
I have posted this and similar questions repeatedly and can't even raise a single response. I am being led to believe that this then 'Must be a stupid question' although people say that there is no...
5
by: Alberto Salvati | last post by:
Hi, List. My company has a VERY BIG product base on db2 udb v7.x. We want to di an upgrade to v9, but.... current db has a lot of procedure (cobol..!). Therefore, we've planned to rewrite this...
2
by: Lynx101 | last post by:
Hi, Is this a stupid question? Senario: Two tables linked together with an ID number. Question: When using a combo box, which refences another table by indexed autonumber, is there a way to...
9
by: AWW | last post by:
Running XP - Visual Studio 2005 - VB Want to have duplicate projects - one safe and stable - other for experimenting Can't fine easy way to make duplicate project. Stupid question? or stupid ME?...
9
by: Alec | last post by:
Sorry guys, stupid question.... Am no programming expert and have only just started using php for creating dynamic news pages. Then I see a dynamic website without the php extension. ...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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...

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.