November Happy Hour will be moved to Thursday December 5th.

Upgrade Episerver to latest version: Failed to load resource: the server responded with a status of 404 dojo.js

Vote:
 

Hi Quan,

I don't know why since i upgraded episerver to latest version it seems that all custom properties is not work

I view console tab from chrome and i saw a lot of log error related to dojo

Can you please give an advaice

My module.config

















Exception on brownser:


GET https://sitelocal.local/ClientResources/Scripts/editors/stringlist/Template.html 404
GET https://sitelocal.local/EPiServer/CMS/null 404
https://sitelocal.local/EPiServer/CMS/null 404

dojo.js:8827 Error: Invalid template:
at Function._21f.getCachedTemplate (widgets.js:2)
at Object.buildRendering (widgets.js:2)
at Object.create (widgets.js:2)
at Object.postscript (widgets.js:2)
at new (dojo.js:4381)
at Object._6ff (widgets.js:2)
at dojo.js:3135
at runFactory (dojo.js:1107)
at execModule (dojo.js:1236)
at dojo.js:802 "Error: Invalid template:
at Function._21f.getCachedTemplate (https://sitelocal.local/EPiServer/Shell/11.10.0/ClientResources/epi/shell/widgets.js:2:69677)
at Object.buildRendering (https://sitelocal.local/EPiServer/Shell/11.10.0/ClientResources/epi/shell/widgets.js:2:67496)
at Object.create (https://sitelocal.local/EPiServer/Shell/11.10.0/ClientResources/epi/shell/widgets.js:2:15484)
at Object.postscript (https://sitelocal.local/EPiServer/Shell/11.10.0/ClientResources/epi/shell/widgets.js:2:14925)
at new (https://sitelocal.local/EPiServer/Shell/11.10.0/ClientResources/dojo/dojo.js:4381:7)
at Object._6ff (https://sitelocal.local/EPiServer/Shell/11.10.0/ClientResources/epi/shell/widgets.js:2:251595)
at https://sitelocal.local/EPiServer/Shell/11.10.0/ClientResources/dojo/dojo.js:3135:55
at runFactory (https://sitelocal.local/EPiServer/Shell/11.10.0/ClientResources/dojo/dojo.js:1107:43)
at execModule (https://sitelocal.local/EPiServer/Shell/11.10.0/ClientResources/dojo/dojo.js:1236:5)
at https://sitelocal.local/EPiServer/Shell/11.10.0/ClientResources/dojo/dojo.js:802:7
----------------------------------------
rejected at signalDeferred (https://sitelocal.local/EPiServer/Shell/11.10.0/ClientResources/dojo/dojo.js:8372:15)
at signalListener (https://sitelocal.local/EPiServer/Shell/11.10.0/ClientResources/dojo/dojo.js:8343:5)
at Promise.Deferred.then.promise.then (https://sitelocal.local/EPiServer/Shell/11.10.0/ClientResources/dojo/dojo.js:8546:5)
at when (https://sitelocal.local/EPiServer/Shell/11.10.0/ClientResources/dojo/dojo.js:9065:26)
at Object._createInternal (https://sitelocal.local/EPiServer/Shell/11.10.0/ClientResources/epi/shell/widgets.js:2:250546)
at Object. (https://sitelocal.local/EPiServer/Shell/11.10.0/ClientResources/epi/shell/widgets.js:2:250145)
at https://sitelocal.local/EPiServer/Shell/11.10.0/ClientResources/dojo/dojo.js:3135:55
at Object.map (https://sitelocal.local/EPiServer/Shell/11.10.0/ClientResources/dojo/dojo.js:3650:15)
at Object._createWidgets (https://sitelocal.local/EPiServer/Shell/11.10.0/ClientResources/epi/shell/widgets.js:2:250075)
at Object. (https://sitelocal.local/EPiServer/Shell/11.10.0/ClientResources/epi/shell/widgets.js:2:249660)

Thanks

Thao Pham

#198260
Edited, Oct 24, 2018 9:27
Vote:
 

From which version did you upgrade?

If it's from <10 there were some breaking changes introduced in version 10 regarding dojo:

Breaking Changes CMS version 10

Blog post with details on the Dojo Breaking Change

#198266
Edited, Oct 24, 2018 10:46
Vote:
 

It is always a good idea to add  <clientResources debug="true" /> to episerver.framework section for developing site: https://world.episerver.com/blogs/Ben-McKernan/Dates/2014/8/Uncompressed-JavaScript-for-EPiServer-76/. Would give you much better error messages 

#198267
Oct 24, 2018 10:59
Vote:
 

Hi,

I upgrate from 10.x to latest

StringListEditorDescriptor.cs

[EditorDescriptorRegistration(TargetType = typeof(IList<string>))]
class StringListEditorDescriptor : EditorDescriptor
{
public override void ModifyMetadata(ExtendedMetadata metadata, IEnumerable<Attribute> attributes)
{
ClientEditingClass = "electrolux/editors/stringlist/Editor";

base.ModifyMetadata(metadata, attributes);
}
}

Module.config

<?xml version="1.0" encoding="utf-8"?>
<module>
<assemblies>
<!-- This adds the Electrolux template assembly to the "default module" -->
<add assembly="Electrolux.Web" />
</assemblies>

<clientResources>
<add name="epi-cms.widgets.base" path="Styles/Styles.css" resourceType="Style"/>
<add name="datetimes" path="Scripts/UTCDateTimeTextBox.js"/>
</clientResources>
<dojo>
<!-- Add a mapping from alloy to ~/ClientResources/Scripts to the dojo loader configuration -->
<paths>
<add name="electrolux" path="" />
<add name="datetimes" path="Scripts"/>
</paths>
</dojo>
</module>

Error message

https://ibb.co/kxJr3A

link to view screenshot of error

Thanks,

#198304
Edited, Oct 25, 2018 5:43
Vote:
 

Hi,

I solved it. It cause by some rule of url rewrite on web.config

Thanks

#198929
Nov 09, 2018 5:23
This topic was created over six months ago and has been resolved. If you have a similar question, please create a new topic and refer to this one.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.