You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Simply ignoring/swallowing the ConfigurationException seem to work, as documents are in fact being Upserted or Created in Cosmos DB just fine, despite the exception thrown.
Of course doing so feels rather hacky and is uncomfortable making one wonder about hidden side-effects.
Expected behavior
No such exception is thrown on iOS in the same project, although it does not seem to be supported.
Environment summary
SDK Version: 3.6.0 and 3.7.0-preview.
Android Version: 9.0 (Api level 28-Pie)
Visual Studio 2019: 16.4.5
.NET Core: 3.1.102.
The text was updated successfully, but these errors were encountered:
I have a netstandard library that heavily uses ConfigurationManager and throws this exception.
Since I am not developer of this library is it possible to do anything else. The exception throws immediately when using this lib.
Describe the bug
UpsertItemStreamAsync
andCreateItemStreamAsync
will throwSystem.Configuration.ConfigurationException
with Xamarin on Android (emulator and device).ReadItemStreamAsync
works fine is same project.To Reproduce
Try to use
UpsertItemStreamAsync
orCreateItemStreamAsync
on an Android device or an Android emulator.The innermost exception says:
The source of the exception is:
System.Configuration.ConfigurationManager
From the API documentation It seems that
System.Configuration.ConfigurationManager
is supported on Xamarin.Mac but not on the other Xamarin platforms.Others are having issues with
System.Configuration.ConfigurationManager
on Android too:PlatformNotSupportedException
on Xamarin Android.Work-around
Simply ignoring/swallowing the
ConfigurationException
seem to work, as documents are in fact being Upserted or Created in Cosmos DB just fine, despite the exception thrown.Of course doing so feels rather hacky and is uncomfortable making one wonder about hidden side-effects.
Expected behavior
No such exception is thrown on iOS in the same project, although it does not seem to be supported.
Environment summary
SDK Version: 3.6.0 and 3.7.0-preview.
Android Version: 9.0 (Api level 28-Pie)
Visual Studio 2019: 16.4.5
.NET Core: 3.1.102.
The text was updated successfully, but these errors were encountered: