首页 > 解决方案 > Azure IoT 中心版本 1.37 CreateFromConnectionString NotImplementedException

问题描述

我创建了一个引用自https://github.com/Azure-Samples/Azure-IoT-Samples-Xamarin的示例应用程序,该应用程序与我的 Azure IoTHub 连接。提供了 ConnectionString 和 deviceId。该代码适用于 Microsoft.Azure.Devices.Client 方法的 1.25 版CreateFromConnectionString(String, TransportType).

但是,此方法在最新版本 Microsoft.Azure.Devices.Client 1.37 上不起作用

System.NotImplementedException:方法或操作未实现。在 System.Globalization.CompareInfo.IndexOfCore(System.String 源,System.String 目标,System.Int32 startIndex,System.Int32 计数,System.Globalization.CompareOptions 选项,System.Int32* matchLengthPtr)[0x00006] 在 /Library/Frameworks /Xamarin.iOS.framework/Versions/Current/src/Xamarin.iOS/mcs/class/corlib/corefx/CompareInfo.cs:89 在 System.Globalization.CompareInfo.IndexOf (System.String 源,System.String 值,系统.Int32 startIndex,System.Int32 计数,System.Globalization.CompareOptions 选项,System.Int32* matchLengthPtr) [0x00071] 在 /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/src/Xamarin.iOS/external/corefx /src/Common/src/CoreLib/System/Globalization/CompareInfo.cs:957 在 System.String.ReplaceCore (System.String oldValue, System.

还在 git repo 上发布了问题https://github.com/Azure-Samples/Azure-IoT-Samples-Xamarin/issues/3

标签: c#.netazurexamarinxamarin.forms

解决方案


推荐阅读