"Error 1 Invalid Resx file"

P

PJ6

Whenever I change something in a DataViewgrid that triggers the WinForms
designer to recreate Form code, I get these errors:

Error 1 Invalid Resx file. Could not load type TestApp.MainDataSet, TestApp,
Version=0.0.0.0, Culture=neutral, PublicKeyToken=null which is used in the
..RESX file. Ensure that the necessary references have been added to your
project. Line 289, position 5. C:\Documents and Settings\Developer\My
Documents\Visual Studio 2005\Projects\TestApp\TestApp\ado\Form2.resx 289 5
TestApp

Error 2 Unable to open file 'C:\Documents and Settings\Developer\My
Documents\Visual Studio
2005\Projects\TestApp\TestApp\obj\Debug\TestApp.Form2.resources': The system
cannot find the file specified.

I have inheritors to DataViewGrid, and the DataSource is already determined.
I believe this causes the problem as the serializer attempts to serialize it
into the resx file. To try to prevent this, I've shadowed the DataSource
property, and even tried to filter it out with a control designer, without
any luck.

Getting rid of the error is simple, I just remove the offending item in the
resx file, to no ill effect. But I have to do this constantly while I'm
developing.

Any ideas how I can fix this?

TIA,
Paul
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top