After installing json.net 10 in Visual Studio, I get the following error:
Could not load file or assembly 'UrlRewritingNet.UrlRewriter' or one of its dependencies. The system cannot find the file specified.
So I try to back out. Tools > NuGet Package manager > Packages for solution...> Installed , I find JSON.net 10.0.3 on the left, but 6.0.4 to the right:
I find that slightly mystifying, as the only Uninstall-button I see, applies to 6.0.4. If I try that, I am not allowed to, because Umbraco needs it. Fair enough, but how do I get rid of version 10.0.3?
You could delete packages and rebuild and see if you have a reference conflict, other than that you could also find the dependant assembly which proably would read like this
I tried to restore from the NuGetBackup folder. Things look even worse. (Attempt by security transparent method 'Microsoft.Web.Helpers.PreApplicationStartCode.Start()' to access security critical method )
I guess I'll try to reinstall Umbraco, pull my code from Bitbucket and my data from the production server. If nothing else, that should be a useful emergency exercise.
I broke Umbraco 7.1.8 by installing json.net 10
After installing json.net 10 in Visual Studio, I get the following error:
So I try to back out. Tools > NuGet Package manager > Packages for solution...> Installed , I find JSON.net 10.0.3 on the left, but 6.0.4 to the right:
I find that slightly mystifying, as the only Uninstall-button I see, applies to 6.0.4. If I try that, I am not allowed to, because Umbraco needs it. Fair enough, but how do I get rid of version 10.0.3?
Hi Jan
Did you try to restore nuget packages for the solution?
Thanks,
Alex
Uh...no.
I guess that is my question: How do I do that?
You could delete packages and rebuild and see if you have a reference conflict, other than that you could also find the dependant assembly which proably would read like this
Add the 10 on it
Then it will take both
I tried to restore from the NuGetBackup folder. Things look even worse. (Attempt by security transparent method 'Microsoft.Web.Helpers.PreApplicationStartCode.Start()' to access security critical method )
I guess I'll try to reinstall Umbraco, pull my code from Bitbucket and my data from the production server. If nothing else, that should be a useful emergency exercise.
Try this...
Delete the newtonsoft json assembly from your bin directory.
Change the dependent assembly config to this
Make sure you have the 10.0 version of the package installed
If you have more than one project in your solution, make sure you upgrade them all to the same version.
Rebuild.
I ended up re-building my test site from a git repository. That was a valuable experience.
I installed JSON.net 10 because I didn't realize that version 6 was already included in Umbraco.
It was scary to see how easily I broke the site, but it feels really good to see that I got it back from git.
is working on a reply...