Comments (8)
How your .csproj looks like? Try maybe my fork: https://github.com/kamyker/openwhisk-dotnet-csharp
from openwhisk-runtime-dotnet.
@dmlo Is Microsoft.Extensions.DependencyInjection.Abstractions
included in your published zip file? The dependencies need to be included there. Let me know, thanks!
from openwhisk-runtime-dotnet.
@shawnallen85 Microsoft.Extensions.DependencyInjection.Abstractions.dll v3.1.3 was in the zip file I was sending to OpenWhisk.
from openwhisk-runtime-dotnet.
@kamyker here is my csproj:
`
<PropertyGroup>
<TargetFrameworks>netstandard2.1;netcoreapp3.1</TargetFrameworks>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="EFCore.NamingConventions" Version="1.1.0" />
<PackageReference Include="Newtonsoft.Json" Version="12.0.3" />
<PackageReference Include="Npgsql.EntityFrameworkCore.PostgreSQL" Version="2.2.4" />
<PackageReference Include="Npgsql.EntityFrameworkCore.PostgreSQL.Design" Version="1.1.0" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\ih-interface\ih-interface.csproj" />
</ItemGroup>
<ItemGroup>
<None Include="config.json" CopyToPublishDirectory="Always" />
<None Update="female-names.json">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="last-names.json">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="male-names.json">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Update="places.json">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
</ItemGroup>
from openwhisk-runtime-dotnet.
No idea, "PackageReference Include="Microsoft.AspNetCore" in https://github.com/apache/openwhisk-runtime-dotnet/blob/master/core/dotnet3.1/proxy/Apache.OpenWhisk.Runtime.Common/Apache.OpenWhisk.Runtime.Common.csproj
could be the issue.
My version looks a bit different: https://github.com/kamyker/openwhisk-dotnet-csharp/blob/master/core/dotnet3.1/proxy/Apache.OpenWhisk.Runtime.Common/Apache.OpenWhisk.Runtime.Common.csproj
If you can reproduce error without using database (just call something from Microsoft.Extensions.DependencyInjection.Abstractions) I can try it on my fork.
from openwhisk-runtime-dotnet.
@dmlo Can you try with the latest version from the master branch? @woutersterp had submitted a change that might address this issue. Let me know, thanks!!
from openwhisk-runtime-dotnet.
I found out what we need to do to resolve this issue, but to implement it requires a breaking change in how functions are built and deployed. Will hold off on this until the next release where we plan on potentially changing the contract.
from openwhisk-runtime-dotnet.
For reference: https://github.com/shawnallen85/openwhisk-runtime-dotnet/tree/assembly-load-changes
from openwhisk-runtime-dotnet.
Related Issues (18)
- incorrect quick start guide HOT 1
- Is dotnet core based runtime , Beta or Production ready ? HOT 5
- The README needs to include the Apache 2 license badge at the top.
- readme update HOT 2
- Add async/await support HOT 8
- Raw requests to skip JObject conversion HOT 12
- "Cannot invoke an uninitialized action." error occurs intermittently HOT 5
- improve cold start times HOT 24
- 150kb+ json request crashes whole deployment HOT 2
- Unknown error HOT 2
- support init time parameters HOT 1
- Add example using asynchronous returns HOT 3
- Remove dependency on 3rd party JSON library from next version of runtime HOT 1
- Question: how to log to activations using dotnet and openwhisk? HOT 2
- kind 'dotnet:2.1' not in Set HOT 2
- What's the correct way to run tests against basic openwhisk and a new runtime? HOT 6
- Can't send messages to kafka HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from openwhisk-runtime-dotnet.