locked
Not a valid script name error RRS feed

  • Question

  • User1510859543 posted

    We are trying to move a website from a test server to a remote production server.  We created the website using VS 2015 Community and it works perfectly on the test server.  We are using the .net 4.5.2 framework.  We zipped all folders and files from the test website and unzipped them into a blank new IIS application on the remote server and modified the connection strings in the web.config to match the new server.  Now when we try to run the new remote application we get the following error.  Any help is appreciated.

    'respond' is not a valid script name.  The name must end in '.js'. 
    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. 
    
    Exception Details: System.InvalidOperationException: 'respond' is not a valid script name.  The name must end in '.js'.
    
    Source Error: 
    
    
     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.  
    
    Stack Trace: 
    
    
    
    [InvalidOperationException: 'respond' is not a valid script name.  The name must end in '.js'.]
       System.Web.UI.ScriptReference.ShouldUseDebugScript(String releaseName, Assembly assembly, Boolean isDebuggingEnabled, Assembly currentAjaxAssembly) +328
       System.Web.UI.ScriptReference.DetermineResourceNameAndAssembly(ScriptManager scriptManager, Boolean isDebuggingEnabled, String& resourceName, Assembly& assembly) +302
       System.Web.UI.ScriptReference.GetUrlFromName(ScriptManager scriptManager, IControl scriptManagerControl, Boolean zip, Boolean useCdnPath) +111
       System.Web.UI.ScriptReference.GetUrlInternal(ScriptManager scriptManager, Boolean zip, Boolean useCdnPath) +467
       System.Web.UI.ScriptManager.RegisterUniqueScripts(List`1 uniqueScripts) +358
       System.Web.UI.ScriptManager.RegisterScripts() +655
       System.Web.UI.ScriptManager.OnPagePreRenderComplete(Object sender, EventArgs e) +281
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +4628
    
      
    
    
    --------------------------------------------------------------------------------
    Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.34274 

    Wednesday, July 13, 2016 2:34 PM

Answers

  • User-2057865890 posted

    Hi dlchase,

    Check the reference in your project to make sure all references are not broken.

    Best Regards,

    Chris

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Saturday, July 23, 2016 5:39 AM

All replies