Products

Solutions

Resources

Partners

Community

Blog

About

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Performance and...Performance and...File missing in DependencyHandlers.axd when using DnnJsIncludeFile missing in DependencyHandlers.axd when using DnnJsInclude
Previous
 
Next
New Post
8/1/2018 3:53 PM
 

In DNN 9.2 I am using this tag to load a javascript file:

<dnn:DnnJsInclude runat="server" FilePath="~/DesktopModules/aivestPortfolio/Scripts/aivest/Portfolio.js" Priority="500" />

Works OK, but now Portfolio.js depends on PortfolioUtils.js (var utils = new PortfolioUtils(), I know it's not the fine wine), so I add PortfolioUtils.js:

<dnn:DnnJsInclude runat="server" FilePath="~/DesktopModules/aivestPortfolio/Scripts/aivest/PortfolioUtils.js" Priority="300" />

This throws "PortfolioUtils is not defined" in Portfolio.js, but only when "Enable Composite Files" (Servers / Server Settings / Performance) is enabled. Otherwise it works OK. I can see the Portfolio.js code in one of the DependencyHandler.axd files, but the PortfolioUtil type is missing completely.

It also works, when I am loading PortfolioUtils.js like this:

<script src='<%=ResolveClientUrl("~/DesktopModules/aivestPortfolio/Scripts/aivest/PortfolioUtils.js") %>' type="text/javascript"></script>

I tried increasing the "site version" to no avail.

Strangely, it also works (with composite files enabled) on my local machine, but not on my production Azure web app.

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Performance and...Performance and...File missing in DependencyHandlers.axd when using DnnJsIncludeFile missing in DependencyHandlers.axd when using DnnJsInclude


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out