我一直在我的azure函数应用程序中使用azure函数V2(.net core 2.1)。
我一直在我的函数App中使用System.ServiceModel.Primitives
nuget,该函数在其中使用了ServiceBusEnvironment
包。
我能够编译代码并运行功能。 调用该函数时,出现此运行时错误。
Could not load type 'System.ServiceModel.Channels.IBindingRuntimePreferences'
from assembly 'System.ServiceModel,Version=4.0.0.0'
我用Google搜索了很多东西。但没有运气。
然后我尝试通过将我的azure函数从V2降低到V1(.net Framework 4.7),它又开始工作了。
在V2的情况下,我需要知道我在做什么错。在V2的情况下,我如何无法得到该错误?有相同的分辨率吗?