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
System.Text.Json, Version=7.0.0.0 reference problem #1013
Comments
Hey @bobhuang1! Sorry it took so long to get to you, I missed the email from Github. Did you manage to get this working? Assembly version mismatches are always frustrating to deal with, and I'm not great at resolving them personally. I think first I'd try to upgrade to the latest version of ShopifySharp and see if that solves the problem. We're on version 6.13.0 right now, so maybe updating to that will clear up any issues. Otherwise you might try your luck with installing the exact version that ShopifySharp uses, which is |
@nozzlegear Thank you so much for getting back to me so quickly. Unfortunately I have tried both the latest build 6.13.0 and installing System.Text.Json 7.0.3 (and 7.0.0 which the error was asking for forcibly), neither has worked, I will wait and see if someone else sees the same issue or a future version might get this resolved. Thanks again! |
@nozzlegear I'm seeing the same problem. I've got System.Text.Json 7.0.3 and it worked ok on my Dev system. Failed on the customer's own system. What other libraries might have the wrong version? |
I think a lot of the Microsoft.Extensions packages use System.Text.Json as well. Which framework are you two using when you see this exception? .NET 4.5, 6, 7, 8, etc? |
I've managed to resolve this - it's now working OK. The steps were:
|
Awesome, glad you got it working! Binding redirects are really frustrating to deal with, hope it didn't cost you too much sanity. 😛 @bobhuang1 If you're using .NET Framework, can you give @AllisterChambersP's solution a try and see if it works for you too? |
@AllisterChambersP @nozzlegear Thank you so much for the pointers, since I have the code as an Azure function (.NET 6.0), binding redirect using config file is not possible, I had tried this suggested solution: |
Has anyone found a solution to this? I have a problem on .net6.0 with Azure Function v4. Installed |
I got this working with Azure Functions. By adding these:
to my csproj file after adding System.Text.Json 7.0.3 or above to the project. Reference here: For those who got the same error with regular .NET projects, try the solution by @AllisterChambersP above. It should work. Thanks! |
@bobhuang1 awesome, that worked. Thank you |
I have an Azure server timed function that uses ShopifySharp, and it's been working fine with 6.4.0, and after upgrading to 6.6.0, I started getting these errors on the function during a read function of Stripe webhook posted message (I am using both Stripe and Shopify in the same app!):
Could not load file or assembly 'System.Text.Json, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'. The system cannot find the file specified.
It seems 6.4.0 was using System.Text.Json 4.7.2 as a transitive package and 6.6.0 is using System.Text.Json 7.0.3.
Here's a list of all JSON related packages and versions for my working configuration with ShopifySharp 6.4.0.
Newtonsoft.Json 13.0.3
Newtonsoft.Json.Schema 3.0.15
Stubble.Extensions.JsonNet 1.2.3
Microsoft.AspNetCore.JsonPatch 2.1.0
Microsoft.AspNetCore.Mvc.Formatters.Json 2.1.0
Microsoft.Extensions.Configuration.Json 2.1.0
NewtonsoftJson.Bson 1.1.0
System.Text.Json 4.7.2
Thanks!
The text was updated successfully, but these errors were encountered: