locked
Script not loading RRS feed

  • Question

  • User1259588416 posted

    Hi guys ,

    In a ASP.net application i changed the script name  in a page in live hosted server after that  that page was loading it was  simply running.
    So after that it i did undo but then also that page didnt load it was simply running .On debugging in firebug it was  telling so many scripts not found.
    but all the script are there.Also the script whoes name I changed was also showing in error list. That script was main  jquery script. 

    that script name was some thing --jquery8.1.custoum.min 

    Also in that page i have written  window.reload in a if condition.

    So what might be issue . What i can do .Please suggest.

    Sunday, June 5, 2016 2:34 PM

Answers

  • User-286291038 posted

    Hi Kaushiklotus,

    Check the location in code where you are referring to these files. If it is referred in a static manner in your HTML layout file, make sure the spelling there matches the script name.

    Do the same if you are bundling the scripts in your bundle.config.cs file making sure the names match exactly.

    Try resetting your IIS after you have verified the file names if it is allowed to reset the IIS and test your application once.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Sunday, June 5, 2016 3:03 PM
  • User61956409 posted

    Hi kaushiklotus,

    Firstly, please make sure if you specify the URL of the external script file via the src attribute of a <script> tag.

    http://www.w3schools.com/tags/att_script_src.asp

    Secondly, please share us the relevant code you are using to add references to external script files. And you could try to add JS reference in absolute URL, like src="http://xxx/example.js".

    Best Regards,

    Fei Han

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Monday, June 6, 2016 5:23 AM

All replies

  • User-286291038 posted

    Hi Kaushiklotus,

    Check the location in code where you are referring to these files. If it is referred in a static manner in your HTML layout file, make sure the spelling there matches the script name.

    Do the same if you are bundling the scripts in your bundle.config.cs file making sure the names match exactly.

    Try resetting your IIS after you have verified the file names if it is allowed to reset the IIS and test your application once.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Sunday, June 5, 2016 3:03 PM
  • User1259588416 posted

    Should I try restarting the application in IIS.

    Sunday, June 5, 2016 3:42 PM
  • User-286291038 posted

    yes, as long as it doesnt go against your website/org guidelines. Make sure your users are not impacted.

    Sunday, June 5, 2016 3:48 PM
  • User61956409 posted

    Hi kaushiklotus,

    Firstly, please make sure if you specify the URL of the external script file via the src attribute of a <script> tag.

    http://www.w3schools.com/tags/att_script_src.asp

    Secondly, please share us the relevant code you are using to add references to external script files. And you could try to add JS reference in absolute URL, like src="http://xxx/example.js".

    Best Regards,

    Fei Han

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Monday, June 6, 2016 5:23 AM
  • User1259588416 posted

    Yes after restarting the application it worked. 

    Thanks

    Monday, June 6, 2016 9:16 AM