Compiler errors need help with. Please

Hi Everybody,

I recently started a Unity3D project just to experiment with the game engine. When I tried to compile my project into a executable for the PC it came up with three compiler errors. I don’t have a clue what these errors are referring to and how to fix them. I welcome anybodies help to fix this problem for me. Thank you.

Here’s my compiler errors:

ApplicationException: Unable to find a suitable compiler
UnityEditor.Scripting.ScriptCompilers.CreateCompilerInstance (MonoIsland island) (at:C:/BuildAgent/work/14194e8ce88cdf47/Editor/Mono/Scripting/ScriptCompilers.cs:87)

Failed to create compiler instance

KeyNotFoundException: The given key was not present in the dictionary.
System.Collections.Generic.Dictionary’2[System.String,UnityEditor.VisualStudioIntegration.ScriptingLanguage].get_Item (System.String key)

Here’s my script for my project that I’m trying to get to work just in case it is something to do with this:

var inputString2 : String;
private var saveString2 : String;

function OnGUI()
{
     inputString2 = GUI.TextArea(Rect(600, 250, Screen.width-1200, Screen.height-570), inputString2);
     if(GUI.Button(Rect(430, 285, Screen.width-1200, Screen.height-570), "Submit Name"))
     {
          saveString2 = inputString2;
     }
     if(GUI.Button(Rect(600, 285, Screen.width-1200, Screen.height-570), "Display Name"))
     {
          inputString2 = saveString2;
     }
     if(GUI.Button(Rect(770, 285, Screen.width-1200, Screen.height-570), "Play Game"))
     {
          Debug.Log(saveString2);
     }
     if(GUI.Button(Rect(600, 320, Screen.width-1200, Screen.height-570), "Exit Game"))
     {
          Application.LoadLevel(0);
     }
}

im wondering about this error

ApplicationException: Unable to find a suitable compiler UnityEditor.Scripting.ScriptCompilers.CreateCompilerInstance (MonoIsland island) (at:C:/BuildAgent/work/14194e8ce88cdf47/Editor/Mono/Scripting/ScriptCompilers.cs:87)

specifically the scriptcompilers.cs
Not trying to be silly but you are in fact saving it as a Javascript right?

if your script is called scriptname.cs
its trying to compile it in C#

javascripts should be denoted by the .js file type.