Ahmed Eltawil's Blog

Archive for January 2013

I recently installed Windows 8 Pro on my home PC, which is the last computer that needed to be upgraded, and after installing the latest update for the Music app I experienced a strange issue.

I had no problems opening and browsing the Music app but when I started to play a song and switched to Desktop the computer somehow decides to dramatically lower the volume. Switching back to the Music app would bring up the volume automatically.

Since this is a Windows Store app, I couldn’t play with its settings or configuration files to try to determine what could be causing this, so I simply uninstalled the Music app and installed it again which fortunately fixed it.

Anyways, I thought I would post my experience in case there are others out there facing a similar issue.


One of my tasks recently was to implement bundling and minification on a ASP.NET 4.5 web application. So naturally, I started to read many articles and tutorials on how to implement it until I understood the technology and got confident on implementing it. The implementation was quite simple really and I was very happy with the progress…until I reached a brick wall.

For some reason there was absolutely no mention on how to reference bundles created in the markup of a web form AND still be able to debug by disabling the bundling and minification. Most, if not all, articles and tutorials were talking about ASP.NET MVC implementations as opposed to web forms. When I was able to get the bundling and minification to work, I kept losing the ability to debug my bundled JavaScript files (in Visual Studio) when I set “debug=’true'” in my web config file.

So for anyone who is in the same boat, I feel your pain and here is what I went through:

I added the following markup for a script bundle called ‘~/scripts1’:

<script src=”~/scripts1″></script>

That didn’t make bundling and minification work. So I tried:

<script src=”scripts1″></script>

It worked this time, but setting “debug=’true'” would still bundle and minify my JavaScript files. So I tried the following:

<script src=”<% Scripts.Render(“~/scripts1″); %>”></script>

That gave me the same result as the previous one. So after hours of researching and playing with code, I wrote the following line right in the markup without any <script> tags:

<%: Scripts.Render(“~/scripts1”) %>

It worked! I got my bundling and minification to work only when “debug=’false'”.

I hope this helps some poor soul out there. If you need more information on bundling and minification with ASP.NET 4.5, read this article.


  • Вторая проще. Русская краса | 3 years ago
  • Цветет,благоухает..Жизнью строки наполняет.. | 3 years ago
  • Розы, песни и стихи | 3 years ago
  • Ведь нажива, об этике, не сожалеет. | 3 years ago
  • Ни о влюблённости, что миновала | 3 years ago
  • Надо распустить свой хвост. | 3 years ago
  • Самое страшное - это с утра после пьянки зайти в контакт и увидеть "Мои фотографии (6)" | 3 years ago