Quantcast
Channel: Visual Studio and Visual Web Developer Express
Viewing all articles
Browse latest Browse all 3509

How to fix 404 error in css bundles with media attribute after upgrading to VS 2013 Expess for Web

$
0
0

ASP.NET MVC4 application index.cshtml  contains style bundles with media attributes

<link href="@Styles.Url("~/css/pos.css")" rel="stylesheet" type="text/css" media="screen" /><link href="@Styles.Url("~/css/receipt.css")" rel="stylesheet" type="text/css" media="print" />

 

as recommended in http://stackoverflow.com/questions/12042248/make-asp-net-bundling-specify-media-screen-for-css-bundle MVC4 buildin minification and bundling are used.

If solution is running from  VS Express 2013 for Web those links give 404 error with response

Key Value     
Response HTTP/1.1 404 Not Found     
Cache-Control private     
Content-Type text/html; charset=utf-8     
Server Microsoft-IIS/8.0     
X-SourceFiles =?UTF-8?B?STpccmFhbWF0XEVldmFXZWJcRWV2YS5FcnBcY3NzXHBvcy5jc3M=?=     
Date Mon, 18 Nov 2013 16:01:30 GMT     
Content-Length 4961

 

in both debug and release modes.

If same solution is running from Visual Studion 2012 Express, styles are retrieved properly. How to run it from VS 2013 Express For Web ? It looks like it uses II8 Express to run, maybe this causes error ?


Viewing all articles
Browse latest Browse all 3509

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>