473,695 Members | 2,258 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

REPOST: More Reference problems & custom controls disappearing

Hi all,

I'm reposting this message as I'm experiencing this problem more and
more frequently :

I really hope someone out there can help me as I've been tearing my
hair out on this one for a good while and I'm getting really
frustrated now!

My problem is this - my custom controls periodically disappear from my
project when I build it. First of I get the message about a missing
dependency, then if I rebuild after that - the control just physically
disappears from the form, and I get an object not found error when I
run, (although sometimes when I rebuild the control can reappear!)

My background - I'm working in a small team of developers, we are
using vb.net in visual studio with visual source safe.

As I've said I've been battling with this for a while and have done
some reading on this - I know that it is to do with references.
Therefore I am trying to do what all the Microsoft articles I've read
recommend with regard to references: - setting copy to local = true,
using project references not file references, and setting the build
order but to no avail. (Incidentally I still get this problem when
using file references).

Some more information - the custom controls are using a data access
object, and this data access object is also being used by another
object which the main form also uses. It is the reference to this data
access object that is the one that that I get the message about the
missing dependency.

I received some advice last time I posted about manually
re-inserting the code for the custom control back into the designer
generated region when this happens to get over the problem, but I
found that VSS just wouldn't accept it and disappeared the code that I
just added back in every time that I tried to rebuild.

What I'd like to know is why am I getting the file or assembly not
found error in the first place if I'm using project references, copy
local = true etc? I believe this is the reason why the Windows Forms
designer is removing the control.

Also I'm a bit unclear about how adding the custom control on to the
toolbox fits into all this file vs. project references debate? Am I
actually referencing a specific version of the custom control's dll by
adding it on to the toolbox in the first place?

When I drag it from the toolbox onto my form does that mean I am then
referencing that specific version (by a file reference) even though I
am including the custom control as a project reference in my solution?
Could that be why I'm getting that error message?

Please help - I think I'm spending more time adding my existing
controls back to my form than writing anything new at the moment
Thank you
Suzanne
Nov 20 '05 #1
2 2585
Forgive me if this may seem a bit simplistic but ?

The problem with this sort of question is that unless this is a well known
phenomenon, it is highly unlikely that you will get a resolution with this
level of diagnostic description.

I'm not suggesting that you are not looking at the problem in a logical
fashion ( I'm sure you are ), but what sort of science have you put behind
solving this.

For example, have you been able to repeat the disapearance of the controls
with a known set of steps ? You refer to the "Periodic" disapearance of the
controls, is the period defined ( IE Every time, one in three, random
periods ).

Q.) Is there any other event happening on this machine which may be causing
a problem, for example, do you have a virus scanner operational?

Q.) Any other programs running which may be altering either your files or
file attributes?

Q.) Is the program you are running altering the file structure, attributes
or files ?

Q.) Does your machine have a virus.?

Q.) Have you tried this without source safe ?

The disapearance of these controls is VERY unlikely to be a random event.
( Notwithstanding external influences already mentioned ).
Regards OHM

----------------------------


Suzanne wrote:
Hi all,

I'm reposting this message as I'm experiencing this problem more and
more frequently :

I really hope someone out there can help me as I've been tearing my
hair out on this one for a good while and I'm getting really
frustrated now!

My problem is this - my custom controls periodically disappear from my
project when I build it. First of I get the message about a missing
dependency, then if I rebuild after that - the control just physically
disappears from the form, and I get an object not found error when I
run, (although sometimes when I rebuild the control can reappear!)

My background - I'm working in a small team of developers, we are
using vb.net in visual studio with visual source safe.

As I've said I've been battling with this for a while and have done
some reading on this - I know that it is to do with references.
Therefore I am trying to do what all the Microsoft articles I've read
recommend with regard to references: - setting copy to local = true,
using project references not file references, and setting the build
order but to no avail. (Incidentally I still get this problem when
using file references).

Some more information - the custom controls are using a data access
object, and this data access object is also being used by another
object which the main form also uses. It is the reference to this data
access object that is the one that that I get the message about the
missing dependency.

I received some advice last time I posted about manually
re-inserting the code for the custom control back into the designer
generated region when this happens to get over the problem, but I
found that VSS just wouldn't accept it and disappeared the code that I
just added back in every time that I tried to rebuild.

What I'd like to know is why am I getting the file or assembly not
found error in the first place if I'm using project references, copy
local = true etc? I believe this is the reason why the Windows Forms
designer is removing the control.

Also I'm a bit unclear about how adding the custom control on to the
toolbox fits into all this file vs. project references debate? Am I
actually referencing a specific version of the custom control's dll by
adding it on to the toolbox in the first place?

When I drag it from the toolbox onto my form does that mean I am then
referencing that specific version (by a file reference) even though I
am including the custom control as a project reference in my solution?
Could that be why I'm getting that error message?

Please help - I think I'm spending more time adding my existing
controls back to my form than writing anything new at the moment
Thank you
Suzanne

Nov 20 '05 #2
Forgive me if this may seem a bit simplistic but ?

The problem with this sort of question is that unless this is a well known
phenomenon, it is highly unlikely that you will get a resolution with this
level of diagnostic description.

I'm not suggesting that you are not looking at the problem in a logical
fashion ( I'm sure you are ), but what sort of science have you put behind
solving this.

For example, have you been able to repeat the disapearance of the controls
with a known set of steps ? You refer to the "Periodic" disapearance of the
controls, is the period defined ( IE Every time, one in three, random
periods ).

Q.) Is there any other event happening on this machine which may be causing
a problem, for example, do you have a virus scanner operational?

Q.) Any other programs running which may be altering either your files or
file attributes?

Q.) Is the program you are running altering the file structure, attributes
or files ?

Q.) Does your machine have a virus.?

Q.) Have you tried this without source safe ?

The disapearance of these controls is VERY unlikely to be a random event.
( Notwithstanding external influences already mentioned ).
Regards OHM

----------------------------


Suzanne wrote:
Hi all,

I'm reposting this message as I'm experiencing this problem more and
more frequently :

I really hope someone out there can help me as I've been tearing my
hair out on this one for a good while and I'm getting really
frustrated now!

My problem is this - my custom controls periodically disappear from my
project when I build it. First of I get the message about a missing
dependency, then if I rebuild after that - the control just physically
disappears from the form, and I get an object not found error when I
run, (although sometimes when I rebuild the control can reappear!)

My background - I'm working in a small team of developers, we are
using vb.net in visual studio with visual source safe.

As I've said I've been battling with this for a while and have done
some reading on this - I know that it is to do with references.
Therefore I am trying to do what all the Microsoft articles I've read
recommend with regard to references: - setting copy to local = true,
using project references not file references, and setting the build
order but to no avail. (Incidentally I still get this problem when
using file references).

Some more information - the custom controls are using a data access
object, and this data access object is also being used by another
object which the main form also uses. It is the reference to this data
access object that is the one that that I get the message about the
missing dependency.

I received some advice last time I posted about manually
re-inserting the code for the custom control back into the designer
generated region when this happens to get over the problem, but I
found that VSS just wouldn't accept it and disappeared the code that I
just added back in every time that I tried to rebuild.

What I'd like to know is why am I getting the file or assembly not
found error in the first place if I'm using project references, copy
local = true etc? I believe this is the reason why the Windows Forms
designer is removing the control.

Also I'm a bit unclear about how adding the custom control on to the
toolbox fits into all this file vs. project references debate? Am I
actually referencing a specific version of the custom control's dll by
adding it on to the toolbox in the first place?

When I drag it from the toolbox onto my form does that mean I am then
referencing that specific version (by a file reference) even though I
am including the custom control as a project reference in my solution?
Could that be why I'm getting that error message?

Please help - I think I'm spending more time adding my existing
controls back to my form than writing anything new at the moment
Thank you
Suzanne
Suzanne wrote: Hi all,

I'm reposting this message as I'm experiencing this problem more and
more frequently :

I really hope someone out there can help me as I've been tearing my
hair out on this one for a good while and I'm getting really
frustrated now!

My problem is this - my custom controls periodically disappear from my
project when I build it. First of I get the message about a missing
dependency, then if I rebuild after that - the control just physically
disappears from the form, and I get an object not found error when I
run, (although sometimes when I rebuild the control can reappear!)

My background - I'm working in a small team of developers, we are
using vb.net in visual studio with visual source safe.

As I've said I've been battling with this for a while and have done
some reading on this - I know that it is to do with references.
Therefore I am trying to do what all the Microsoft articles I've read
recommend with regard to references: - setting copy to local = true,
using project references not file references, and setting the build
order but to no avail. (Incidentally I still get this problem when
using file references).

Some more information - the custom controls are using a data access
object, and this data access object is also being used by another
object which the main form also uses. It is the reference to this data
access object that is the one that that I get the message about the
missing dependency.

I received some advice last time I posted about manually
re-inserting the code for the custom control back into the designer
generated region when this happens to get over the problem, but I
found that VSS just wouldn't accept it and disappeared the code that I
just added back in every time that I tried to rebuild.

What I'd like to know is why am I getting the file or assembly not
found error in the first place if I'm using project references, copy
local = true etc? I believe this is the reason why the Windows Forms
designer is removing the control.

Also I'm a bit unclear about how adding the custom control on to the
toolbox fits into all this file vs. project references debate? Am I
actually referencing a specific version of the custom control's dll by
adding it on to the toolbox in the first place?

When I drag it from the toolbox onto my form does that mean I am then
referencing that specific version (by a file reference) even though I
am including the custom control as a project reference in my solution?
Could that be why I'm getting that error message?

Please help - I think I'm spending more time adding my existing
controls back to my form than writing anything new at the moment
Thank you
Suzanne

Nov 20 '05 #3

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

Similar topics

2
4089
by: neptune | last post by:
I built a form to access a query with a 2 field primary key. It should use 2 controls to find the unique record and display the other field values on the form. In the criteria section of the query, I set the 2 primary key values equal to the 2 control values on my form. When I input a value to these 2 controls the query finds the correct record, so I know my query with the criteria works. My problem is trying to get the output values...
2
3172
by: Brian | last post by:
NOTE ALSO POSTED IN microsoft.public.dotnet.framework.aspnet.buildingcontrols I have solved most of my Server Control Collection property issues. I wrote an HTML page that describes all of the problems that I have encountered to date and the solutions (if any) that I found. http://users.adelphia.net/~brianpclab/ServerControlCollectionIssues.htm This page also has all of the source code in a compressed file that you are free to download...
6
2668
by: Suzanne | last post by:
Hi all, I really hope someone out there can help me as I've been tearing my hair out on this one for a good while and I'm getting really frustrated now! My problem is this - my custom controls periodically disappear from my project when I build it. First of I get the message about a missing dependency, then if I rebuild after that - the control just physically disappears from the form, and I get an object not found error when I
18
2969
by: Colin McGuire | last post by:
Hi - this was posted last weekend and unfortunately not resolved. The solutions that were posted almost worked but after another 5 days of working on the code everynight, I am not further ahead. If you do have any ideas I would really like to hear them. Thanks Colin - 0 - 0 - 0 - I want a glorified popup/context menu on a button that shows only when
2
1692
by: Pipo | last post by:
Nobody knows how to get the values provided in the client can be read in the user-control? If have made a Web Custom Control with 2 textboxes and 1 dropdownlist. The user fills in my control (the textboxes and the dropdownlist) and lots more stuff on the page. When the user wants to save the page he'll click the save button. The server gets the postback but I can read out the filled in controls (in my control). The textboxes text = ""...
1
1215
by: Jeffrey Frabutt | last post by:
Sorry about the repost... but my original post had funky characters that was causing it to get truncated. I've got a rather simple custom web control that has an object delcared as HtmlControls.HtmlInputHidden. I set the ID = 'PageNo' and the Name = 'PageNo'. However, when I look at the page source in the browser, the object's ID is "WebCtl3_PageNo" and the Name is "WebCtl3:PageNo". I'm reference the object in javascript as...
3
3003
by: Beavis | last post by:
I hate to repost a message, but I am still at the same point where I was when I originally posted, and hopefully someone else will see this one... Ok, so I have gone off and documented the lifecycle of a page with a custom composite control on it. You can find that document here: http://www.ats-engineers.com/lifecycle.htm
15
6511
by: rizwanahmed24 | last post by:
Hello i have made a custom control. i have placed a panel on it. I want this panel to behave just like the normal panel. The problem i was having is that the panel on my custom control doesnt accept other controls. The control i drag drop on it becomes the child of my custom control's parent form and not the child of my custom control. Then i added this line "" before my custom control class (i dont know what this line does). Now
1
1979
by: rizwanahmed24 | last post by:
Hello i have created a custom control. i have placed two template controls on it. One is check box and second is picture box. The custom control also contain two picture boxes as property. These picture boxes can be filled at design time. I want my custom control to act as container. I drag the controls from toolbox on my custom control. Everything is fine so far. But when i compile the application the two template controls i mentioned...
0
8617
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9112
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8971
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8822
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8815
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7650
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
4332
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
2251
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
1970
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.