❔ Issue deploying to server
I am running a release on azure Devops, when deploying one of the solutions of my project I get an error, the project works on my local machine, I have tried many solutions and nothing seems to work, anyone have any idea what the issue could be?
The solution is using .net framework 4.8 and I am trying to use newtonsoft.json 12.0.3
14 Replies
that error suggests the Newtonsoft.Json DLL was not deployed to wherever you're trying to run this
(that's why you shouldn't use Newtonsoft... or .NET Framework for that matter)
yeah both of those are obsolete
unless this is a legacy project it should be on .NET 5+ (7 is the latest) and use System.Text.Json
it is a legacy project yes
but I can see that the .dll was deployed to the server and when I check the details it says the version is 12.0.3 as expected
can you manually overwrite it with a known good version?
here I can see it was deployed 30 mins ago (when I ran the release) and when I check details the version is 12.0.3
I guess it must be referenced somewhere else pointing to version 10.0.0 but I don't know how I can find out where, since it only happens on the server
do you have a
myexecutable.exe.config
file in your build output? could be a binding redirect thingI do, but it only has this binding
when I search the whole project for 10.0.3 which is the version I think it's trying to get, I can only see it in project.assets.json such as
not sure if this could be the problem
I just saw that on the TaskScheduler project, the one giving the error, the version field is empty for some reason on the error package
Was this issue resolved? If so, run
/close
- otherwise I will mark this as stale and this post will be archived until there is new activity.