Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/314.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# 无法加载Azure函数中的程序集或dll系统缓冲区,版本=4.0.2.0_C#_Asp.net Web Api_Runtime_Azure Functions_Assembly Binding Redirect - Fatal编程技术网

C# 无法加载Azure函数中的程序集或dll系统缓冲区,版本=4.0.2.0

C# 无法加载Azure函数中的程序集或dll系统缓冲区,版本=4.0.2.0,c#,asp.net-web-api,runtime,azure-functions,assembly-binding-redirect,C#,Asp.net Web Api,Runtime,Azure Functions,Assembly Binding Redirect,我有一个Web API应用程序,添加了System.buffer reference 4.0.3.0. 当我们从同一解决方案的另一个项目调用此项目时,它工作正常 但当我在Azure函数中引用这个项目引用时,它抛出了以下错误 我试图通过更改版本来进行更改,但没有成功 在Azure函数中,我们只是引用项目 <TargetFramework>net462</TargetFramework> net462 Azure Functions 1.x运行时不支持绑定重定向() 最

我有一个Web API应用程序,添加了
System.buffer reference 4.0.3.0.

当我们从同一解决方案的另一个项目调用此项目时,它工作正常

但当我在Azure函数中引用这个项目引用时,它抛出了以下错误

我试图通过更改版本来进行更改,但没有成功

在Azure函数中,我们只是引用项目

<TargetFramework>net462</TargetFramework>
net462

Azure Functions 1.x运行时不支持绑定重定向()


最后,我自己编写了代码来应用绑定重定向,基于。

您的解决方案和功能是否都使用相同的运行时,即.net framework或.net core?