Note that there are some explanatory texts on larger screens.

plurals
  1. POFailed to load resource: 403 forbidden with .js Optimization
    primarykey
    data
    text
    <p>I'm trying to minify my .js and .css files.</p> <p>I've installed the packed <code>Install-Package Microsoft.AspNet.Web.Optimization</code></p> <p>When ever i active the Optimization with <code>BundleTable.EnableOptimizations = true;</code></p> <p><strong>I receive this error on the client:</strong></p> <p>Failed to load resource: the server responded with a status of 403 (Forbidden) <code>http://localhost:22773/Content/themes/elevation/v=gnDLBbf1VVRuQDXtIYn1q0P3ICZG7oiwwgxPRbaLvqI1</code></p> <p>Anyone have an idea of what I'm doing wrong?</p> <p>---BundleConfig info-------------------------------</p> <pre><code> public class BundleConfig { public static void RegisterBundles(BundleCollection bundles) { BundleTable.EnableOptimizations = true; bundles.Add(new ScriptBundle("~/bundles/myJquery").Include( "~/Scripts/jquery-1.9.1.js", "~/Scripts/jquery-ui-1.10.1.custom.js", "~/Scripts/jquery.signalR-1.0.1.js", "~/Scripts/signalr-hubs.js", "~/Scripts/Controls/Select/Simple/jquery.ui.selectmenu.js" )); bundles.Add(new ScriptBundle("~/bundles/shared").Include( "~/Scripts/global/prototypes.js", "~/Scripts/global/mathutil.js", "~/Scripts/global/elevationevents.js" )); bundles.Add(new ScriptBundle("~/bundles/core").Include( "~/Scripts/elevation/core/sys.config.js", "~/Scripts/elevation/core/bays.js", "~/Scripts/elevation/core/door.js", "~/Scripts/elevation/core/horiziontal.js", "~/Scripts/elevation/core/vertical.js")); bundles.Add(new StyleBundle("~/Content/themes/elevation").Include( "~/Content/themes/dialogs/dialogs.css", "~/Content/themes/social/ac/acSocial.css", "~/Content/themes/elevation/elevation.css" )); } } </code></pre> <p>-----------------------------I still have not got this figured out---------------------</p> <p>I'm using 2013 .net and iis8 on a windows7 OS</p> <p>Here is my latest error, I cannot take my solution out of debug mode, because if I do I get that error below.</p> <pre><code> HTTP Error 403.14 - Forbidden The Web server is configured to not list the contents of this directory. Most likely causes: A default document is not configured for the requested URL, and directory browsing is not enabled on the server. Things you can try: If you do not want to enable directory browsing, ensure that a default document is configured and that the file exists. Enable directory browsing. Go to the IIS Express install directory. Run appcmd set config /section:system.webServer/directoryBrowse /enabled:true to enable directory browsing at the server level. Run appcmd set config ["SITE_NAME"] /section:system.webServer/directoryBrowse /enabled:true to enable directory browsing at the site level. Verify that the configuration/system.webServer/directoryBrowse@enabled attribute is set to true in the site or application configuration file. Detailed Error Information: Module DirectoryListingModule Notification ExecuteRequestHandler Handler StaticFile Error Code 0x00000000 Requested URL http://localhost:1499/Content/themes/elevation/?v=aukmuLTC3g_fDko3eWmzqq7A8miRqgsJKXA2GO3w-pg1 Physical Path c:\users\administrator\documents\visual studio 2013\Projects\AlumCloud\AlumCloud\Content\themes\elevation\ Logon Method Anonymous Logon User Anonymous Request Tracing Directory C:\Users\Administrator\Documents\IISExpress\TraceLogFiles\ALUMCLOUD(3) More Information: This error occurs when a document is not specified in the URL, no default document is specified for the Web site or application, and directory listing is not enabled for the Web site or application. This setting may be disabled on purpose to secure the contents of the server. View more information » </code></pre> <hr> <p><strong>Here is the url that is created by iis8 when not in debug mode that produces the error</strong></p> <pre><code>http://localhost:1499/Content/themes/elevation/?v=aukmuLTC3g_fDko3eWmzqq7A8miRqgsJKXA2GO3w-pg1 </code></pre> <p><strong>Here is the url that returns the actual .css file with out any error</strong></p> <pre><code>http://localhost:1499/Content/themes/elevation/elevation.css </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload