I am using slick-carousel in my ASP.Net MVC project. If I link the slick.css file through normal <link> tag in Html, it works fine. But if I bundle the slick.css file and render it in Html, it shows forbidden error(403).
Working Solution
<link rel="stylesheet" type="text/css" href="~/Content/Slick/slick.css" />
<link rel="stylesheet" type="text/css" href="~/Content/Slick/slick-theme.css" />
Bundling the files
bundles.Add(new StyleBundle("~/Content/Slick").Include(
"~/Content/Slick/slick.css"));
bundles.Add(new StyleBundle("~/Content/SlickTheme").Include(
"~/Content/Slick/slick-theme.css"));
Refering the bundled files
@Styles.Render("~/Content/Slick")
@Styles.Render("~/Content/SlickTheme")
Can anyone please let me know why i am getting such error only when bundled?