Click here to Skip to main content
14,774,409 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hello Friends,

I have created a new ASP.NET application in VS2012 - 4.5.
In that I used some latest features like
- Bundle configuration
- Web API (with Routing)
- Angular JS
All the AngularJS controller and other Javascripts & CSS files are register in Bundle Config.

From the developer machine the application works fine.
But, When I am deploying a publish build of my application on IIS, The application not working. I mean the JS and CSS file are not getting. also I am not able to do WebAPI call.

Application Publish steps: In Solution Explorer, right-click the project and select Publish. The Publish Web wizard.

Can any one please guide me, how to overcome from this issue.
There might be some other way to deploy on IIS which I am not aware of.

Thanks in advance.

What I have tried:

Tried with Publish Web Wizard and deploy the code on IIS, but its not working.
Posted
Updated 15-Dec-16 0:38am

1 solution

Believe it or not but how you publish an asp.net website is very well documented if you care to look. Phrases like "not working" mean nothing and give no information that will help anyone solve your problems. If you are having a problem with CSS and JS files then my best guess would be you are not using the proper MVC framework calls to work out the proper paths to your files (eg Url.Content etc). View the page source to check the paths are ok and look at the network tools tab of your browser to see the files it is trying to download and what the results are. Fix issues as you find them.
   
v2
Comments
Sagar Khairnar 55 3-Jan-17 7:36am
   
Hi,
Thank you for your feedback.
To be in deep related to my issue,
I have created an ASP.NET Web application (Not using MVC framework).
In that I have added bundle configuration(System.Web.Optimization) and Web API Register Routes on Application start.
UI is design with AngularJs and calling Web-API Controller.

This application runs completly fine on local machine.
But when I publish the code and deploy on IIS, bundle configuration is not working on that.

Waiting for you feedback.

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