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

"Object reference not set to an instance of an object"

Kam
Hi!

When I am trying to drag user controls or any controls from the Toolbox to a
form in some of my projects I get a dialog messages: (Microsoft Deployment
Environment)
"Object reference not set to an instance of an object"

Notes that:
1. It's a designer problem, not a reference problem. When I am adding this
user control directly to the code it works just fine, but I can't make it
work using the designer and see it in design time.
2. It happens only in some of the projects in the solution, not all of them.
3. In my company we are working with 'Microsoft visual source safe' and
other members of the team don't suffer
from the this problem.
4. Getting the latest version from 'source safe' didn't help.
5. Reinstalling VisualStudio .Net from scratch didn't help
6. When I am logging in as a different user the problem remains.

How can I restore the functionality of the designer to work with
(is it an environment problem)?

many thanks,
Kam
Nov 22 '05 #1
3 2189
guy
when you say user controls if you mean custom built ones
and not ones that come with visual studio then...

remember that code actually runs at design time.

for example, when you drop a user control onto a form the
constructor code will be run.

if your machine is missing support libraries for the
offending control then these problems are bound to happen
-----Original Message-----
Hi!

When I am trying to drag user controls or any controls from the Toolbox to aform in some of my projects I get a dialog messages: (Microsoft DeploymentEnvironment)
"Object reference not set to an instance of an object"

Notes that:
1. It's a designer problem, not a reference problem. When I am adding thisuser control directly to the code it works just fine, but I can't make itwork using the designer and see it in design time.
2. It happens only in some of the projects in the solution, not all of them.3. In my company we are working with 'Microsoft visual source safe' andother members of the team don't suffer
from the this problem.
4. Getting the latest version from 'source safe' didn't help.5. Reinstalling VisualStudio .Net from scratch didn't help
6. When I am logging in as a different user the problem remains.
How can I restore the functionality of the designer to work with(is it an environment problem)?

many thanks,
Kam
.

Nov 22 '05 #2
Kam
it is both, the standard and non-standard controls.
Nov 22 '05 #3
Kam
it is both, the standard and non-standard controls.!!
Nov 22 '05 #4

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

Similar topics

0
by: Bob Cannistraci | last post by:
A three-tier user authentication system was running without a problem for almost a year and now is suddenly dysfunctional. We don't know of any changes to any of the servers. It's quite maddening....
22
by: Dr Duck | last post by:
GDay all, Something seems odd to me.... I wrote a simple C# function public void bind(ref object a, ref object b, bool atob) { if(atob) b = a; else
1
by: Chris Magoun | last post by:
I suddenly received an unexpected error in my project. I have been working on this project for some time without this issue. Nothing has changed in the form that caused the exception. A little...
18
by: Microsoft | last post by:
When I try this in my code I alwas get an errormessage: "Object reference not set to an instance of an object" Dim g As System.Drawing.Graphics g.DrawString("Test", New Font("Arial", 12,...
1
by: Gummy | last post by:
Hello, I've been banging my head against the wall for a few days on this. When I run a page, either in "View in Browser" or I actually build the solution, I occasionally and very randomly get...
2
by: louie.hutzel | last post by:
This JUST started happening, I don't remember changing any code: When I click the submit button on my form, stuff is supposed to happen (which it does correctly) and a result message is posted back...
35
by: Chris | last post by:
Hi, I tried to create a class which must change the propety 'visible' of a <linktag in the masterpage into 'false' when the user is logged. But i get the error: "Object reference not set to an...
0
by: Tamer Ibrahim | last post by:
Hi, Sometimes, I got the following error message when I use ajax calendar control on some aspx pages : Object reference not set to an instance of an object. Description: An unhandled exception...
4
by: My Pet Programmer | last post by:
Ok guys, I'm really looking for someone to tell me how bad a hack this is, and if I'm close to where I should be with it. The basic situation is that I have a class which creates a basic...
2
by: snester | last post by:
Hi, I am using visual studio 2005 and recently created a new web service project. I seem to have edited the global config file (inadvertently) somewhere along the line. All new projects I...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
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,...

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.