locked
ClientGlobalContext.js.aspx does not exist RRS feed

  • Question

  • Hi, I get a lot of errors in CRM trace log which say: The file 'https://<myUrl>/OrgName/{635150241430000000}/ClientGlobalContext.js.aspx' does not exist.

    What confuses me is this guid after the organization name. I have a few html web resources in which I included a reference to this script like this: src="../ClientGlobalContext.js.aspx" and the code works, no errors in user interface. Any idea when could I get the address with a guid after org name?

    Thanks in advance.


    Zarko

    Wednesday, September 18, 2013 7:27 AM

All replies

  • the syntax to add ClientGlobalContext is:-

    <SCRIPT type=text/javascript src="../ClientGlobalContext.js.aspx"></SCRIPT>


    Regards Faisal

    Wednesday, September 18, 2013 7:50 AM
  • Hi Zarko,

    This number is the cache version key. I did a blog post explaining it a while back which might help you understand what's going on:

    http://www.develop1.net/public/post/CRM-Developer-e28098Must-Knowe28099-2-Web-Resource-Caching.aspx

    hth,

    Scott


    Scott Durow
    Blog www.develop1.net    Follow Me
    Rockstar365
    If this post answers your question, please click "Mark As Answer" on the post and "Mark as Helpful"

    Wednesday, September 18, 2013 7:56 AM
    Answerer
  • Thank you for your post, I understand the caching guid now. But do you have an idea why would I get an error in trace log that this file does not exist? It is probably an old cache guid, but how can I find which web resource is making trouble? Is there a way of querying database about resources which use this reference?

    Thanks


    Zarko

    Wednesday, September 18, 2013 10:13 AM
  • Hi Zarko,

    This looks like it is because you are going one level too deep to get the ClientGLobalContext - it is located inside the WebResources folder - so in your example above - the url should be:

    https://<myUrl>/OrgName/{635150241430000000}/WebResources/ClientGlobalContext.js.aspx

    If you have an html webresource at the root level (no sub folders) then you don't need the ../ in your script reference.

    hth,

    Scott


    Scott Durow
    Blog www.develop1.net    Follow Me
    Rockstar365
    If this post answers your question, please click "Mark As Answer" on the post and "Mark as Helpful"

    Friday, September 20, 2013 8:13 AM
    Answerer