Hello,
I have a custom module that references a JavaScript file which is in the installed module directory. I have installed the module on 3 different DNN system (2 @ 3.1 and 1 @ 3.2) and the module works fine. However, on my 4th machine, (DNN 3.2) I get a JavaScript error. I've tracked the problem to the web server or DNN not serving the JavaScript file.
I'm using Page.ResolveUrl("scripts/functions.js") to generate the URL. When the page loads and I view the source of the HTML page, the URL looks correct in the HTML.
E.g. <SCRIPT TYPE="text/JavaScript" SRC="/DesktopModules/MyModule/scripts/functions.js"></SCRIPT>
However, If I copy and paste that URL into my browser, I get a 404 - File Not Found Error.
E.g. http://localhost/DesktopModules/MyModule/scripts/functions.js
If I do the same thing on the machines which are working, the JavaScript file will download. So, I assume it's either a IIS config problem or a DNN problem. Other JavaScript files are working (e.g. the menus on the site work fine). It's just this module which has the problem.
Any suggestions on how to fix this would be greatly appreciated.
Thanks