Click here to Skip to main content
15,888,351 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello Friends,

I have created a new ASP.NET WebForm application (NOT MVC) in VS2012 - 4.5. with the following features.
- Bundle configuration
- Web API (with Routing)
- Angular JS
All the AngularJS controller and other Javascript & CSS files are registered in Bundle Config.

From the developer machine, the application works fine.
But, When deployed a published build on IIS, Bundle config not executed due to which CSS and javascript not get applied.

Can anyone please guide me, how to overcome this issue.

Thanks in advance

What I have tried:

1. Changes on web.config file in <modules> section with
System.Web.Optimization
.
Posted
Updated 4-Jan-17 23:15pm

Have you enable
BundleTable.EnableOptimizations = true;

In BundleConfig class
 
Share this answer
 
Found the solution.

Missing Nuget Package - 'WebGrease'.

After adding this package, Publish version is working fine on IIS.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900