1 Answer
- Newest
- Most votes
- Most comments
0
Ok good news, figured it out. For additional context, I ran thru this tutorial but with a webapi instead and I got into my troubles.
I saw the logs complain about some .net core dll not existing.
2019-07-22T00:48:20.000Z Error 0:(0) IIS AspNetCore Module V2 - Could not find inprocess request handler. Captured output from invoking hostfxr: Error:
An assembly specified in the application dependencies manifest (webapi.deps.json) was not found:
package: 'System.Diagnostics.PerformanceCounter', version: '4.5.0'
path: 'runtimes/win/lib/netcoreapp2.0/System.Diagnostics.PerformanceCounter.dll'
I figure it had to be something about the SDK on the EC2 not being installed or installed differently on my local machine. Therefore I found a way of embedding all of .net core into my deployment package.
dotnet publish -o site -c Release -r win-x64 --self-contained
Then it worked! Of course...after I configured the security groups as described here: https://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/accessing-elasticache.html#grant-access
answered 6 years ago
Relevant content
- AWS OFFICIALUpdated 4 years ago
- AWS OFFICIALUpdated 3 years ago
