Solved

Hi I need Urgent Response:Having Problem with Costum control when shifted to another pc

Posted on 2004-09-20
6
140 Views
Last Modified: 2010-04-15
hi
 i need urgent response

 i have developed some costom controls using .Net 2003 C# and use it in a project it is working fine but when i put that project into some another pc wiht 2003 .net c# and when i open the form containg the Costom conctrols i got err messages saying refreing to that controls ,that the type u r refreing in assembly is not that u have referenced.

 i have referenced all the librarys and i have also included the source of the librarys in that project and bulit them again but in vain

 also when i open the form all the contols or disapear from the form and the same err comes that i hvae quoted above

 please i nedd it very urgent

 Thanks
and Good luck for 300 Points
---------------------------------
0
Comment
Question by:TariqRahim
6 Comments
 
LVL 5

Expert Comment

by:jjacksn
ID: 12109642
I have had this problem as well and do not know the solution.  The only thing I can recommend is this:

close all forms in the project.  Add in the reference, and build.  If there are no errors, then try adding in the controls into forms.  You will still get Designer errors, but the code should compile. Every once in a while, all of the controls will disappear from my forms.  

I believe the stems from lack of desinger support in your custom controls.  
0
 
LVL 4

Accepted Solution

by:
somnatic earned 300 total points
ID: 12110007
try putting your customs controls into the Global Assembly Cache .. Therefore you need to sign them with a strong name


The thing that helps with the control problem:
* Close all files (not the project itself, only the files)
* Remove all References
* Re-Add all References
* Save (do not rebuild)
* Close Visual Studio
* Reboot
* Open Visual Studio (Now no file should be visible)
* Rebuild All

If no error appears, the form should be displayed again
0
 
LVL 8

Expert Comment

by:rajaloysious
ID: 12110669
When you are using the source projects of the custom controls..
closing all the designers of the custom control and then rebuilding the project may help...

-Good Luck
Cheers
0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

This article introduced a TextBox that supports transparent background.   Introduction TextBox is the most widely used control component in GUI design. Most GUI controls do not support transparent background and more or less do not have the…
Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now