Metadata for object of type CodeUnit with id 8700 is in a failed state. This is caused by a previous exception:
Compilation of assembly 'C:\ProgramData\Microsoft\Microsoft Dynamics NAV\60\Server\MicrosoftDynamicsNavServer$test\assembly\Codeunit8700.dll' failed. This can be caused by differences between binaries in your installation or your database. Ensure that all installation components are consistent and up to date. Error details: c:\ProgramData\Microsoft\Microsoft Dynamics NAV\60\Server\MicrosoftDynamicsNavServer$test\source\Codeunit\Codeunit8700.cs(350,36) : error CS1502: The best overloaded method match for 'Microsoft.Dynamics.Nav.Runtime.NavAutomation.NavAutomation(Microsoft.Dynamics.Nav.Runtime.ITreeObject, Microsoft.Dynamics.Nav.Runtime.NavAutomation.ComponentType, string)' has some invalid arguments
c:\ProgramData\Microsoft\Microsoft Dynamics NAV\60\Server\MicrosoftDynamicsNavServer$test\source\Codeunit\Codeunit8700.cs(350,63) : error CS1503: Argument '2': cannot convert from 'object' to 'Microsoft.Dynamics.Nav.Runtime.NavAutomation.ComponentType'
c:\ProgramData\Microsoft\Microsoft Dynamics NAV\60\Server\MicrosoftDynamicsNavServer$test\source\Codeunit\Codeunit8700.cs(350,78) : error CS1503: Argument '3': cannot convert from 'bool' to 'string'
c:\ProgramData\Microsoft\Microsoft Dynamics NAV\60\Server\MicrosoftDynamicsNavServer$test\source\Codeunit\Codeunit8700.cs(377,40) : error CS1502: The best overloaded method match for 'Microsoft.Dynamics.Nav.Runtime.NavAutomation.NavAutomation(Microsoft.Dynamics.Nav.Runtime.ITreeObject, Microsoft.Dynamics.Nav.Runtime.NavAutomation.ComponentType, string)' has some invalid arguments
c:\ProgramData\Microsoft\Microsoft Dynamics NAV\60\Server\MicrosoftDynamicsNavServer$test\source\Codeunit\Codeunit8700.cs(377,67) : error CS1503: Argument '2': cannot convert from 'object' to 'Microsoft.Dynamics.Nav.Runtime.NavAutomation.ComponentType'
c:\ProgramData\Microsoft\Microsoft Dynamics NAV\60\Server\MicrosoftDynamicsNavServer$test\source\Codeunit\Codeunit8700.cs(377,86) : error CS1503: Argument '3': cannot convert from 'bool' to 'string'
Comments
You did not say what version of NAV you use but if I look at the error message it says "..Microsoft Dynamics NAV\60\" so I will assume this is NAV 2009 R2.
I got similar error message when I imported a text objects from higher version e.g. NAV 2013 or NAV 2009 R2 with higher build number, into NAV 2009 R2. (with a low build number)
There are some tags in e.g. NAV 2013 which are causing these issues in NAV 2009 R2.
Another option would be to
1. delete the record for the codeunit 8700 form the table "Object Metadata".
2. compile all objects.
3. import codeunit 8700 as a FOB.
I hope this helps.
Thanks.