- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
We have a Revit add-in we've created for a customer that uses API updaters to track changes to specific Sheet Parameters as well as when a new sheet is added. The changes captured by these updaters are stored in Extensible Storage in a single string of JSON data.
We have a random (a few times a week) error that occurs when the new sheet updater fires. When it happens, the user receives the error message:
"A strongly-named assembly is required. (Exception from HRESULT: 0x80131044)"
The user then receives an error message from Revit stating:
"Third party updater "New Sheet Updater" has experienced a problem and its action had to be canceled."
this message allows the user to either Cancel or choose to Disable Updater. If they Cancel, it will continue to happen each time the user attempts to add a sheet in that session. If the user chooses Disable Updater, then they can add the sheet in that session. However, if they close Revit and go back in, it will work fine so it isn't easily repeatable other than once it happens, it continues for that session of Revit.
This is a very perplexing problem with both its randomness and the fact that neither Revit, nor any of its add-ins (including ours) are strongly-named. Does anyone have any clue what could be happening to cause such an error?
The code running at the point when the error occurs is performing the following:
- Obtain our Extensible Storage object and deserialize the JSON data within it
- Add the new sheet to the deserialized JSON data
- Re-serialize the JSON data and write back into same Extensible Storage object
Solved! Go to Solution.