# Compilation of Assembly failed due to difference in binary, blabla

**URL:** <https://www.dynamicsuser.net/t/compilation-of-assembly-failed-due-to-difference-in-binary-blabla/53622>\
**Category:** Developers Forum\
**Created:** [July 1, 2014, 11:43am UTC](https://www.dynamicsuser.net/t/compilation-of-assembly-failed-due-to-difference-in-binary-blabla/53622 "2014-07-01T11:43:55Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![thomasbrodkorb](https://avatars.discourse-cdn.com/v4/letter/t/2acd7d/32.png) [@thomasbrodkorb](https://www.dynamicsuser.net/u/thomasbrodkorb)\
**Post date:** [July 1, 2014, 11:43am UTC](https://www.dynamicsuser.net/t/compilation-of-assembly-failed-due-to-difference-in-binary-blabla/53622/1 "2014-07-01T11:43:55Z")

</div>

To all who it might concern.

I just (again) came across a problem in Microsoft Dynamics NAV 2013 R2:

error CS1502: The best overloaded method match for ‘Microsoft.Dynamics.Nav.Runtime.ALStream.ALWrite(Microsoft.Dynamics.Nav.Runtime.INavStreamWriter, Microsoft.Dynamics.Nav.Types.DataError, bool, int)’ has some invalid arguments

Microsoft introduced new variable types (OemText and OemCode) but they did not create new overload functions for stream write/read.

So it is not possible anymore to write/read field content for text or code fields directly into/out of a stream.  
The content of the field must be assigned to a text/code variable first before writing it into a stream.

So if anyone of you gets across this issue. This is the solution.

---

<div class="post-metadata">

**Author:** ![amol\_salvi](https://avatars.discourse-cdn.com/v4/letter/a/ac91a4/32.png) [@amol\_salvi](https://www.dynamicsuser.net/u/amol_salvi)\
**Post date:** [July 2, 2014, 5:00am UTC](https://www.dynamicsuser.net/t/compilation-of-assembly-failed-due-to-difference-in-binary-blabla/53622/2 "2014-07-02T05:00:21Z")

</div>

Thank you so much Thomas

Last week I face this error.
