I have the following in my Razor view for an editor template in my Orchard module:
Script.Include("assets.js").AtFoot();
When the page is rendered I can see this line at the bottom:
<script src="/Modules/MyModuleName/scripts/assets.js" type="text/javascript"></script>
Beautiful! Only problem is, when I visit that path I get a 404 error. The script doesn't exist.
...but it does! It's saved as Orchard.Web\Modules\MyModuleName\Scripts\assets.js
The rest of my module's functionality works fine - I can enable and use it, it just won't find the script file. Am I missing something obvious here?!