Symptoms
The following error was captured by ULS logging when trying to run the K2 for SharePoint configuration wizard:
01/27/2016 11:43:56.60 w3wp.exe (0x3CC8) 0x1C40 SharePoint Foundation General 8nca Verbose
Application error when access /_admin/K2/K2SPCoreConfiguration.aspx, Error=Invalid URI: The URI scheme is not valid. at System.Uri.CreateThis(String uri, Boolean dontEscape, UriKind uriKind) at SourceCode.SharePoint.ApplicationPages.WebControls.EnvironmentLibrarySection.PopulateEnvSPSiteUrlFields() at SourceCode.SharePoint.ApplicationPages.WebControls.K2InputFormSectionControl.OnLoad(EventArgs e) at S
ystem.Web.UI.Control.LoadRecursive() at
System.Web.UI.Control.LoadRecursive() at
System.Web.UI.Control.LoadRecursive() at
System.Web.UI.Control.LoadRecursive() at
System.Web.UI.Control.LoadRecursive() at
System.Web.UI.Control.LoadRecursive() at S
ystem.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint... e9897f6b-8426-4d91-a537-e95e7e1c217a
Diagnoses
The issue was in the fact that the SharePoint urls in the environment library had quotations around them which makes it impossible for K2 to use them.
Resolution
Remove the quotation marks.