Content Tree Not Visible : Syntax error shows in console

Vote:
 

Content Tree is visible when I run the code locally. but it gives syntax error after it is being deployed on azure.

after some finding I found that difference in setting variable assignment

When ran Locally

var settings = [{"name":"EPiServer.Forms","initializer":null,"moduleDependencies":null,"cssResources":[],"scriptResources":[],"routes":[{"routeBasePath":"/EPiServer/{moduleArea}/{controller}/{action}/{id}","routeDefaults":{"action":"index","id":"","moduleArea":"EPiServer.Forms"}}],"helpPath":null},{"name":"App","initializer":null,"moduleDependencies":null,"cssResources":[],"scriptResources":[],"routes":[{"routeBasePath":"/modules/{moduleArea}/{controller}/{action}/{id}","routeDefaults":{"action":"index","id":"","moduleArea":"App"}}],"helpPath":null},{"enableWebSockets":false,"previewTimeout":null,"name":"Shell","initializer":"epi.shell.ShellModule","moduleDependencies":[],"cssResources":["/EPiServer/Shell/10.10.6.0/ClientResources/epi/themes/sleek/document.css","/EPiServer/Shell/10.10.6.0/ClientResources/epi/themes/sleek/sleek1.css","/EPiServer/Shell/10.10.6.0/ClientResources/epi/themes/sleek/sleek2.css"],"scriptResources":["/EPiServer/Shell/10.10.6.0/ClientResources/epi/shell/ResourceBundle.js","/EPiServer/Shell/10.10.6.0/ClientResources/epi/shell/widgets.js"],"routes":[{"routeBasePath":"/EPiServer/{moduleArea}/{controller}/{action}/{id}","routeDefaults":{"moduleArea":"Shell","controller":"Dashboard","action":"Index","id":""}}],"helpPath":null},{"clientResourcePath":"/EPiServer/EPiServer.Forms.UI/4.6.1/","minimumAccessRightLevelToReadFormData":4,"recordFieldSeparator":"###","recordSeparator":"|||","formElementBaseContentType":"episerver.forms.core.elementblockbase","formContainerContentType":"episerver.forms.implementation.elements.formcontainerblock","allowedPreviewableTextBoxTypes":["episerver.forms.implementation.validation.regularexpressionvalidator"],"useManualInput":"FormsFeed_UseManualInput","registeredElementContentTypes":["episerver.forms.implementation.elements.paragraphtextelementblock","episerver.forms.implementation.elements.rangeelementblock","episerver.forms.implementation.elements.urlelementblock","episerver.forms.implementation.elements.visitordatahiddenelementblock","episerver.forms.implementation.elements.predefinedhiddenelementblock","episerver.forms.implementation.elements.numberelementblock","episerver.forms.implementation.elements.textboxelementblock","episerver.forms.implementation.elements.captchaelementblock","episerver.forms.implementation.elements.choiceelementblock","episerver.forms.implementation.elements.imagechoiceelementblock","episerver.forms.implementation.elements.selectionelementblock","episerver.forms.implementation.elements.textareaelementblock","episerver.forms.implementation.elements.resetbuttonelementblock","episerver.forms.implementation.elements.fileuploadelementblock","episerver.forms.implementation.elements.submitbuttonelementblock","episerver.forms.implementation.elements.formstepblock"],"formElementContentTypes":["episerver.forms.core.elementblockbase"],"imageChoiceAllowedTypes":["episerver.core.icontentimage"],"roots":["5"],"exportingUrl":"/EPiServer/EPiServer.Forms.UI/DataExporting/ExportData","prepareExportUrl":"/EPiServer/EPiServer.Forms.UI/DataExporting/PrepareExport","listOfDataExportersUrl":"/EPiServer/EPiServer.Forms.UI/DataExporting/GetAllDataExporters","name":"EPiServer.Forms.UI","initializer":"epi-forms.FormsUIModule","moduleDependencies":[{"moduleName":"CMS","dependencyType":2}],"cssResources":["/EPiServer/EPiServer.Forms.UI/4.6.1/ClientResources/epi-forms/themes/sleek/Forms.css"],"scriptResources":[],"routes":[{"routeBasePath":"/EPiServer/{moduleArea}/{controller}/{action}/","routeDefaults":{"moduleArea":"EPiServer.Forms.UI","controller":"","action":"Index"}}],"helpPath":null},{"name":"EPiServer.Packaging.UI","initializer":null,"moduleDependencies":[{"moduleName":"Shell","dependencyType":1}],"cssResources":[],"scriptResources":["/EPiServer/EPiServer.Packaging.UI/3.3.0.0/ClientResources/epi-packaging/ResourceBundle.js","/EPiServer/EPiServer.Packaging.UI/3.3.0.0/ClientResources/epi-packaging/packaging.js"],"routes":[{"routeBasePath":"/EPiServer/AddOns/{controller}/{action}","routeDefaults":{"moduleArea":"EPiServer.Packaging.UI","controller":"AddOns","action":"Index"}}],"helpPath":null},{"applicationVirtualPath":"/","uiDefaults":{"defaultEditorWrapper":null},"startPage":0,"rootPage":1,"wastebasketPage":2,"siteAssetsFolder":3,"globalAssetsFolder":3,"contentAssetsFolder":4,"rootCategory":1,"frames":[{"id":1,"name":"_blank","description":"Open the link in a new window","localizedDescription":"Open the link in a new window","isSystemFrame":true},{"id":2,"name":"_top","description":"Open the link in the whole window","localizedDescription":"Open the link in the whole window","isSystemFrame":true}],"userName":"ketan.vidhate","displayResolutions":[],"currentContentLanguage":"en","contentRepositoryDescriptors":{"pages":{"key":"pages","name":"Pages","roots":["1"],"searchArea":"cms/pages","customNavigationWidget":"epi-cms/component/PageNavigationTree","containedTypes":["episerver.core.pagedata"],"linkableTypes":["episerver.core.pagedata"],"preventDeletionFor":["","1","2"],"preventCopyingFor":["1","2"],"mainViews":["/episerver/cms/home"],"sortOrder":100,"customSelectTitle":"Page","creatableTypes":["episerver.core.pagedata"],"mainNavigationTypes":null,"preventContextualContentFor":["1","2"]},"assets":{"key":"assets","name":"Assets","roots":["3"],"containedTypes":["episerver.core.contentfolder","episerver.core.blockdata","episerver.core.mediadata"],"creatableTypes":null,"mainNavigationTypes":["episerver.core.contentfolder"],"mainViews":["/episerver/cms/home"],"changeContextOnItemSelection":true,"searchArea":null,"customNavigationWidget":null,"preventContextualContentFor":["1","2"],"preventDeletionFor":null,"preventCopyingFor":null,"linkableTypes":null,"sortOrder":100,"customSelectTitle":null},"formscontenttypes":{"key":"formscontenttypes","name":"Forms content types","roots":["5"],"containedTypes":["episerver.forms.core.elementblockbase","episerver.forms.implementation.elements.paragraphtextelementblock","episerver.forms.implementation.elements.rangeelementblock","episerver.forms.implementation.elements.urlelementblock","episerver.forms.implementation.elements.visitordatahiddenelementblock","episerver.forms.implementation.elements.predefinedhiddenelementblock","episerver.forms.implementation.elements.numberelementblock","episerver.forms.implementation.elements.textboxelementblock","episerver.forms.implementation.elements.captchaelementblock","episerver.forms.implementation.elements.choiceelementblock","episerver.forms.implementation.elements.imagechoiceelementblock","episerver.forms.implementation.elements.selectionelementblock","episerver.forms.implementation.elements.textareaelementblock","episerver.forms.implementation.elements.resetbuttonelementblock","episerver.forms.implementation.elements.fileuploadelementblock","episerver.forms.implementation.elements.submitbuttonelementblock","episerver.forms.implementation.elements.formstepblock"],"creatableTypes":[],"searchArea":null,"customNavigationWidget":null,"mainNavigationTypes":null,"preventContextualContentFor":["1","2"],"preventDeletionFor":null,"preventCopyingFor":null,"mainViews":null,"linkableTypes":null,"sortOrder":100,"customSelectTitle":null},"blocks":{"key":"blocks","name":"Blocks","roots":["3"],"searchArea":"CMS/blocks","containedTypes":["episerver.core.contentfolder","episerver.core.blockdata"],"creatableTypes":["episerver.core.blockdata"],"mainNavigationTypes":["episerver.core.contentfolder"],"sortOrder":200,"mainViews":["/episerver/cms/home"],"customSelectTitle":"Block","changeContextOnItemSelection":true,"enableContextualContent":true,"customNavigationWidget":null,"preventContextualContentFor":["1","2"],"preventDeletionFor":null,"preventCopyingFor":null,"linkableTypes":null},"forms":{"key":"forms","name":"Forms","roots":["5"],"searchArea":"CMS/blocks","containedTypes":["episerver.core.contentfolder","episerver.forms.implementation.elements.formcontainerblock"],"creatableTypes":[],"mainNavigationTypes":["episerver.core.contentfolder"],"sortOrder":200,"mainViews":["/episerver/cms/home"],"customSelectTitle":"Form","changeContextOnItemSelection":true,"enableContextualContent":false,"customNavigationWidget":null,"preventContextualContentFor":["1","2"],"preventDeletionFor":null,"preventCopyingFor":null,"linkableTypes":null},"media":{"key":"media","name":"Media","roots":["3"],"searchArea":"CMS/files","creatableTypes":[],"containedTypes":["episerver.core.contentfolder","episerver.core.icontentmedia"],"mainNavigationTypes":["episerver.core.contentfolder"],"linkableTypes":["episerver.core.icontentmedia","episerver.core.icontentimage","episerver.core.icontentvideo"],"sortOrder":300,"mainViews":["/episerver/cms/media"],"changeContextOnItemSelection":true,"enableContextualContent":true,"customNavigationWidget":null,"preventContextualContentFor":["1","2"],"preventDeletionFor":null,"preventCopyingFor":null,"customSelectTitle":null}},"expirationNotificationPeriod":5184000,"imageEditorEnabled":true,"disableVersionDeletion":false,"isWorkflowsEnabled":false,"isProjectModeEnabled":true,"isDynamicPropertiesEnabled":false,"name":"CMS","initializer":"epi-cms/CMSModule","moduleDependencies":[{"moduleName":"Shell","dependencyType":1}],"cssResources":["/EPiServer/CMS/10.10.6.0/ClientResources/epi-cms/epi.css"],"scriptResources":["/EPiServer/CMS/10.10.6.0/ClientResources/epi-cms/ResourceBundle.js","/EPiServer/CMS/10.10.6.0/ClientResources/epi-cms/widgets.js","/EPiServer/CMS/10.10.6.0/ClientResources/ReportCenter/ReportCenter.js","/Util/javascript/episerverscriptmanager.js","/EPiServer/CMS/javascript/system.js","/EPiServer/CMS/javascript/dialog.js","/EPiServer/CMS/javascript/system.aspx"],"routes":[{"routeBasePath":"/EPiServer/{moduleArea}/{controller}/{action}/{id}","routeDefaults":{"controller":"Home","action":"Index","id":"","moduleArea":"CMS"}},{"routeBasePath":"/EPiServer/CMS/{path}","routeDefaults":{"moduleArea":"LegacyCMS"}},{"routeBasePath":"/Util/{path}","routeDefaults":{"moduleArea":"Util"}}],"helpPath":null}]

On deployed version


var settings =

There is a license error on this site:
The license file "D:\home\site\wwwroot\License.config" does not exist
The Web site remains functional, but this message will be displayed until the license error has been corrected.

To correct this error:
  • Ensure that you have a valid license file for the site configuration.
  • Store the license file in the application directory.
If you do not have a license file, please request one from EPiServer License Center.

[{"name":"App","initializer":null,"moduleDependencies":null,"cssResources":[],"scriptResources":[],"routes":[{"routeBasePath":"/modules/{moduleArea}/{controller}/{action}/{id}","routeDefaults":{"action":"index","id":"","moduleArea":"App"}}],"helpPath":null},{"name":"EPiServer.Forms","initializer":null,"moduleDependencies":null,"cssResources":[],"scriptResources":[],"routes":[{"routeBasePath":"/EPiServer/{moduleArea}/{controller}/{action}/{id}","routeDefaults":{"action":"index","id":"","moduleArea":"EPiServer.Forms"}}],"helpPath":null},{"enableWebSockets":false,"previewTimeout":null,"name":"Shell","initializer":"epi.shell.ShellModule","moduleDependencies":[],"cssResources":["/EPiServer/Shell/10.10.6.0/ClientResources/epi/themes/sleek/document.css","/EPiServer/Shell/10.10.6.0/ClientResources/epi/themes/sleek/sleek1.css","/EPiServer/Shell/10.10.6.0/ClientResources/epi/themes/sleek/sleek2.css"],"scriptResources":["/EPiServer/Shell/10.10.6.0/ClientResources/epi/shell/ResourceBundle.js","/EPiServer/Shell/10.10.6.0/ClientResources/epi/shell/widgets.js"],"routes":[{"routeBasePath":"/EPiServer/{moduleArea}/{controller}/{action}/{id}","routeDefaults":{"moduleArea":"Shell","controller":"Dashboard","action":"Index","id":""}}],"helpPath":null},{"clientResourcePath":"/EPiServer/EPiServer.Forms.UI/4.6.1/","minimumAccessRightLevelToReadFormData":4,"recordFieldSeparator":"###","recordSeparator":"|||","formElementBaseContentType":"episerver.forms.core.elementblockbase","formContainerContentType":"episerver.forms.implementation.elements.formcontainerblock","allowedPreviewableTextBoxTypes":["episerver.forms.implementation.validation.regularexpressionvalidator"],"useManualInput":"FormsFeed_UseManualInput","registeredElementContentTypes":["episerver.forms.implementation.elements.paragraphtextelementblock","episerver.forms.implementation.elements.rangeelementblock","episerver.forms.implementation.elements.urlelementblock","episerver.forms.implementation.elements.visitordatahiddenelementblock","episerver.forms.implementation.elements.predefinedhiddenelementblock","episerver.forms.implementation.elements.numberelementblock","episerver.forms.implementation.elements.textboxelementblock","episerver.forms.implementation.elements.captchaelementblock","episerver.forms.implementation.elements.choiceelementblock","episerver.forms.implementation.elements.imagechoiceelementblock","episerver.forms.implementation.elements.selectionelementblock","episerver.forms.implementation.elements.textareaelementblock","episerver.forms.implementation.elements.resetbuttonelementblock","episerver.forms.implementation.elements.fileuploadelementblock","episerver.forms.implementation.elements.submitbuttonelementblock","episerver.forms.implementation.elements.formstepblock"],"formElementContentTypes":["episerver.forms.core.elementblockbase"],"imageChoiceAllowedTypes":["episerver.core.icontentimage"],"roots":["5"],"exportingUrl":"/EPiServer/EPiServer.Forms.UI/DataExporting/ExportData","prepareExportUrl":"/EPiServer/EPiServer.Forms.UI/DataExporting/PrepareExport","listOfDataExportersUrl":"/EPiServer/EPiServer.Forms.UI/DataExporting/GetAllDataExporters","name":"EPiServer.Forms.UI","initializer":"epi-forms.FormsUIModule","moduleDependencies":[{"moduleName":"CMS","dependencyType":2}],"cssResources":["/EPiServer/EPiServer.Forms.UI/4.6.1/ClientResources/epi-forms/themes/sleek/Forms.css"],"scriptResources":[],"routes":[{"routeBasePath":"/EPiServer/{moduleArea}/{controller}/{action}/","routeDefaults":{"moduleArea":"EPiServer.Forms.UI","controller":"","action":"Index"}}],"helpPath":null},{"applicationVirtualPath":"/","uiDefaults":{"defaultEditorWrapper":null},"startPage":0,"rootPage":1,"wastebasketPage":2,"siteAssetsFolder":3,"globalAssetsFolder":3,"contentAssetsFolder":4,"rootCategory":1,"frames":[{"id":1,"name":"_blank","description":"Open the link in a new window","localizedDescription":"Open the link in a new window","isSystemFrame":true},{"id":2,"name":"_top","description":"Open the link in the whole window","localizedDescription":"Open the link in the whole window","isSystemFrame":true}],"userName":"sysadmin","displayResolutions":[],"currentContentLanguage":"en","contentRepositoryDescriptors":{"formscontenttypes":{"key":"formscontenttypes","name":"Forms content types","roots":["5"],"containedTypes":["episerver.forms.core.elementblockbase","episerver.forms.implementation.elements.paragraphtextelementblock","episerver.forms.implementation.elements.rangeelementblock","episerver.forms.implementation.elements.urlelementblock","episerver.forms.implementation.elements.visitordatahiddenelementblock","episerver.forms.implementation.elements.predefinedhiddenelementblock","episerver.forms.implementation.elements.numberelementblock","episerver.forms.implementation.elements.textboxelementblock","episerver.forms.implementation.elements.captchaelementblock","episerver.forms.implementation.elements.choiceelementblock","episerver.forms.implementation.elements.imagechoiceelementblock","episerver.forms.implementation.elements.selectionelementblock","episerver.forms.implementation.elements.textareaelementblock","episerver.forms.implementation.elements.resetbuttonelementblock","episerver.forms.implementation.elements.fileuploadelementblock","episerver.forms.implementation.elements.submitbuttonelementblock","episerver.forms.implementation.elements.formstepblock"],"creatableTypes":[],"searchArea":null,"customNavigationWidget":null,"mainNavigationTypes":null,"preventContextualContentFor":["1","2"],"preventDeletionFor":null,"preventCopyingFor":null,"mainViews":null,"linkableTypes":null,"sortOrder":100,"customSelectTitle":null},"pages":{"key":"pages","name":"Pages","roots":["1"],"searchArea":"cms/pages","customNavigationWidget":"epi-cms/component/PageNavigationTree","containedTypes":["episerver.core.pagedata"],"linkableTypes":["episerver.core.pagedata"],"preventDeletionFor":["","1","2"],"preventCopyingFor":["1","2"],"mainViews":["/episerver/cms/home"],"sortOrder":100,"customSelectTitle":"Page","creatableTypes":["episerver.core.pagedata"],"mainNavigationTypes":null,"preventContextualContentFor":["1","2"]},"assets":{"key":"assets","name":"Assets","roots":["3"],"containedTypes":["episerver.core.contentfolder","episerver.core.blockdata","episerver.core.mediadata"],"creatableTypes":null,"mainNavigationTypes":["episerver.core.contentfolder"],"mainViews":["/episerver/cms/home"],"changeContextOnItemSelection":true,"searchArea":null,"customNavigationWidget":null,"preventContextualContentFor":["1","2"],"preventDeletionFor":null,"preventCopyingFor":null,"linkableTypes":null,"sortOrder":100,"customSelectTitle":null},"forms":{"key":"forms","name":"Forms","roots":["5"],"searchArea":"CMS/blocks","containedTypes":["episerver.core.contentfolder","episerver.forms.implementation.elements.formcontainerblock"],"creatableTypes":[],"mainNavigationTypes":["episerver.core.contentfolder"],"sortOrder":200,"mainViews":["/episerver/cms/home"],"customSelectTitle":"Form","changeContextOnItemSelection":true,"enableContextualContent":false,"customNavigationWidget":null,"preventContextualContentFor":["1","2"],"preventDeletionFor":null,"preventCopyingFor":null,"linkableTypes":null},"blocks":{"key":"blocks","name":"Blocks","roots":["3"],"searchArea":"CMS/blocks","containedTypes":["episerver.core.contentfolder","episerver.core.blockdata"],"creatableTypes":["episerver.core.blockdata"],"mainNavigationTypes":["episerver.core.contentfolder"],"sortOrder":200,"mainViews":["/episerver/cms/home"],"customSelectTitle":"Block","changeContextOnItemSelection":true,"enableContextualContent":true,"customNavigationWidget":null,"preventContextualContentFor":["1","2"],"preventDeletionFor":null,"preventCopyingFor":null,"linkableTypes":null},"media":{"key":"media","name":"Media","roots":["3"],"searchArea":"CMS/files","creatableTypes":[],"containedTypes":["episerver.core.contentfolder","episerver.core.icontentmedia"],"mainNavigationTypes":["episerver.core.contentfolder"],"linkableTypes":["episerver.core.icontentmedia","episerver.core.icontentimage","episerver.core.icontentvideo"],"sortOrder":300,"mainViews":["/episerver/cms/media"],"changeContextOnItemSelection":true,"enableContextualContent":true,"customNavigationWidget":null,"preventContextualContentFor":["1","2"],"preventDeletionFor":null,"preventCopyingFor":null,"customSelectTitle":null}},"expirationNotificationPeriod":5184000,"imageEditorEnabled":true,"disableVersionDeletion":false,"isWorkflowsEnabled":false,"isProjectModeEnabled":true,"isDynamicPropertiesEnabled":false,"name":"CMS","initializer":"epi-cms/CMSModule","moduleDependencies":[{"moduleName":"Shell","dependencyType":1}],"cssResources":["/EPiServer/CMS/10.10.6.0/ClientResources/epi-cms/epi.css"],"scriptResources":["/EPiServer/CMS/10.10.6.0/ClientResources/epi-cms/ResourceBundle.js","/EPiServer/CMS/10.10.6.0/ClientResources/epi-cms/widgets.js","/EPiServer/CMS/10.10.6.0/ClientResources/ReportCenter/ReportCenter.js","/Util/javascript/episerverscriptmanager.js","/EPiServer/CMS/javascript/system.js","/EPiServer/CMS/javascript/dialog.js","/EPiServer/CMS/javascript/system.aspx"],"routes":[{"routeBasePath":"/EPiServer/{moduleArea}/{controller}/{action}/{id}","routeDefaults":{"controller":"Home","action":"Index","id":"","moduleArea":"CMS"}},{"routeBasePath":"/EPiServer/CMS/{path}","routeDefaults":{"moduleArea":"LegacyCMS"}},{"routeBasePath":"/Util/{path}","routeDefaults":{"moduleArea":"Util"}}],"helpPath":null},{"name":"EPiServer.Packaging.UI","initializer":null,"moduleDependencies":[{"moduleName":"Shell","dependencyType":1}],"cssResources":[],"scriptResources":["/EPiServer/EPiServer.Packaging.UI/3.3.0.0/ClientResources/epi-packaging/ResourceBundle.js","/EPiServer/EPiServer.Packaging.UI/3.3.0.0/ClientResources/epi-packaging/packaging.js"],"routes":[{"routeBasePath":"/EPiServer/AddOns/{controller}/{action}","routeDefaults":{"moduleArea":"EPiServer.Packaging.UI","controller":"AddOns","action":"Index"}}],"helpPath":null}]

can anyone please help me out in solving this issue?

#181980
Edited, Sep 06, 2017 16:36
Vote:
 
#181981
Sep 06, 2017 16:38
Vote:
 

Looks like your deployed site is lacking an episerver license.

#181982
Sep 06, 2017 16:59
Vote:
 

Hi Magnus,

Initially I didnt include the episerver license, but in second publish i included the license config in my solution

#181985
Sep 06, 2017 18:06
* 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.