C
C#13mo ago
Kurwaii

❔ 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
No description
14 Replies
Jimmacle
Jimmacle13mo ago
that error suggests the Newtonsoft.Json DLL was not deployed to wherever you're trying to run this
Angius
Angius13mo ago
(that's why you shouldn't use Newtonsoft... or .NET Framework for that matter)
Jimmacle
Jimmacle13mo ago
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
Kurwaii
KurwaiiOP13mo ago
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
Jimmacle
Jimmacle13mo ago
can you manually overwrite it with a known good version?
Kurwaii
KurwaiiOP13mo ago
No description
Kurwaii
KurwaiiOP13mo ago
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
Jimmacle
Jimmacle13mo ago
do you have a myexecutable.exe.config file in your build output? could be a binding redirect thing
Kurwaii
KurwaiiOP13mo ago
I do, but it only has this binding
No description
Kurwaii
KurwaiiOP13mo ago
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
No description
Kurwaii
KurwaiiOP13mo ago
not sure if this could be the problem
Kurwaii
KurwaiiOP13mo ago
No description
Kurwaii
KurwaiiOP13mo ago
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
No description
Accord
Accord13mo ago
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.
Want results from more Discord servers?
Add your server