Missing Json reference after upgrade to 2.9

Topics: ASP.NET 2.0
Jan 2, 2014 at 1:52 PM
After deploying 2.9 on top of my existing 2.8 site, I am now getting this error: CS0234: The type or namespace name 'Json' does not exist in the namespace 'BlogEngine.Core' (are you missing an assembly reference?)

I downloaded the source code, and it works fine on my development machine. What am I missing on my server?
Jan 2, 2014 at 2:27 PM
Some classes from BlogEngine.Core.Json moved to BlogEngine.Core.Data.Models. The "Json" namespace not used anymore. So if somewhere in the code you have:

using BlogEngine.Core.Json;

Now it should be:

using BlogEngine.Core.Data.Models;

The "Json" used to be sort of kitchen sink for all things related to client-side transformation, now it refactored into common repository pattern.
Jan 2, 2014 at 4:52 PM
Thanks - I figured it out. The problem is that I copied the 2.9 folder into my existing site's folder. Which means there were "extra" files in that directory that were no longer being used (but still tried to get at "old" references). Deploying the 2.9 repo to its own folder on the web server fixed the problem.
Marked as answer by dvanorny on 1/2/2014 at 9:52 AM