ErrorProvider DataSource property - Object reference not set to an instance of an object

ErrorProvider DataSource property - Object reference not set to an instance of an object

Old forum URL: forums.lhotka.net/forums/t/1904.aspx


tseveryn posted on Tuesday, December 05, 2006

Good evening,

I hope nobody is staying up that late though..

Short explanation of the problem:

My Install_Edit user control inherits WinPart. Controls on the Install_Edit form are bound to the InstallBindingSource, that is in turn bound to MyProject.Library.Install business object as its data source.

I am trying to set the DataSource property of the ErrorProvider of Install_Edit to the InstallBindingSource, however the list of the datasources for the ErrorProvider is empty and when i click on it I get the message "Object reference not set to an instance of an object".

Any help would be greatly appreciated.

 

Thank you,

TS

ajj3085 replied on Wednesday, December 06, 2006

I've gotten that error if there are no class files in the root of the project.  Try right clicking on the project in solution explorer, and adding a class, save, and recompile.

Copyright (c) Marimer LLC