We have performed a database restore to our system and are now encountering the following error message when we attempt to do anything with the iMIS iBOs.
Asi.Business.SchemaLoadException: Unable to load object schema definition for User ---> Asi.Business.Common.DocumentNotFoundException: Document not found or insufficient permissions to read document. $/Business Object Schema/User
We have not encountered this error before and we believe everything is setup correctly. Any insight is greatly appreciated.
Any time a database is
Any time a database is restored (but especially if it's restored under a new name, to a new server, etc), you need to be sure to run the "DBRepair" utility, and click the "Prepare Database" button.
If that doesn't fix your problem, try this:
Open a command window on the app server, and navigate to the net/bin folder under the ASI iMIS install
Run the BuildPublishBOs.exe tool with the command line (making sure to substitute your correct local server name, user name (typically 'sa'), password (sa password), and database name) from the 'bin' folder:
One of those two should have you fixed up unless there's something else very wrong (perhaps connection strings in .config files not updated with the new database name or location?)