Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hi I have created bundles after this article https://our.umbraco.com/forum/umbraco-8/96341-onapplicationstarted-umbraco-8
My bundles return 404 but I can browse the files, have I missed something
I have added in webconfig
<add key="umbracoReservedPaths" value="~/umbraco,~/install/,~/bundles/" />
and this
<modules runAllManagedModulesForAllRequests="true"> <remove name="BundleModule" /> <add name="BundleModule" type="System.Web.Optimization.BundleModule" /> </modules>
Many thanks! /C
Hi,
When does you get the 404? Is it when you try to render the bundle in a cshtml file? In that case how do you render the scripts in the cshtml?
//Daniel
Hi Daniel Thanks for helping me, I render the bundle in master
@Styles.Render("~/bundles/css") @Scripts.Render("~/bundles/js")
/C
I have solved the issue, added this in web.config
<add key="Umbraco.Core.ReservedUrls" value="~/bundles/" />
Strange, i did not have to reserve the url.. Well good thing it works :)
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Bundles in umbraco 8 return 404
Hi I have created bundles after this article https://our.umbraco.com/forum/umbraco-8/96341-onapplicationstarted-umbraco-8
My bundles return 404 but I can browse the files, have I missed something
I have added in webconfig
and this
Many thanks! /C
Hi,
When does you get the 404? Is it when you try to render the bundle in a cshtml file? In that case how do you render the scripts in the cshtml?
//Daniel
Hi Daniel Thanks for helping me, I render the bundle in master
/C
I have solved the issue, added this in web.config
Strange, i did not have to reserve the url.. Well good thing it works :)
is working on a reply...