title: Respond is not a valid script name, the name must end in .js
body: <blockquote>
    <p>Server Error in '/' Application.</p>
    
    <p>'respond' is not a valid script name.  The name must end in '.js'.</p>
    
    <p>Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. </p>
    
    <p>Exception Details: System.InvalidOperationException: 'respond' is not a valid script name.  The name must end in '.js'.</p>
    
    <p>Source Error: </p>
    
    <p>An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.</p>
    
    <p>Stack Trace: </p>
    
    <p>[InvalidOperationException: 'respond' is not a valid script name.  The name must end in '.js'.]
           System.Web.UI.ScriptReference.GetDebugName(String releaseName) +140
           System.Web.UI.ScriptReference.ShouldUseDebugScript(String releaseName, Assembly assembly, Boolean isDebuggingEnabled, Assembly currentAjaxAssembly) +48
           System.Web.UI.ScriptReference.DetermineResourceNameAndAssembly(ScriptManager scriptManager, Boolean isDebuggingEnabled, String&amp; resourceName, Assembly&amp; assembly) +106
           System.Web.UI.ScriptReference.GetUrlFromName(ScriptManager scriptManager, IControl scriptManagerControl, Boolean zip, Boolean useCdnPath) +77
           System.Web.UI.ScriptReference.GetUrlInternal(ScriptManager scriptManager, Boolean zip, Boolean useCdnPath) +370
           System.Web.UI.ScriptReference.GetUrlInternal(ScriptManager scriptManager, Boolean zip) +61
           System.Web.UI.ScriptReference.GetUrl(ScriptManager scriptManager, Boolean zip) +123
           System.Web.UI.ScriptManager.RegisterUniqueScripts(List`1 uniqueScripts) +167
           System.Web.UI.ScriptManager.RegisterScripts() +405
           System.Web.UI.ScriptManager.OnPagePreRenderComplete(Object sender, EventArgs e) +145
           System.Web.UI.Page.OnPreRenderComplete(EventArgs e) +9753946
           System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5054</p>
  </blockquote>
  
  <p>I don't know where to even begin looking for the cause of this error
  Happens when i debug my ASP.NET web app in VS2015.</p>
  
  <p>It seems to have happened if I deleted <code>Global.asax</code> class because before that it would work locally but not when deployed to web when it threw type ambiguous errors.
  I have now since re-added the <code>Global.asax</code> class, but to no avail.</p>