ajj3085 posted on Friday, August 01, 2008
Hi,
I'm having a very weird problem. Some users are getting errors and I can't figure out why. One is a
serialization error that only occurred for one user in a particular spot, and for another user in a different spot. Yesterday, another user encountered a problem running a report as well.. and no one else had the same problem. Everyone is on the same version of my app and .Net framework. Even XP / Vista service pack levels. I just experienced the same error as the user did yesterday as well.
The new error is this:
Message: InvalidCastException: Unable to cast object of type 'System.Object[]' to type 'MyCompany.Quoting.DocumentList'.\r\nStack trace: at MyCompany.Sales.MainForm.LoadDocumentsForPrinting(Object sender, DoWorkEventArgs e)
at System.ComponentModel.DoWorkEventHandler.Invoke(Object sender, DoWorkEventArgs e)
at System.ComponentModel.BackgroundWorker.OnDoWork(DoWorkEventArgs e)
at System.ComponentModel.BackgroundWorker.WorkerThreadStart(Object argument)\r\nSource: Sales
Again, the fix was to uninstall and reinstall the appliction from the website.. no other changes needed.
Has anyone encountered anything like this before? The other error is a SerializationException... so it's not the particular exception that is the worry... just that a simple un-install re-install seems to fix the issue, and that now its happened to four of us. The only thing in common is that the errors always happen on a background thread.
Thanks
Andy