473,399 Members | 3,832 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,399 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 2190
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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...
0
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...
0
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,...

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.