473,700 Members | 2,631 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 2586
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
3173
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
2671
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
2976
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
1694
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
3004
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
6513
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
8713
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
9059
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
8957
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
8912
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
7795
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...
1
6556
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5897
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
3082
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2379
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.