|
When trying to 'Perform' an upgrade, DataObjects.NET fails with:
Take note that only the version of the assembly has changed - none of the source files were relocated / modified. If I manually change the 'Version' of the entry in Metadata.Assembly, everything works again as expected, but this isn't really a good way to upgrade in the future... Any idea what is going on? The exception thrown didn't tell me why it is not supported, so I'm clueless. |
|
|
You need to create an UpgradeHandler class for your assembly. The details are in the manual (URL http://help.dataobjects.net/##DataObjects.Net%20v4.4/html/34aeb6cd-61e8-4db2-88f8-1eff2031f103.htm ) In your case you will need just an empty upgrade handler.
I thought it would work, but the same issue remained. I put the UpgradeMode to Recreate, ran the app : worked. Then put it back to 'Perform', made sure the assembly version increased, and again it tells me that the upgrade is not supported. I do have the code posted above in my project now, and still the issue remains. Any other ideas? See xumix answer : I have forgotten an important part! |
