We have a dotnet core web service that can run on a windows machine without any issues. We are trying to write a habitat plan to run in Linux but are running into the following error when it is running. We have the System.Data.SqlClient included in the NuGet references, so we are not sure why it cannot find it. We are also not sure where the *.deps.json comes from in this process.
This is the error that continually prints out while the service is started:
TravelerProfiles.default(SV): Starting service as user=hab, group=hab
TravelerProfiles.default(E): /hab/svc/TravelerProfiles/run: line 1: #!/bin/sh: not found
TravelerProfiles.default(O): Error:
TravelerProfiles.default(O): An assembly specified in the application dependencies manifest (TravelerProfiles.deps.json) was not found:
TravelerProfiles.default(O): package: ‘System.Data.SqlClient’, version: ‘4.4.3’
TravelerProfiles.default(O): path: ‘runtimes/unix/lib/netstandard2.0/System.Data.SqlClient.dll’
hab-launch(SV): Child for service ‘TravelerProfiles.default’ with PID 78 exited with code exit code: 140