Azure-functions-host: "The System.IO.File API is not available on this platform." Issue after upgrade to v2.0.12998

Created on 20 Feb 2020  路  4Comments  路  Source: Azure/azure-functions-host

Hi, I hope this is a right place. After update of Azure Function runtime to v2.0.12998 I'm getting "The System.IO.File API is not available on this platform." from NJsonSchema.

Link to NJsonSchema class that trows the exception: https://github.com/RicoSuter/NJsonSchema/blob/master/src/NJsonSchema/Infrastructure/DynamicApis.cs

Can u give me some ideas about what happened in the new version, that breaks NJsonSchema?

_Originally posted by @Planche95 in https://github.com/Azure/app-service-announcements-discussions/issues/139#issuecomment-588969461_

Most helpful comment

We identified an issue that was introduced with the last release. We're working on a hotfix and, in the meantime, you can explicitly pin the runtime to the previous version by setting the FUNCTIONS_EXTENSION_VERSION app setting to 2.0.12961

All 4 comments

@Planche95 could you please provide more information about the Functions SDK version you're using? Do you happen to h ave a repro you can share?

/cc @brettsam

We identified an issue that was introduced with the last release. We're working on a hotfix and, in the meantime, you can explicitly pin the runtime to the previous version by setting the FUNCTIONS_EXTENSION_VERSION app setting to 2.0.12961

This has been resolved an globally patched. The workaround above is no longer required and you can set the app setting value to the default (~2).

Thank you for reporting this!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

alaatm picture alaatm  路  4Comments

ladeak picture ladeak  路  3Comments

ahmelsayed picture ahmelsayed  路  4Comments

ElvenSpellmaker picture ElvenSpellmaker  路  3Comments

mathewc picture mathewc  路  4Comments