VS designer has started to complain about the following errors :
Object reference not set to an instance of an object.
Instances of this error (2)
and
Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: index
Instances of this error (12)
1. Hide Call Stack
at System.Componen tModel.ReflectP ropertyDescript or.SetValue(Obj ect component, Object value)
at System.Componen tModel.Design.S erialization.Co deDomSerializer Base.Deserializ ePropertyAssign Statement(IDesi gnerSerializati onManager
manager, CodeAssignState ment statement, CodePropertyRef erenceExpressio n propertyReferen ceEx, Boolean reportError)
at System.Componen tModel.Design.S erialization.Co deDomSerializer Base.Deserializ eAssignStatemen t(IDesignerSeri alizationManage r
manager, CodeAssignState ment statement)
at System.Componen tModel.Design.S erialization.Co deDomSerializer Base.Deserializ eStatement(IDes ignerSerializat ionManager manager,
CodeStatement statement)
It has been working fine for months. I haven't even changed the code in this module. And, the code runs fine when I just run the
code.
Any idea how to get rid of this problem would be welcome. They don't even bother to indicate what field there is a problem with or
where the problem happened in the code - at least as far as I can see.
Thanks,
Steve
Comment