Print Page | Close Window

Designer Error

Printed From: IdeaBlade
Category: DevForce
Forum Name: DevForce Classic
Forum Discription: For .NET 2.0
URL: http://www.ideablade.com/forum/forum_posts.asp?TID=426
Printed Date: 11-Jun-2026 at 9:05pm


Topic: Designer Error
Posted By: vkh75
Subject: Designer Error
Date Posted: 13-Sep-2007 at 2:32am

When I try to set a BindingSource.DataSource property using the Properties Window, I get an error saying "Object reference not set to an instance of an object".  http://www.imageshare.am/view/66910929/bs_ds_error.jpg - Here is a picture that shows the error...

I was playing around with DataGridViewBindingManager and ListConverter just before this happend.
 
Does anyone khow how to get rid of the error?
 
PS: If I create a new project, all is ok. This is only in my existing project.



Replies:
Posted By: vkh75
Date Posted: 13-Sep-2007 at 6:35am

I have found solution. After I deleted "DataSources" folder located in ...\SolutionFolder\ProjectFolder\My Project folder, the error went away.



Posted By: jeffdoolittle
Date Posted: 13-Sep-2007 at 7:58am
I have had this exact same problem before.  And unfortunately, I found that deleting the DataSources folder was the only way I could fix the problem.  If anyone has a better idea of how to fix this problem, I'd like to hear about it.
 
--Jeff


Posted By: Dominique
Date Posted: 18-Sep-2007 at 12:09am
Hi,
Tis one is a classical :-)
As far as I remember you actually don't need to completly delete the folder.
The reason of the crash is that tere is one datasources that is not valid in the list, so it is enough to delete just that one. You can view the datasources in your gui project by:
Show all files
my project
datasources
From here it will be possible to delete the datasource that cause the problems. You will of course need to be able to identify it :)
Hope this help

Dominique

-------------
Dominique



Print Page | Close Window