mattwelke commented on issue #34:
URL:
https://github.com/apache/openwhisk-runtime-dotnet/issues/34#issuecomment-819953853
> But if you were to upgrade it on the function side and the runtime was a
lower version, you might run into a problem (I haven't tested this out).
Tested this tonight and confirmed it doesn't work. Made the following action:
```xml
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Newtonsoft.Json" Version="13.0.1" />
</ItemGroup>
</Project>
```
And deployed it to IBM Cloud's `dotnet:2.2` runtime. This shows up in the
logs:
```json
{
"error": "Could not load file or assembly 'Newtonsoft.Json,
Version=13.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed'. Could not
find or load a specific file. (Exception from HRESULT: 0x80131621)"
}
```
```json
[
"2021-04-15T01:27:12.441085Z stderr: at
System.Signature.GetSignature(Void* pCorSig, Int32 cCorSig,
RuntimeFieldHandleInternal fieldHandle, IRuntimeMethodInfo methodHandle,
RuntimeType declaringType)",
"2021-04-15T01:27:12.441121Z stderr: at
System.Reflection.RuntimeMethodInfo.get_ReturnType()",
"2021-04-15T01:27:12.441189Z stderr: at
Apache.OpenWhisk.Runtime.Common.Init.HandleRequest(HttpContext httpContext) in
/app/Apache.OpenWhisk.Runtime.Common/Init.cs:line 156",
"2021-04-15T01:27:12.556Z stderr: The action did not initialize or
run as expected. Log data might be missing."
]
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]