I have just started to use silverlight in visual studio 2k8. I have installed silverlight 3 tools for visual studio 2K8. Now while creating a new project an error is thrown - "object reference is not set to an instance of an object". Screen-shots are attached. Could you guyz please help?
Error screen shot
Create project screen shot
The best way to avoid the "NullReferenceException: Object reference not set to an instance of an object” error is to check the values of all variables while coding. You can also use a simple if-else statement to check for null values, such as if (numbers!= null) to avoid this exception.
The message "object reference not set to an instance of an object" (NullReferenceException) means that you are referring to an object the does not exist or was deleted or cleaned up.
Object reference not set to an instance of an object normally occurs when a variable is null. Try putting a message box before the activity that breaks, run in debug with the locals panel pinned, and look for a null variable involved in the activity once you've reached the message box. Hope this helps!
Try re-setting your Visual Studio settings. Go to Start > Visual Studio Command Prompt (2008) and run the commands sequentially:
devenv /ResetSettings
devenv /ResetSkipPKGS
See if this does the trick...
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With