Click here to Skip to main content
15,879,326 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
if i want to add background image in panel or form then i clicked background image in propertybox. but it's giving the following error.

Object Reference not set to an instance of an object.

in visual studio 2012, Project-> Server Properties-> Resources

here also it's showing the same error

Object Reference not set to an instance of an object.

what is the solution for this?
Posted

1 solution

We can't answer this: you have done something to your form or controls which means that it's no longer fully valid to Visual Studio - so when it tries to access it, it fails.

Try shutting down all instances of VS and reopening your solution - sometimes VS can throw some very odd errors which this can resolve.
If that doesn't fix it, try looking at what you have done since it last worked and see if removing that fixes the problem. if it does, add it back slowly until you get it back again.

If that doesn't fix it, create a new solution and slowly add your existing code to it until you find out which part causes the problem. You can then look in more detail at that code and hopefully resolve it.

But we can't do any of that for you!
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900