C# - Scripting host is not initialized error??

Hi all.

I’ve recently got my hands on Visual Studio 15 as I’m looking into developing Universal applications for the Windows platform. I’ve been messing around with JSON.Net and I’m getting a very strange error/crash whenever I use it.

The program loads and deserializes the data I need but I get an error message with the follow text: “Scripting host is not initialized”. I can’t find out anything online about it :frowning: I’ve removed .NET completely, reinstalled Visual, restarted loads, tried another project and I still get the same problem. Anyone have any clue what it could mean? Even the title message is very vague, it just says “Visual Studio” :confused:

Hah, what a joke.

On topic though I’d guess that somewhere in the JSON parsing it wants to use a scripting language (JavaScript, perhaps?), and that .NET doesn’t have an initialized host for that language.

Hmm. Well I’ve installed Visual Studio 2015 on my other machine that is running the same OS (Windows 10 64bit) and I have no issues. I’m starting to wonder if it’s an issue with me storing the data on 1 of my hard drives and not on the SSD where the OS resides.

Okay fixed! Leaving the solution that finally worked.

I completely wiped Visual Studio 2015 from the PC and installed it onto the SSD where my OS is. During the end of the installation process, Avast anti-virus moved a file into the chest. I removed this file from the chest and everything is working perfectly. If anyone instalsl the software, maybe make sure that your anti-virus doesn’t do the same as what mine did.

Hopefully this helps someone if they face a similar issue!