Compilation of assembly 'C:\ProgramData\Microsoft\Microsoft Dynamics NAV\60\Server\MicrosoftDynamicsNavServer\assembly\Codeunit5072.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\source\Codeunit\Codeunit5072.cs(2186,27) : error CS0117: 'object' does not contain a definition for 'IsClear' c:\ProgramData\Microsoft\Microsoft Dynamics NAV\60\Server\MicrosoftDynamicsNavServer\source\Codeunit\Codeunit5072.cs(2193,9) : error CS1502: The best overloaded method match for 'Microsoft.Dynamics.Nav.Runtime.NavAutomation.ALAssign(Microsoft.Dynamics.Nav.Runtime.NavAutomation)' has some invalid arguments c:\ProgramData\Microsoft\Microsoft Dynamics NAV\60\Server\MicrosoftDynamicsNavServer\source\Codeunit\Codeunit5072.cs(2193,28) : error CS1503: Argument '1': cannot convert from 'object' to 'Microsoft.Dynamics.Nav.Runtime.NavAutomation' c:\ProgramData\Microsoft\Microsoft Dynamics NAV\60\Server\MicrosoftDynamicsNavServer\source\Codeunit\Codeunit5072.cs(2255,11) : error CS1502: The best overloaded method match for 'Microsoft.Dynamics.Nav.Runtime.NavAutomation.ALAssign(Microsoft.Dynamics.Nav.Runtime.NavAutomation)' has some invalid arguments c:\ProgramData\Microsoft\Microsoft Dynamics NAV\60\Server\MicrosoftDynamicsNavServer\source\Codeunit\Codeunit5072.cs(2255,30) : error CS1503: Argument '1': cannot convert from 'object' to 'Microsoft.Dynamics.Nav.Runtime.NavAutomation' c:\ProgramData\Microsoft\Microsoft Dynamics NAV\60\Server\MicrosoftDynamicsNavServer\source\Codeunit\Codeunit5072.cs(2350,31) : error CS0117: 'object' does not contain a definition for 'IsClear' c:\ProgramData\Microsoft\Microsoft Dynamics NAV\60\Server\MicrosoftDynamicsNavServer\source\Codeunit\Codeunit5072.cs(2357,9) : error CS1502: The best overloaded method match for 'Microsoft.Dynamics.Nav.Runtime.NavAutomation.ALAssign(Microsoft.Dynamics.Nav.Runtime.NavAutomation)' has some invalid arguments c:\ProgramData\Microsoft\Microsoft Dynamics NAV\60\Server\MicrosoftDynamicsNavServer\source\Codeunit\Codeunit5072.cs(2357,32) : error CS1503: Argument '1': cannot convert from 'object' to 'Microsoft.Dynamics.Nav.Runtime.NavAutomation' c:\ProgramData\Microsoft\Microsoft Dynamics NAV\60\Server\MicrosoftDynamicsNavServer\source\Codeunit\Codeunit5072.cs(2388,31) : error CS0117: 'object' does not contain a definition for 'IsClear' c:\ProgramData\Microsoft\Microsoft Dynamics NAV\60\Server\MicrosoftDynamicsNavServer\source\Codeunit\Codeunit5072.cs(2395,9) : error CS1502: The best overloaded method match for 'Microsoft.Dynamics.Nav.Runtime.NavAutomation.ALAssign(Microsoft.Dynamics.Nav.Runtime.NavAutomation)' has some invalid arguments c:\ProgramData\Microsoft\Microsoft Dynamics NAV\60\Server\MicrosoftDynamicsNavServer\source\Codeunit\Codeunit5072.cs(2395,32) : error CS1503: Argument '1': cannot convert from 'object' to 'Microsoft.Dynamics.Nav.Runtime.NavAutomation' c:\ProgramData\Microsoft\Microsoft Dynamics NAV\60\Server\MicrosoftDynamicsNavServer\source\Codeunit\Codeunit5072.cs(2494,24) : error CS0117: 'object' does not contain a definition for 'IsClear' c:\ProgramData\Microsoft\Microsoft Dynamics NAV\60\Server\MicrosoftDynamicsNavServer\source\Codeunit\Codeunit5072.cs(2501,9) : error CS1502: The best overloaded method match for 'Microsoft.Dynamics.Nav.Runtime.NavAutomation.ALAssign(Microsoft.Dynamics.Nav.Runtime.NavAutomation)' has some invalid arguments c:\ProgramData\Microsoft\Microsoft Dynamics NAV\60\Server\MicrosoftDynamicsNavServer\source\Codeunit\Codeunit5072.cs(2501,25) : error CS1503: Argument '1': cannot convert from 'object' to 'Microsoft.Dynamics.Nav.Runtime.NavAutomation' c:\ProgramData\Microsoft\Microsoft Dynamics NAV\60\Server\MicrosoftDynamicsNavServer\source\Codeunit\Codeunit5072.cs(2532,24) : error CS0117: 'object' does not contain a definition for 'IsClear' c:\ProgramData\Microsoft\Microsoft Dynamics NAV\60\Server\MicrosoftDynamicsNavServer\source\Codeunit\Codeunit5072.cs(2539,9) : error CS1502: The best overloaded method match for 'Microsoft.Dynamics.Nav.Runtime.NavAutomation.ALAssign(Microsoft.Dynamics.Nav.Runtime.NavAutomation)' has some invalid arguments c:\ProgramData\Microsoft\Microsoft Dynamics NAV\60\Server\MicrosoftDynamicsNavServer\source\Codeunit\Codeunit5072.cs(2539,25) : error CS1503: Argument '1': cannot convert from 'object' to 'Microsoft.Dynamics.Nav.Runtime.NavAutomation'
Comments
we have 4.0 db with 2009 exe with webservices
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n
Yes I have enabled that. Was going to include it in my description but it would open the floodgates to all the other little bits and pieces I've done along the way - and the last thing I want is for you all to read a wall of text
Is your 4.0 db with 2009 exe including the Page objects from 2009SP1? Or did you do a Transformation to utilise the pages?
We can also run the pages and see them in RTC.
We had to create a blank Role Center page and copy the 10K rane menuesuites from 2009 into 4.0 db.
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n
Still a bit confused on why I'm getting the error in my original post, though. From what I've read the WebServices should be working the way they are.
It looks like CU 5072 is outlook Application Management that synchronizes contacts.
You'll need to change your code to not call it when called through webservice.
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n
I temporarily commented out the code relating to the CU from the Contact table and the Web Service request is working as intended now!
Regarding "changing the code" to work differently when called from a Web Service:
I have been looking for a function that will identify the caller object, so I can test - but have been unfruitful so far.
Do you recommend a method to get this done?
Thanks and best regards!
IF ISSERVICETIER THEN BEGIN
END;
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n