gpt4 book ai didi

c# - Azure 函数无法加载 'System.UriTemplate'

转载 作者:太空宇宙 更新时间:2023-11-03 16:58:54 33 4
gpt4 key购买 nike

我正在使用 .Net Standart for Azure Function,它使用服务总线处理消息。一旦我的函数运行,我遇到了以下异常:

Microsoft.ServiceBus: The type initializer for 'Microsoft.ServiceBus.Messaging.Constants' threw an exception. Microsoft.ServiceBus: Could not load type 'System.UriTemplate' from assembly 'System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'

我安装了以下软件包:
1. Microsoft.Azure.WebJobs
2.Microsoft.Azure.WebJobs.ServiceBus
3.System.ServiceModel.Primitives

知道为什么会发生吗?

最佳答案

请尝试问题 https://github.com/dotnet/wcf/issues/2824 中提到的解决方法

关于c# - Azure 函数无法加载 'System.UriTemplate',我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52647205/

33 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com