-
Notifications
You must be signed in to change notification settings - Fork 529
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Could not load file or assembly 'Newtonsoft.Json, Version=12.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed' #1983
Comments
I'd really like to try to reproduce this in a completely minimal fashion. Two questions:
If you could post the answers to these questions along with a project file, that would really help. Note that you could also add an explicit dependency on Google.Apis.Auth version 1.55.0. |
|
Excellent - that should make it simpler to test, for one thing. If we can get this down to a minimal example (which could be expressed in terms of "start with dotnet new web, then modify the project file like this, then add this code") then we'll be able to make progress. |
doesn't help too |
https://stackoverflow.com/questions/45242353/dotnet-publish-outputs-old-packages |
Okay, that sounds very odd, but also not something specific to this library, and not something we'd be able to address here. Best of luck with implementing the workaround. Closing. |
Environment details
Steps to reproduce
dotnet publish -c Release -r ubuntu.18.04-x64 --self-contained false --output "D:\dev\Backend\src\WebApp\bin\Linux"
\var\www\backend
sudo systemctl enable kestrel-credion-backend.service
sudo systemctl start kestrel-credion-backend.service
systemctl daemon-reload
sudo systemctl status kestrel-credion-backend.service
and the full exception with stacktrace in logs\var\log\syslog
Details
I have an ASP Core project (.Net 5.0) with
Newtonsoft.Json v13.0.1
andFirebaseAdmin v2.2.0
which usesGoogle.Apis.Auth v1.4.9
which depends onNewtonsoft v12.0.0
.I create build for deploy by comand
dotnet publish -c Release -r ubuntu.18.04-x64 --self-contained false --output "D:\dev\Backend\src\WebApp\bin\Linux"
and copyLinux
folder's content into/var/www/backend
.There is service for it at
/etc/systemd/system
:and after it restart service by:
sudo systemctl enable kestrel-credion-backend.service
sudo systemctl start kestrel-credion-backend.service
systemctl daemon-reload
If check status
sudo systemctl status kestrel-credion-backend.service
you will see an errorProcess: 21075 ExecStart=/usr/bin/dotnet /var/www/backend/WebApp.dll (code=killed, signal=ABRT)
.For details go to log file
syslog
at/var/log
and you can see:As we see error fires at
FirebaseMessageProvider.cs:line 26
which is folowing:Downgrade
Newtonsoft.Json
or appenddidn't help.
Important remark: on Win10 and Windows Server all works fine.
The text was updated successfully, but these errors were encountered: