Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9047647
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T11:57:41+00:00 2026-06-16T11:57:41+00:00

In the Windows Azure Publish Settings I have selected: Environment: Production Build Configuration: Release

  • 0

In the Windows Azure Publish Settings I have selected:

Environment: Production
Build Configuration: Release

In my Web.Release.config I have:

  <system.web>
    <compilation xdt:Transform="RemoveAttributes(debug)" />

I had bundling working before and I made no code changes that I know of. However now
when I publish to the cloud and view web pages it seems there is no bundling at all.
All the javascript and CSS are downloaded one by one.

Is there something I am missing? This used to work and now it seems not to work at
all.

Do I need to explicitly set the following:

<compilation debug="false" targetFramework="4.0">

Or this:

public static void RegisterBundles(BundleCollection bundles) {
   ...
   ...
   BundleTable.EnableOptimizations = true;
}

Note that when I added the above line I got a message saying: EnableOptimizations is a property but is used like a type.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T11:57:42+00:00Added an answer on June 16, 2026 at 11:57 am

    Set debug to false in web config

    <compilation debug="false" targetFramework="4.0">
    

    And it should work as expected!

    Oh, one more thing:

    BundleTable.EnableOptimizations = true;
    

    Overrides Web.Config settings, so if this is set to true and Web.Config is set to debug it should work as well.

    If you want to use that, check that you actually added BundleTable… in the right place, like this:

       public static void RegisterBundles(BundleCollection bundles)
        {
            BundleTable.EnableOptimizations = true; 
    

    EDIT: Including a working BundleConfig for reference

    using System.Web;
    using System.Web.Optimization;
    
    namespace YourNameSpace
    {
        public class BundleConfig
        {
            // For more information on Bundling, visit http://go.microsoft.com/fwlink/?LinkId=254725
            public static void RegisterBundles(BundleCollection bundles)
            {
    
                bundles.Add(new ScriptBundle("~/bundles/wf").Include(
                 "~/Scripts/jquery-{version}.js",
                 "~/Scripts/jquery-ui-{version}.js",
                 "~/Scripts/jquery.unobtrusive*",
                 "~/Scripts/jquery.validate*",
                 "~/Scripts/jquery.wf.overrides.js",
                 "~/Scripts/popup.unobtrusive.js"));
                BundleTable.EnableOptimizations = true; 
            }
    
        }
     }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am new windows azure user. I have gotten selected for 90 days trial
I now have my Windows Azure environment set up so that I can access
We have an windows Azure web role (typically ASP.NET application) with client side J-queries
We have a Windows Azure Web Role on two extra-small instances that has been
I have a Windows Azure Virtual Machine. I am able to view my ASP.Net
I have a Windows Azure site which is deployed to two separate hosted services.
I am newbie to Windows Azure application. I have downloaded the Microsoft Visual Studio
I have set up an environment which should run my azure-project locally. It begins
Using Windows Azure's Microsoft.Web.DistributedCache.DistributedCacheOutputCacheProvider as the outputCache provider for an MVC3 app. Here is
Since Windows Azure doesn't have SQL Agent you'll have to create your own worker

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.