Skip to main content

Notifications

Microsoft Dynamics CRM (Archived)

Web Resource Libraries - Failed to load resource: the server responded with a status of 404 (Not Found)

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

I have been playing around with web resources recently, trying to learn the ins and outs. 

What I have made is a very simple HTML web resource, that uses a few JS libraries. The goal of the web resource is to create a simple multi-select that can access a set off data in CRM and list them, save changes etc. 

However I am stuck on the CRM integration part because it's failing to load the libraries.
All libraries have been uploaded to CRM as seperate web resources and I have made sure naming is correct all around.

Unfortunately the information I have been following on this project is an older one, using the SDK delivery system (CRM 2013). And I am working with CRM Online and had to upload it manually. So I guess I might be missing something important. 

The libraries I am trying to get a hold of is: 

<script type="text/javascript" src="../ClientGlobalContext.js.aspx"></script>
<script type="text/javascript" src="jquery_1.11.3.js"></script>
<script type="text/javascript" src="SDK.REST.js"></script>

Ps. If anyone knows some good sources on CRM Online development, I would love to know. 


Any help would be appreciated :) Thank you

- MrLorgy

*This post is locked for comments

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Web Resource Libraries - Failed to load resource: the server responded with a status of 404 (Not Found)

    Piotr pointed out what I was missing :)

    NOTE: I noticed it only worked for the ClientGlobalContext first try, that was because I had forgotten to prefix the other two webresources with the Solution I was using for delivery.

    So

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

    <script type="text/javascript" src="../WebResources/"solution prefix"_jquery_1.11.3.js"></script>

    <script type="text/javascript" src="../WebResource/"solution prefix"_SDK.REST.js"></script>

    Is what ended up working. :)

    For anyone else, you can see the full path of the webresource in the solution when you upload it, and you can always go back if you forget. :)

    - MrLorgy

  • Verified answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Web Resource Libraries - Failed to load resource: the server responded with a status of 404 (Not Found)

    Hi,

    It is stored in the WebResource folder on the server, please reference these as follows:

    <script type="text/javascript" src="../WebResources/prefix_name"></script>

    Thanks,

    Piotr

    PS. Please mark as correct answer if happy with suggestion.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,979 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 230,848 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans