Bundling and Minification

Discussion in 'ASP.NET 4.5 Beta [Closed]' started by Burns, Mar 17, 2012.

Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.
  1. I try to use the new bundling tool in asp.net 4.5. In global.asax I use:
    Code:
    Sub Application_Start(ByVal sender As Object, ByVal e As EventArgs)
    bundletable.bundles.EnableDefaultBundles()
    End Sub
    But this generates the following error:
    BC30451: 'bundletable' is not declared. It may be inaccessible due to its protection level.

    The reason is probably because the package optimalisation needs to be installed (http://msdn.microsoft.com/en-us/vs11trainingcourse_aspnetandvisualstudio_topic5#_Toc319053053).

    Why is one of the best new features not automaticly installed? Is the feature installed on the final version of asp.net 4.5?
     
  2. Bruce

    Bruce DiscountASP.NET Staff

    haha.. i agree w/ you. I have no idea why its not installed.

    From the post, it looks like you can upload the required dll to the server.
     
  3. Ok, thanks.

    I copied:
    microsoft.web.optimization.dll and
    microsoft.web.infrastructure.dll
    to the bin directory and I adjusted global.asax:
    No, it works. It needed the infrastructure.dll as well. Strange, it looks like a standard file to me. I found it on my computer (beta VS 2011 installed).
     
Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.

Share This Page